Fix that when the window is minimized, click the dock to restore the window, it cannot be restored normally

This commit is contained in:
liuchenghao 2021-07-14 14:58:45 +08:00 committed by akallabeth
parent ca8f7d7174
commit 8e87e9d6eb

View File

@ -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