Disable slide-ins until startup windows are gone.
SVN revision: 30371
This commit is contained in:
parent
0303e9e743
commit
de1e2af094
2
src/E.h
2
src/E.h
|
@ -487,7 +487,7 @@ typedef struct
|
|||
} move;
|
||||
struct
|
||||
{
|
||||
char enable_features;
|
||||
signed char enable_features;
|
||||
char doing_manual;
|
||||
char doing_slide;
|
||||
} place;
|
||||
|
|
|
@ -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 &&
|
||||
|
|
|
@ -542,7 +542,7 @@ FocusInit(void)
|
|||
FocusSet();
|
||||
|
||||
/* Enable window placement features */
|
||||
Mode.place.enable_features = 1;
|
||||
Mode.place.enable_features++;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue