Daniel Eklöf
1bb77e59f3
Merge branch 'poll-failures'
2021-12-18 14:57:58 +01:00
Daniel Eklöf
9cff50a39e
module/xwindow: handle poll() failures
2021-12-17 11:55:38 +01:00
Daniel Eklöf
96c75b7f73
module/xkb: handle poll() failures
2021-12-17 11:55:38 +01:00
Daniel Eklöf
ffa86d84a5
module/removables: handle poll() failures
2021-12-17 11:55:36 +01:00
Daniel Eklöf
5d09e59f11
module/mpd: handle poll() failures
2021-12-17 11:55:36 +01:00
Daniel Eklöf
8a11a3fbe5
module/clock: handle poll() failures
2021-12-17 11:55:31 +01:00
Daniel Eklöf
cdd0b5b4f0
module/clock: fold long line
2021-12-17 11:28:05 +01:00
Daniel Eklöf
82ef48f666
module/clock: remove unused include
2021-12-17 11:27:53 +01:00
Daniel Eklöf
f922973450
module/battery: handle poll() failures
2021-12-17 11:25:37 +01:00
Daniel Eklöf
6612a9af9f
module/backlight: handle poll() failures
2021-12-17 11:23:59 +01:00
Daniel Eklöf
f71e7c2905
Merge branch 'x11-struts'
2021-12-11 12:32:09 +01:00
natemaia
39a5493450
Fix: X11 struts
...
https://specifications.freedesktop.org/wm-spec/wm-spec-1.3.html#idm45643490065584
2021-12-09 02:07:24 +01:00
Catterwocky
b562f1310b
Fix yaml indentation in docs
...
It is unfortunate that the first example given by the manpage is not working.
2021-12-04 17:49:39 +01:00
Daniel Eklöf
9f2197ca1c
Merge branch 'config-unsigned-ints'
...
Closes #129
2021-11-15 20:02:11 +01:00
Daniel Eklöf
9d94cec549
changelog: integer options incorrectly allowed < 0 values
2021-11-15 18:21:19 +01:00
Daniel Eklöf
4f0d27bc7e
particles: verify: use conf_verify_unsigned() for options that should be >= 0
2021-11-15 18:17:52 +01:00
Daniel Eklöf
f166bbbf54
modules: verify: use conf_verify_unsigned() for options that should be >= 0
2021-11-15 18:17:29 +01:00
Daniel Eklöf
b6931c6ed0
decos: verify: all integer options are supposed to be unsigned
2021-11-15 18:17:12 +01:00
Daniel Eklöf
23f12a65b2
conf: bar/border: verify: all integer options are supposed to be unsigned
2021-11-15 18:16:37 +01:00
Daniel Eklöf
72056c50cf
config-verify: add conf_verify_unsigned()
...
Like conf_verify_int(), but also requires the integer to be >= 0
2021-11-15 18:16:15 +01:00
Daniel Eklöf
11bb45aa87
doc: script: add missing column in options table
2021-11-15 18:15:52 +01:00
Daniel Eklöf
d40220e511
bar/wayland: handle failure to set initial size in setup()
2021-11-15 18:06:10 +01:00
Daniel Eklöf
58038a4236
doc: battery: some batteries enter "unknown" under normal operation
2021-10-31 21:07:09 +01:00
Daniel Eklöf
8324112504
example: battery: map ‘unknown’ to ‘discharging’
...
Related to #123
2021-10-30 18:45:43 +02:00
Daniel Eklöf
66ec7a85a1
example: conf: foreign-toplevel: merge ‘: ’ and ‘{title}’
2021-10-24 18:34:43 +02:00
Daniel Eklöf
0f6d165084
Merge branch 'border-deco'
2021-10-24 18:22:44 +02:00
Daniel Eklöf
134141b7c5
doc: decorations: document the new ‘border’ decoration
2021-10-24 18:22:21 +02:00
Daniel Eklöf
f0782d5124
deco: new decoration, ‘border’
...
Kind of like “underline”, but draws a border around the entire
particle.
2021-10-24 18:22:21 +02:00
Daniel Eklöf
c9abb6b98f
Merge branch 'network-dont-send-nl80211-req-if-family-id-not-set'
2021-10-24 18:21:51 +02:00
Daniel Eklöf
31f160141e
changelog: network: failure to retrieve wireless attributes
2021-10-24 17:50:10 +02:00
Daniel Eklöf
9ffd305b59
network: must re-send station request when we receive family ID
...
The get station request also fails if the family ID is invalid.
2021-10-24 17:47:54 +02:00
Daniel Eklöf
4e96dbd7f7
network: don’t send nl80211 request if we don’t have a family-id
...
This fixes an issue where we sometimes failed to retrieve the SSID; we
sent one initial request before the family ID had been set.
Then, we received the family ID and tried to send another
request. However, if the first request was still in progress, the
second request was never made.
Since the first request lacked the family ID, that response didn’t
contain anything useful.
2021-10-24 17:35:15 +02:00
Daniel Eklöf
7d715d81a8
example: conf: use foreign-toplevel instead of i3’s ‘current’
2021-10-24 17:24:15 +02:00
Daniel Eklöf
cad9dd8efd
ci: also build release branches
2021-10-23 16:03:21 +02:00
Daniel Eklöf
bd44e82eca
bar/wayland: coalesce “refresh” commands
...
This reduces the number of repaints primarily during startup, but also
when e.g. switching workspace.
2021-10-22 18:07:14 +02:00
Daniel Eklöf
939b81a4ea
bar/wayland: create comm pipe with CLOEXEC | NONBLOCK
2021-10-22 18:06:43 +02:00
Daniel Eklöf
fee0b91174
bar/wayland: remove unused member ‘bar_expose’
2021-10-22 18:06:19 +02:00
Daniel Eklöf
4f3aa8c6b0
bar: do a synchronous “refresh” *before* starting the modules
...
This ensures the surface has been mapped, and our “current” output is
known.
This fixes an issue where modules depending on the current output
being known failed to update correctly during startup.
2021-10-22 18:05:20 +02:00
Daniel Eklöf
957e25914c
Merge branch 'typo-in-example-conf'
2021-10-20 19:52:56 +02:00
mz
2b670ea612
remove an extra space
...
Remove the extra space due to `did not find expected key while parsing a block mapping` issue
2021-10-19 10:11:46 +02:00
Daniel Eklöf
d7a58e4ee0
Merge branch 'bar-initial-refresh'
...
Closes #116
2021-10-17 17:22:02 +02:00
Daniel Eklöf
94a0154c23
bar: refresh before starting the main loop
...
This ensures the bar surface gets mapped, and a background + border
rendered, even though no module “refreshes” it during initialization.
Closes #116
2021-10-17 16:48:09 +02:00
Daniel Eklöf
515b36da0d
foreign-toplevel: refresh the bar when a top-level is closed
...
Fixes an issue where the last active window is still being displayed
in the bar after the corresponding top-level has been closed.
Reported here: https://github.com/johanmalm/labwc/issues/73#issuecomment-945007028
2021-10-17 09:52:28 +02:00
Daniel Eklöf
9fe8ef2574
ci: run “yambar --version” after each build
2021-10-11 20:21:10 +02:00
Daniel Eklöf
9a1371b96a
generate-version: handle git repo not having any tags
2021-10-11 20:21:07 +02:00
Daniel Eklöf
6250360c58
ci: limit builds to the master branch (and pulls targeting it)
2021-10-10 19:05:47 +02:00
Daniel Eklöf
77303e8173
ci: codeberg CI
2021-10-10 18:46:45 +02:00
Daniel Eklöf
4cd031bc73
Merge branch 'clang13'
2021-10-04 16:37:14 +02:00
Jan Beich
03476e9360
yml: silence unused variable warning with Clang 13
...
yml.c:383:9: error: variable 'indent' set but not used [-Werror,-Wunused-but-set-variable]
int indent = 0;
^
2021-10-03 23:40:23 +00:00
Jan Beich
ec465ba3b3
wayland: unbreak build without memfd_create
...
New FreeBSD versions have memfd_create but other BSDs don't.
bar/wayland.c:774:15: error: implicit declaration of function 'memfd_create' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
pool_fd = memfd_create("yambar-wayland-shm-buffer-pool", MFD_CLOEXEC);
^
bar/wayland.c:774:62: error: use of undeclared identifier 'MFD_CLOEXEC'
pool_fd = memfd_create("yambar-wayland-shm-buffer-pool", MFD_CLOEXEC);
^
2021-10-03 23:07:23 +00:00