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  
    340340static int mouse_grabbed = 0;
    341341static void mouse_cursor_grab(int grab, GdkCursor *cursor)
    342342{
    343     GdkWindow *window = get_active_toplevel()->window;
     343    GtkWidget *widget = get_active_toplevel();
     344    GdkWindow *window = widget ? widget->window : NULL;
    344345    if (mouse_grabbed) {
    345346        gdk_keyboard_ungrab(GDK_CURRENT_TIME);
    346347        gdk_pointer_ungrab(GDK_CURRENT_TIME);
     
    32103211        gdk_flush();
    32113212        gdk_window_raise(toplevel->window);
    32123213    }
    3213 }
    3214  No newline at end of file
     3214}