[gtk+] broadway: Fix toplevel handling
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] broadway: Fix toplevel handling
- Date: Fri, 17 Nov 2017 09:37:53 +0000 (UTC)
commit 810ba4edcf900dbe2dcb2dc88788c1995081d9e4
Author: Alexander Larsson <alexl redhat com>
Date: Fri Nov 17 10:37:01 2017 +0100
broadway: Fix toplevel handling
The toplevels list contains GdkWindowImplBroadways, and we shouldn't
free it.
gdk/broadway/gdkdisplay-broadway.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gdk/broadway/gdkdisplay-broadway.c b/gdk/broadway/gdkdisplay-broadway.c
index 2b69bc8..0d8dbc8 100644
--- a/gdk/broadway/gdkdisplay-broadway.c
+++ b/gdk/broadway/gdkdisplay-broadway.c
@@ -92,14 +92,11 @@ _gdk_broadway_display_size_changed (GdkDisplay *display,
toplevels = broadway_display->toplevels;
for (l = toplevels; l != NULL; l = l->next)
{
- GdkWindow *toplevel = l->data;
- GdkWindowImplBroadway *toplevel_impl = GDK_WINDOW_IMPL_BROADWAY (toplevel->impl);
+ GdkWindowImplBroadway *toplevel_impl = l->data;
if (toplevel_impl->maximized)
- gdk_window_move_resize (toplevel, 0, 0, msg->width, msg->height);
+ gdk_window_move_resize (toplevel_impl->wrapper, 0, 0, msg->width, msg->height);
}
-
- g_list_free (toplevels);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]