noborder: add support for 0 nmaster deck layout ref. #82

This commit is contained in:
bakkeby 2020-11-24 17:37:49 +01:00
parent e26d50c110
commit e23b16e533

12
dwm.c
View File

@ -2637,10 +2637,16 @@ resizeclient(Client *c, int x, int y, int w, int h)
#if MONOCLE_LAYOUT #if MONOCLE_LAYOUT
|| &monocle == c->mon->lt[c->mon->sellt]->arrange || &monocle == c->mon->lt[c->mon->sellt]->arrange
#endif // MONOCLE_LAYOUT #endif // MONOCLE_LAYOUT
#if DECK_LAYOUT
|| (&deck == c->mon->lt[c->mon->sellt]->arrange &&
c->mon->nmaster == 0)
#endif // DECK_LAYOUT
#if FLEXTILE_DELUXE_LAYOUT #if FLEXTILE_DELUXE_LAYOUT
|| (&flextile == c->mon->lt[c->mon->sellt]->arrange && || (&flextile == c->mon->lt[c->mon->sellt]->arrange && (
c->mon->ltaxis[LAYOUT] == NO_SPLIT && (c->mon->ltaxis[LAYOUT] == NO_SPLIT &&
c->mon->ltaxis[MASTER] == MONOCLE) c->mon->ltaxis[MASTER] == MONOCLE) ||
(c->mon->ltaxis[STACK] == MONOCLE &&
c->mon->nmaster == 0)))
#endif //FLEXTILE_DELUXE_LAYOUT #endif //FLEXTILE_DELUXE_LAYOUT
) )
#if FAKEFULLSCREEN_CLIENT_PATCH #if FAKEFULLSCREEN_CLIENT_PATCH