[gtk/matthiasc/surface-state-rework: 65/80] wayland/surface: Reset last sent min/max size when hiding
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/surface-state-rework: 65/80] wayland/surface: Reset last sent min/max size when hiding
- Date: Sat, 5 Dec 2020 17:42:40 +0000 (UTC)
commit bcf396147233258a2ba075c81cc04926742da65b
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Fri Dec 4 18:39:22 2020 +0100
wayland/surface: Reset last sent min/max size when hiding
As with the window geometry, the last sent min/max values must be reset
so they are sent again next time the surface is shown.
gdk/wayland/gdksurface-wayland.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c
index d5e777638c..6ad40c39cd 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -2958,6 +2958,10 @@ gdk_wayland_surface_hide_surface (GdkSurface *surface)
unset_transient_for_exported (surface);
impl->last_sent_window_geometry = (GdkRectangle) { 0 };
+ impl->last_sent_min_width = 0;
+ impl->last_sent_min_height = 0;
+ impl->last_sent_max_width = 0;
+ impl->last_sent_max_height = 0;
_gdk_wayland_surface_clear_saved_size (surface);
impl->mapped = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]