mirror of
https://github.com/swaywm/sway.git
synced 2025-01-11 10:29:38 +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) {
|
||||
if (mask & WL_EVENT_HANGUP) {
|
||||
sway_terminate(0);
|
||||
}
|
||||
wl_display_dispatch(state.display);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue