Merge pull request #5097 from hualet/master
Fixed RAIL window can't show again once hidden
This commit is contained in:
commit
46ffa611cc
@ -900,7 +900,7 @@ static BOOL xf_event_PropertyNotify(xfContext* xfc, XEvent* event, BOOL app)
|
||||
xf_rail_send_client_system_command(xfc, appWindow->windowId, SC_MINIMIZE);
|
||||
}
|
||||
else if (!minimized && !maxVert && !maxHorz
|
||||
&& (appWindow->rail_state != WINDOW_SHOW))
|
||||
&& (appWindow->rail_state != WINDOW_SHOW) && (appWindow->rail_state != WINDOW_HIDE))
|
||||
{
|
||||
appWindow->rail_state = WINDOW_SHOW;
|
||||
xf_rail_send_client_system_command(xfc, appWindow->windowId, SC_RESTORE);
|
||||
|
@ -988,6 +988,8 @@ void xf_ShowWindow(xfContext* xfc, xfAppWindow* appWindow, BYTE state)
|
||||
if (appWindow->is_transient)
|
||||
xf_SetWindowUnlisted(xfc, appWindow->handle);
|
||||
|
||||
XMapWindow(xfc->display, appWindow->handle);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user