Ticket #33059: patch-src-arch-unix-x11-gnome-x11ui.c.diff
File patch-src-arch-unix-x11-gnome-x11ui.c.diff, 675 bytes (added by mklein-de (Michael Klein), 13 years ago) |
---|
-
src/arch/unix/x11/gnome/x11ui.c
old new 340 340 static int mouse_grabbed = 0; 341 341 static void mouse_cursor_grab(int grab, GdkCursor *cursor) 342 342 { 343 GdkWindow *window = get_active_toplevel()->window; 343 GtkWidget *widget = get_active_toplevel(); 344 GdkWindow *window = widget ? widget->window : NULL; 344 345 if (mouse_grabbed) { 345 346 gdk_keyboard_ungrab(GDK_CURRENT_TIME); 346 347 gdk_pointer_ungrab(GDK_CURRENT_TIME); … … 3210 3211 gdk_flush(); 3211 3212 gdk_window_raise(toplevel->window); 3212 3213 } 3213 } 3214 No newline at end of file 3214 }