Disable slide-ins until startup windows are gone.

SVN revision: 30371
This commit is contained in:
Kim Woelders 2007-06-17 08:33:22 +00:00
parent 0303e9e743
commit de1e2af094
4 changed files with 5 additions and 3 deletions

View File

@ -487,7 +487,7 @@ typedef struct
} move;
struct
{
char enable_features;
signed char enable_features;
char doing_manual;
char doing_slide;
} place;

View File

@ -797,7 +797,7 @@ AddToFamily(EWin * ewin, Window xwin)
EwinResize(ewin, ewin->client.w, ewin->client.h);
doslide = manplace = 0;
if (Mode.place.enable_features)
if (Mode.place.enable_features > 0)
{
/* if set for borderless then dont slide it in */
if (Conf.place.slidein && !Mode.place.doing_slide &&

View File

@ -542,7 +542,7 @@ FocusInit(void)
FocusSet();
/* Enable window placement features */
Mode.place.enable_features = 1;
Mode.place.enable_features++;
}
static void

View File

@ -150,6 +150,7 @@ doStartupWindowsOpen(void *data __UNUSED__)
if (kk < 1024)
return 1;
Mode.place.enable_features++;
EobjWindowDestroy(init_win1);
EobjWindowDestroy(init_win2);
init_win1 = NULL;
@ -164,6 +165,7 @@ StartupWindowsOpen(void)
if (init_win1 == NULL || init_win2 == NULL)
return;
Mode.place.enable_features--;
ESync();
AnimatorAdd(doStartupWindowsOpen, NULL);
}