mirror of
https://github.com/fltk/fltk.git
synced 2026-05-20 22:36:19 +08:00
Wayland: call gtk_surface1_set_modal() of GTK Shell protocol - cont'd
This commit is contained in:
@@ -1515,7 +1515,8 @@ void Fl_Wayland_Window_Driver::makeWindow()
|
||||
if (top_dr->xdg_toplevel()) xdg_toplevel_set_parent(new_window->xdg_toplevel,
|
||||
top_dr->xdg_toplevel());
|
||||
}
|
||||
if (scr_driver->seat->gtk_shell && pWindow->modal()) {
|
||||
if (scr_driver->seat->gtk_shell && pWindow->modal() &&
|
||||
(new_window->kind == DECORATED || new_window->kind == UNFRAMED)) {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user