Clean up hint handling at startup.

SVN revision: 10402
This commit is contained in:
Kim Woelders 2004-05-31 20:14:50 +00:00
parent f4e8e24b48
commit a5e7d6d8ab
3 changed files with 6 additions and 9 deletions

View File

@ -36,7 +36,12 @@ HintsInit(void)
Window win;
EDBUG(6, "HintsInit");
win = ECreateWindow(VRoot.win, -200, -200, 5, 5, 0);
/* retreive stuff from last time we were loaded if we're restarting */
ICCCM_GetMainEInfo();
ICCCM_Init();
#if ENABLE_GNOME
GNOME_SetHints(win);

View File

@ -1139,7 +1139,7 @@ ICCCM_GetMainEInfo(void)
num = (int)lnum;
if ((num > 0) && (c))
{
GotoDesktop(*c);
desks.current = *c;
XFree(c);
}
}

View File

@ -266,18 +266,11 @@ main(int argc, char **argv)
ShowDesktopControls();
CheckEvent();
/* retreive stuff from last time we were loaded if we're restarting */
ICCCM_GetMainEInfo();
SetupEnv();
if (Conf.mapslide)
CreateStartupDisplay(0);
/* set some more hints */
HintsSetDesktopViewport();
desks.current = 0;
/* Set up the iconboxes and pagers */
IB_Setup();
if (Conf.pagers.enable)
@ -323,7 +316,6 @@ main(int argc, char **argv)
autosave();
/* let's make sure we set this up and go to our desk anyways */
ICCCM_GetMainEInfo();
GotoDesktop(desks.current);
if (desks.current < (Conf.desks.num - 1))
{