Code

disable motion hints again; still some subtle issues to work out
[inkscape.git] / src / display / sp-canvas.cpp
index 314dbdb3c23ebb7140ed7d19a5f992c426bb190d..def126cd30527d8881c05bab96c0fdb28e9d79dc 100644 (file)
@@ -49,7 +49,7 @@
 
 // gtk_check_version returns non-NULL on failure
 static bool const HAS_BROKEN_MOTION_HINTS =
-  TRUE || gtk_check_version(2, 12, 0) != NULL || !HAS_GDK_EVENT_REQUEST_MOTIONS;
+  true || gtk_check_version(2, 12, 0) != NULL || !HAS_GDK_EVENT_REQUEST_MOTIONS;
 
 // Define this to visualize the regions to be redrawn
 //#define DEBUG_REDRAW 1;
@@ -1548,15 +1548,12 @@ sp_canvas_scroll (GtkWidget *widget, GdkEventScroll *event)
     return emit_event (SP_CANVAS (widget), (GdkEvent *) event);
 }
 
+static inline void request_motions(GdkWindow *w, GdkEventMotion *event) {
+    gdk_window_get_pointer(w, NULL, NULL, NULL);
 #if HAS_GDK_EVENT_REQUEST_MOTIONS
-static inline void request_motions(GdkWindow *, GdkEventMotion *event) {
     gdk_event_request_motions(event);
-}
-#else
-static inline void request_motions(GdkWindow *w, GdkEventMotion *) {
-    gdk_window_get_pointer(w, NULL, NULL, NULL);
-}
 #endif
+}
 
 /**
  * Motion event handler for the canvas.