aboutsummaryrefslogtreecommitdiff
path: root/sway/config/bar.c
AgeCommit message (Collapse)Author
2018-08-02Reset signal mask after forkMarien Zwart
wlroots uses wl_event_loop_add_signal to handle SIGUSR1 from Xwayland. wl_event_loop_add_signal works by masking the signal and receiving it from a signalfd. The signal mask is preserved across fork and exec, so subprocesses spawned by Sway start with SIGUSR1 masked. Most subprocesses do not expect this and never unmask the signal, resulting in missing functionality or unexpected behavior for processes that use SIGUSR1 (such as i3status). Fix this by unmasking all signals between fork and exec.
2018-07-09Update for swaywm/wlroots#1126emersion
2018-07-05config: add a couple of forgotten freesDominique Martinet
2018-07-02bar config: fix uninitialized accesses on init errorDominique Martinet
If init fails halfway through it will call the destroy function, which needs some coherent stuff filled. Allocate with calloc and fill in what cannot fail first Found through static analysis.
2018-07-02invoke_swaybar: fix message length header sizeDominique Martinet
size_t/ssize_t are 8 bytes on 64bit systems, so use the proper size to transmit that information. This could lead to ridiculously large alloc as len is not initialized to zero Found through static analysis
2018-04-26Rename len to msg_len. Avoids an aliased variable that was a little ↵Geoff Greer
confusing to follow.
2018-04-26invoke_swaybar(): Set process group. Kill process group.Geoff Greer
Fixes a bug where terminate_swaybar() did not terminate swaybar.
2018-03-31Free bar configs on reload and exitDrew DeVault
2018-03-30Merge remote-tracking branch 'origin/wlroots' into swaybar-layersDrew DeVault
2018-03-29Terminate swaybar when freeing bar configDrew DeVault
2018-03-29Spawn swaybars when outputs are addedDrew DeVault
2018-03-29Move bar config into its own fileDrew DeVault