diff options
Diffstat (limited to 'gdk/x11')
-rw-r--r-- | gdk/x11/gdkmain-x11.c | 7 | ||||
-rw-r--r-- | gdk/x11/gdkwindow-x11.c | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gdk/x11/gdkmain-x11.c b/gdk/x11/gdkmain-x11.c index e38fd09d3..3e203cab2 100644 --- a/gdk/x11/gdkmain-x11.c +++ b/gdk/x11/gdkmain-x11.c @@ -1671,10 +1671,12 @@ gdk_event_translate (GdkEvent *event, #endif gint return_val; - /* Are static variables used for this purpose thread-safe? */ - return_val = FALSE; + /* We need to play catch-up with the dnd motion events */ + if(gdk_dnd.drag_really && xevent->type == MotionNotify) + while (XCheckTypedEvent(xevent->xany.display,MotionNotify,xevent)); + /* Find the GdkWindow that this event occurred in. * All events occur in some GdkWindow (otherwise, why * would we be receiving them). It really is an error @@ -2030,7 +2032,6 @@ gdk_event_translate (GdkEvent *event, case MotionNotify: /* Print debugging info. */ - while (XCheckTypedEvent(xevent->xmotion.display,xevent->type,xevent)); GDK_NOTE (EVENTS, g_print ("motion notify:\t\twindow: %ld x,y: %d %d hint: %s d:%d r%d\n", xevent->xmotion.window - base_id, diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c index b95135cf3..7cbaf4b60 100644 --- a/gdk/x11/gdkwindow-x11.c +++ b/gdk/x11/gdkwindow-x11.c @@ -1367,6 +1367,9 @@ gdk_window_shape_combine_mask (GdkWindow *window, g_return_if_fail (window != NULL); + /* This is needed, according to raster */ + gdk_window_set_override_redirect(window, TRUE); + window_private = (GdkWindowPrivate*) window; if (window_private->destroyed) return; |