mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 07:04:29 +00:00
[broadway] Set transient-for before showing window
When syncing windows, make sure we set transient-for before showing the window to avoid it being visible with the wrong transient-for (i.e. possibly on the wrong browser window).
This commit is contained in:
parent
05dfb7f594
commit
ace1c4c284
@ -227,15 +227,13 @@ _gdk_broadway_resync_windows (void)
|
||||
window->width,
|
||||
window->height,
|
||||
window->window_type == GDK_WINDOW_TEMP);
|
||||
if (impl->transient_for)
|
||||
broadway_output_set_transient_for (display->output, impl->id, impl->transient_for);
|
||||
if (GDK_WINDOW_IS_MAPPED (window))
|
||||
{
|
||||
broadway_output_show_surface (display->output, impl->id);
|
||||
window_data_send (display->output, impl);
|
||||
}
|
||||
if (impl->transient_for)
|
||||
{
|
||||
broadway_output_set_transient_for (display->output, impl->id, impl->transient_for);
|
||||
}
|
||||
}
|
||||
|
||||
gdk_display_flush (GDK_DISPLAY (display));
|
||||
|
Loading…
Reference in New Issue
Block a user