From 8e87e9d6eb847a9af4e1b090112adc59d960fe66 Mon Sep 17 00:00:00 2001 From: liuchenghao Date: Wed, 14 Jul 2021 14:58:45 +0800 Subject: [PATCH] Fix that when the window is minimized, click the dock to restore the window, it cannot be restored normally --- client/X11/xf_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/X11/xf_event.c b/client/X11/xf_event.c index 1f56c4ed0..7548d7ae3 100644 --- a/client/X11/xf_event.c +++ b/client/X11/xf_event.c @@ -763,7 +763,7 @@ static BOOL xf_event_MapNotify(xfContext* xfc, const XMapEvent* event, BOOL app) { appWindow = xf_AppWindowFromX11Window(xfc, event->window); - if (appWindow) + if (appWindow && (appWindow->rail_state == WINDOW_SHOW)) { /* local restore event */ /* This is now handled as part of the PropertyNotify