Fixed RAIL window can't show again once hidden
authorHualet Wang <mr.asianwang@gmail.com>
Tue, 4 Dec 2018 12:28:32 +0000 (20:28 +0800)
committerHualet Wang <mr.asianwang@gmail.com>
Tue, 4 Dec 2018 12:37:37 +0000 (20:37 +0800)
commite33efccf4814639ac58ccca829f9a759a4e0cb2d
treef97e1e9f900fd3c47d9757c554613f552ba1737d
parent4108fc51a9d18c56e9df7669962c9007f263354e
Fixed RAIL window can't show again once hidden

The cause is very simple: we didn't map the xwindow on receiving
WINDOW_SHOW. but doing that causes another problem that you can't
hide a window anymore, and that is because whlie window hiding, the
_NET_WM_STATE and WM_STATE properies of the xwindow may change, in
the function `xf_event_PropertyNotify` we just assume that windows
not maximized, not minimized, yet not showing normally should be
corrected to be shown, we just need to consider the situation that
the window is hidden here.

fix: #5078
client/X11/xf_event.c
client/X11/xf_window.c