Commit ea571387 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Screen.c: simplify nxagentMinimizeFromFullscreen

parent 6657b8cc
......@@ -319,6 +319,13 @@ Bool nxagentIsParentOf(Display *d, Window possible_parent, Window candidate)
}
}
/*
* Pressing the minimize keystroke while in fullscreen mode will call
* this function. It will unmap the fullscreen window and iconify the
* previously created icon window immediately. The window manager may
* decide how to show an iconified window. kwin e.g. shows it in the
* task bar.
*/
void nxagentMinimizeFromFullScreen(ScreenPtr pScreen)
{
XUnmapWindow(nxagentDisplay, nxagentFullscreenWindow);
......@@ -326,14 +333,10 @@ void nxagentMinimizeFromFullScreen(ScreenPtr pScreen)
if (nxagentIpaq)
{
XMapWindow(nxagentDisplay, nxagentIconWindow);
XIconifyWindow(nxagentDisplay, nxagentIconWindow,
DefaultScreen(nxagentDisplay));
}
else
{
XIconifyWindow(nxagentDisplay, nxagentIconWindow,
XIconifyWindow(nxagentDisplay, nxagentIconWindow,
DefaultScreen(nxagentDisplay));
}
}
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment