yambar/modules
Daniel Eklöf b0e132beaf
module/i3: if a new workspace is created, but unfocused, assume it’s not empty
If a window is created on an unfocused workspace, yambar did not
update the empty tag correctly. At least not for persistent
workspaces.

This is because yambar relies on focus events to determine a
workspace's "empty" state. Since the new window, on the new workspace,
isn't focused, there's no focus event, and yambar thinks the workspace
is still empty.

This patch changes the logic slightly; a new workspace is considered
non-empty if it isn't focused (and has a non-zero node count).

Closes #191
2022-06-11 11:59:41 +02:00
..
alsa.c module/alsa: add support for capture devices 2021-08-26 11:03:12 +02:00
backlight.c module/backlight: handle poll() failures 2021-12-17 11:23:59 +01:00
battery.c module/battery: handle poll() failures 2021-12-17 11:25:37 +01:00
clock.c module/clock: handle poll() failures 2021-12-17 11:55:31 +01:00
cpu.c module/cpu: don’t use core ID from /proc/stat as array index 2022-04-07 13:28:35 +02:00
foreign-toplevel.c foreign-toplevel: refresh the bar when a top-level is closed 2021-10-17 09:52:28 +02:00
i3-common.c module/i3-common: fix compilation warning with asan 2020-07-07 14:06:29 +02:00
i3-common.h modules/sway-xkb: new module, uses sway 'input' events to expose kbd layout 2019-08-14 21:51:43 +02:00
i3-ipc.h module/i3: use our own copy of i3/ipc.h 2019-03-31 12:08:44 +02:00
i3.c module/i3: if a new workspace is created, but unfocused, assume it’s not empty 2022-06-11 11:59:41 +02:00
label.c modules: implement description() 2021-06-20 21:15:24 +02:00
mem.c modules: add mem module 2021-12-21 18:44:14 +01:00
meson.build modules: add cpu module 2021-12-21 18:44:36 +01:00
mpd.c modules: add SOCK_CLOEXEC to all socket() calls 2022-03-29 18:21:13 +02:00
network.c module/network: Add link stats 2022-06-06 15:11:24 +02:00
removables.c module/removables: open /proc/self/mountinfo with CLOEXEC 2022-03-29 18:21:44 +02:00
river.c module/river: add support for the ‘mode’ event 2022-06-02 17:24:42 +02:00
script.c Don’t loop 65536 FDs, trying to close them, when fork+exec:ing 2022-03-29 18:23:55 +02:00
sway-xkb.c module/sway-xkb: handle device being added again 2022-06-03 19:37:52 +02:00
xkb.c module/xkb: handle poll() failures 2021-12-17 11:55:38 +01:00
xwindow.c module/xwindow: handle poll() failures 2021-12-17 11:55:38 +01:00