Minor simplification in initial window registration.

SVN revision: 84346
This commit is contained in:
Kim Woelders 2013-02-24 18:57:33 +00:00
parent 230bd9a2d6
commit 62a41d60b4
1 changed files with 4 additions and 6 deletions

View File

@ -2216,7 +2216,9 @@ EwinsManage(void)
unsigned int i, num;
#ifdef USE_EXT_INIT_WIN
Window init_win = ExtInitWinGet();
xwin = ExtInitWinGet();
if (xwin)
XRaiseWindow(disp, xwin);
#endif
xwins = NULL;
@ -2242,11 +2244,7 @@ EwinsManage(void)
if (attr.override_redirect)
{
XUnmapWindow(disp, xwin); /* Makes the CM catch it on map */
XMapRaised(disp, xwin);
#ifdef USE_EXT_INIT_WIN
if (init_win)
XRaiseWindow(disp, init_win);
#endif
XMapWindow(disp, xwin);
}
else
{