Wayland: add necessary calls to gtk_surface1_release()
This commit is contained in:
parent
e2eeb36883
commit
651d9f3e79
@ -285,10 +285,10 @@ static void pointer_button(void *data,
|
||||
(struct Fl_Wayland_Screen_Driver::seat*)data;
|
||||
if (gtk_shell_surface && state == WL_POINTER_BUTTON_STATE_PRESSED &&
|
||||
button == BTN_MIDDLE) {
|
||||
struct gtk_surface1 *gtk_surface = gtk_shell1_get_gtk_surface(seat->gtk_shell,
|
||||
gtk_shell_surface);
|
||||
struct gtk_surface1 *gtk_surface = gtk_shell1_get_gtk_surface(seat->gtk_shell,gtk_shell_surface);
|
||||
gtk_surface1_titlebar_gesture(gtk_surface, serial, seat->wl_seat,
|
||||
GTK_SURFACE1_GESTURE_MIDDLE_CLICK);
|
||||
gtk_surface1_release(gtk_surface); // very necessary
|
||||
return;
|
||||
}
|
||||
seat->serial = serial;
|
||||
|
@ -1525,6 +1525,7 @@ void Fl_Wayland_Window_Driver::makeWindow()
|
||||
struct gtk_surface1 *gtk_surface = gtk_shell1_get_gtk_surface(scr_driver->seat->gtk_shell,
|
||||
new_window->wl_surface);
|
||||
gtk_surface1_set_modal(gtk_surface);
|
||||
gtk_surface1_release(gtk_surface); // very necessary
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user