window.c: Drop the toolkit grab when we start a compositor grab

We do this right for move and resize, but dnd and popups need the same
treatment.
This commit is contained in:
Kristian Høgsberg
2012-04-13 12:55:45 -04:00
parent 3730f36c6e
commit a6c8b0084f
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -402,6 +402,8 @@ dnd_button_handler(struct widget *widget,
dnd_drag->drag_surface =
wl_compositor_create_surface(compositor);
input_ungrab(input);
dnd_drag->data_source =
display_create_data_source(dnd->display);
wl_data_source_add_listener(dnd_drag->data_source,
+1
View File
@@ -2391,6 +2391,7 @@ window_show_menu(struct display *display,
window->x = x;
window->y = y;
input_ungrab(input);
wl_shell_surface_set_popup(window->shell_surface, input->input_device,
display_get_serial(window->display),
window->parent->shell_surface,