Fixed : XFCE minimized state

This commit is contained in:
Armin Novak 2021-02-17 11:46:45 +01:00 committed by akallabeth
parent 7365330275
commit b1ff171413

@ -855,7 +855,8 @@ static BOOL xf_event_PropertyNotify(xfContext* xfc, const XPropertyEvent* event,
appWindow->rail_state = WINDOW_SHOW_MINIMIZED;
xf_rail_send_client_system_command(xfc, appWindow->windowId, SC_MINIMIZE);
}
else if (!minimized && !maxVert && !maxHorz && (appWindow->rail_state != WINDOW_SHOW) &&
else if (((Atom)event->atom == xfc->WM_STATE) && !minimized &&
(appWindow->rail_state != WINDOW_SHOW) &&
(appWindow->rail_state != WINDOW_HIDE))
{
appWindow->rail_state = WINDOW_SHOW;