Make sure it plays well with pertag patch

This commit is contained in:
Utkarsh Verma 2021-12-26 21:26:32 +05:30
parent 3d081ef5f9
commit 6667f1030b
No known key found for this signature in database
GPG Key ID: 817656CF818EFCCC

7
dwm.c
View File

@ -4319,10 +4319,15 @@ updatebarpos(Monitor *m)
m->ww = m->mw; m->ww = m->mw;
m->wh = m->mh; m->wh = m->mh;
Bar *bar; Bar *bar;
#if BAR_GAPS_PADDING_PATCH #if BAR_GAPS_PADDING_PATCH && VANITYGAPS_PATCH
int y_pad = 0; int y_pad = 0;
int x_pad = 0; int x_pad = 0;
#if PERTAG_VANITYGAPS_PATCH && PERTAG_PATCH
if (!selmon || selmon->pertag->enablegaps[selmon->pertag->curtag]) {
#else
if (enablegaps) { if (enablegaps) {
#endif // PERTAG_VANITYGAPS_PATCH
y_pad = gappov; y_pad = gappov;
x_pad = gappoh; x_pad = gappoh;
} }