mirror of
https://github.com/swaywm/sway.git
synced 2025-01-11 18:39:43 +00:00
parent
76bdbe938f
commit
620b269418
|
@ -340,6 +340,9 @@ void sig_handler(int signal) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static int display_event(int fd, uint32_t mask, void *data) {
|
static int display_event(int fd, uint32_t mask, void *data) {
|
||||||
|
if (mask & WL_EVENT_HANGUP) {
|
||||||
|
sway_terminate(0);
|
||||||
|
}
|
||||||
wl_display_dispatch(state.display);
|
wl_display_dispatch(state.display);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue