mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 12:05:45 +00:00
on_empty_keys: global isempty rather than per-monitor
This commit is contained in:
parent
6742783b87
commit
21bafa5e69
10
dwm.c
10
dwm.c
@ -420,9 +420,6 @@ struct Monitor {
|
|||||||
unsigned int sellt;
|
unsigned int sellt;
|
||||||
unsigned int tagset[2];
|
unsigned int tagset[2];
|
||||||
int showbar;
|
int showbar;
|
||||||
#if ON_EMPTY_KEYS_PATCH
|
|
||||||
int isempty;
|
|
||||||
#endif // ON_EMPTY_KEYS_PATCH
|
|
||||||
Client *clients;
|
Client *clients;
|
||||||
Client *sel;
|
Client *sel;
|
||||||
Client *stack;
|
Client *stack;
|
||||||
@ -710,6 +707,9 @@ static Atom wmatom[WMLast], netatom[NetLast], xatom[XLast];
|
|||||||
#else
|
#else
|
||||||
static Atom wmatom[WMLast], netatom[NetLast];
|
static Atom wmatom[WMLast], netatom[NetLast];
|
||||||
#endif // BAR_SYSTRAY_PATCH
|
#endif // BAR_SYSTRAY_PATCH
|
||||||
|
#if ON_EMPTY_KEYS_PATCH
|
||||||
|
static int isempty = 0;
|
||||||
|
#endif // ON_EMPTY_KEYS_PATCH
|
||||||
static int running = 1;
|
static int running = 1;
|
||||||
static Cur *cursor[CurLast];
|
static Cur *cursor[CurLast];
|
||||||
static Clr **scheme;
|
static Clr **scheme;
|
||||||
@ -1818,8 +1818,8 @@ focus(Client *c)
|
|||||||
drawbars();
|
drawbars();
|
||||||
|
|
||||||
#if ON_EMPTY_KEYS_PATCH
|
#if ON_EMPTY_KEYS_PATCH
|
||||||
if ((selmon->isempty && selmon->sel) || (!selmon->isempty && !selmon->sel)) {
|
if ((isempty && selmon->sel) || (!isempty && !selmon->sel)) {
|
||||||
selmon->isempty = !selmon->isempty;
|
isempty = !isempty;
|
||||||
grabkeys();
|
grabkeys();
|
||||||
}
|
}
|
||||||
#endif // ON_EMPTY_KEYS_PATCH
|
#endif // ON_EMPTY_KEYS_PATCH
|
||||||
|
Loading…
x
Reference in New Issue
Block a user