mirror of
https://github.com/swaywm/sway.git
synced 2026-05-05 06:46:49 -04:00
Render i3bar blocks
This commit is contained in:
parent
ee85c91831
commit
333dbcbe72
7 changed files with 314 additions and 34 deletions
|
|
@ -308,14 +308,14 @@ static void display_in(int fd, short mask, void *_bar) {
|
|||
|
||||
static void ipc_in(int fd, short mask, void *_bar) {
|
||||
struct swaybar *bar = (struct swaybar *)_bar;
|
||||
if (handle_ipc_event(bar)) {
|
||||
if (handle_ipc_readable(bar)) {
|
||||
render_all_frames(bar);
|
||||
}
|
||||
}
|
||||
|
||||
static void status_in(int fd, short mask, void *_bar) {
|
||||
struct swaybar *bar = (struct swaybar *)_bar;
|
||||
if (handle_status_readable(bar->status)) {
|
||||
if (status_handle_readable(bar->status)) {
|
||||
render_all_frames(bar);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue