diff --git a/windows/window.c b/windows/window.c index 5a70098c..4b1e4f05 100644 --- a/windows/window.c +++ b/windows/window.c @@ -2106,7 +2106,7 @@ static bool is_alt_pressed(void) static bool resizing; -static void win_seat_notify_remote_exit(Seat *seat) +static void exit_callback(void *vctx) { int exitcode, close_on_exit; @@ -2133,6 +2133,11 @@ static void win_seat_notify_remote_exit(Seat *seat) } } +static void win_seat_notify_remote_exit(Seat *seat) +{ + queue_toplevel_callback(exit_callback, NULL); +} + void timer_change_notify(unsigned long next) { unsigned long now = GETTICKCOUNT();