[gtk+] [broadway] Set transient-for before showing window
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] [broadway] Set transient-for before showing window
- Date: Mon, 11 Apr 2011 10:10:15 +0000 (UTC)
commit ace1c4c284ad3e1de53df576460cd51c0e99e4a7
Author: Alexander Larsson <alexl redhat com>
Date: Mon Apr 11 10:46:48 2011 +0200
[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).
gdk/broadway/gdkwindow-broadway.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gdk/broadway/gdkwindow-broadway.c b/gdk/broadway/gdkwindow-broadway.c
index c00fbe9..fd663a1 100644
--- a/gdk/broadway/gdkwindow-broadway.c
+++ b/gdk/broadway/gdkwindow-broadway.c
@@ -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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]