Merge pull request #485 from FreeSlave/x11_iconify

Use XIconifyWindow instead of sending the event to programmatically m…
This commit is contained in:
Vadim Lopatin 2017-10-16 11:21:29 +03:00 committed by GitHub
commit e977a246b0
1 changed files with 1 additions and 3 deletions

View File

@ -527,10 +527,8 @@ class X11Window : DWindow {
}
break;
case WindowState.minimized:
if (atom_NET_WM_STATE != None && atom_NET_WM_STATE_HIDDEN != None) {
changeWindowState(_NET_WM_STATE_ADD, atom_NET_WM_STATE_HIDDEN);
if (XIconifyWindow(x11display, _win, x11screen))
result = true;
}
break;
case WindowState.hidden:
XUnmapWindow(x11display, _win);