[gtk+] wayland: configure clients that resize themselves
- From: Olivier Fourdan <ofourdan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: configure clients that resize themselves
- Date: Wed, 28 Oct 2015 07:53:55 +0000 (UTC)
commit 3058c3e6a9578bc07784f4f7ca65315b76014cd2
Author: Olivier Fourdan <ofourdan redhat com>
Date: Tue Oct 27 18:05:39 2015 +0100
wayland: configure clients that resize themselves
Make sure the wayland backend sets a new geometry when the client
resizes itself, otherwise the compositor won't be notified and may
revert to the old size on state changes.
Thanks to Jasper St. Pierre <jstpierre mecheye net> who pointed out the
problem in gtk+.
bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=755051
gdk/wayland/gdkwindow-wayland.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index a71e60e..4df37f1 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -2387,10 +2387,6 @@ gdk_wayland_window_set_shadow_width (GdkWindow *window,
if (GDK_WINDOW_DESTROYED (window))
return;
- if (left == impl->margin_left && right == impl->margin_right &&
- top == impl->margin_top && bottom == impl->margin_bottom)
- return;
-
/* Reconfigure window to keep the same window geometry */
new_width = window->width -
(impl->margin_left + impl->margin_right) + (left + right);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]