mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
vanitygaps + pertag: enablegaps should be retrieved from the current monitor, not the selected monitor ref. #258
This commit is contained in:
parent
c553f93b52
commit
54070d7e51
@ -96,7 +96,11 @@ togglegaps(const Arg *arg)
|
||||
drawbarwin(systray->bar);
|
||||
#endif // BAR_SYSTRAY_PATCH
|
||||
#endif // BAR_PADDING_VANITYGAPS_PATCH
|
||||
#if PERTAG_VANITYGAPS_PATCH && PERTAG_PATCH
|
||||
arrange(selmon);
|
||||
#else
|
||||
arrange(NULL);
|
||||
#endif // PERTAG_VANITYGAPS_PATCH
|
||||
}
|
||||
|
||||
static void
|
||||
@ -188,7 +192,7 @@ getgaps(Monitor *m, int *oh, int *ov, int *ih, int *iv, unsigned int *nc)
|
||||
{
|
||||
unsigned int n, oe, ie;
|
||||
#if PERTAG_VANITYGAPS_PATCH && PERTAG_PATCH
|
||||
oe = ie = selmon->pertag->enablegaps[selmon->pertag->curtag];
|
||||
oe = ie = m->pertag->enablegaps[m->pertag->curtag];
|
||||
#else
|
||||
oe = ie = enablegaps;
|
||||
#endif // PERTAG_VANITYGAPS_PATCH
|
||||
|
Loading…
Reference in New Issue
Block a user