summaryrefslogtreecommitdiff
path: root/libs/canvas/canvas.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-03-20 02:15:15 +0100
committerRobin Gareus <robin@gareus.org>2017-03-20 02:15:15 +0100
commit5fe355af9280acc5f721d956f76bff8d76d31649 (patch)
tree1211954644a6002acc4e6fe3457c9edda8f360d4 /libs/canvas/canvas.cc
parentc371fc511500acada422cdcf93658fc25e5106de (diff)
Use NSGLView with patched gdk
Special case Ardour's Canvas NSView to forward gdk-events which are otherwise special-cased to read AU-views..
Diffstat (limited to 'libs/canvas/canvas.cc')
-rw-r--r--libs/canvas/canvas.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/canvas/canvas.cc b/libs/canvas/canvas.cc
index 70fd36e8b5..52bff497af 100644
--- a/libs/canvas/canvas.cc
+++ b/libs/canvas/canvas.cc
@@ -45,6 +45,7 @@
#include "canvas/utils.h"
#ifdef __APPLE__
+#include <gdk/gdk.h>
#include "canvas/nsglview.h"
#endif
@@ -401,7 +402,7 @@ GtkCanvas::GtkCanvas ()
Gdk::SCROLL_MASK | Gdk::ENTER_NOTIFY_MASK | Gdk::LEAVE_NOTIFY_MASK |
Gdk::KEY_PRESS_MASK | Gdk::KEY_RELEASE_MASK);
-#ifdef __APPLE__NotYetToDueGdkForeignViewMousePatch // XXX
+#ifdef ARDOUR_CANVAS_NSVIEW_TAG // patched gdkquartz.h
# ifndef __ppc__ // would need to flip RGBA <> RGBA
_nsglview = nsglview_create (this);
# endif