[gtk/matthiasc/surface-state-rework: 9/80] surface: Only keep state 'withdrawn' after hiding
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/surface-state-rework: 9/80] surface: Only keep state 'withdrawn' after hiding
- Date: Sat, 5 Dec 2020 17:42:38 +0000 (UTC)
commit de4b7da42bda1d59e81cbd5c91c0c7d4890e6305
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Mon Nov 23 17:23:44 2020 +0100
surface: Only keep state 'withdrawn' after hiding
A hidden surface should start from a clean slate when showing again, so
clear any now out of date state.
gdk/gdksurface.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index a64cbb0f94..25e6f12b27 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -1671,7 +1671,9 @@ gdk_surface_hide (GdkSurface *surface)
if (GDK_SURFACE_IS_MAPPED (surface))
{
- gdk_synthesize_surface_state (surface, 0, GDK_TOPLEVEL_STATE_WITHDRAWN);
+ gdk_synthesize_surface_state (surface,
+ surface->state & ~GDK_TOPLEVEL_STATE_WITHDRAWN,
+ GDK_TOPLEVEL_STATE_WITHDRAWN);
surface->pending_unset_flags = 0;
surface->pending_set_flags = 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]