From 876b8e63852853898a0278bac7e4bbd132a0760e Mon Sep 17 00:00:00 2001 From: Doyoun Kang Date: Thu, 2 Nov 2023 11:13:57 +0900 Subject: [PATCH] e_client: fix enlightenment crash while handling unfullscreen Change-Id: I7679c0344d3d2e9e8d25d1eaa3accb15133e1fe0 --- src/bin/e_client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/e_client.c b/src/bin/e_client.c index c6ed520..e282a11 100644 --- a/src/bin/e_client.c +++ b/src/bin/e_client.c @@ -4294,8 +4294,10 @@ e_client_unfullscreen(E_Client *ec) if ((ec->shaded) || (ec->shading)) return; if (!ec->fullscreen) return; + E_Fullscreen policy = ec->fullscreen_policy; + // call the unfullscreen hook of a client - wl_signal_emit_mutable(&PRI(ec)->events.unfullscreen, NULL); + wl_signal_emit_mutable(&PRI(ec)->events.unfullscreen, &policy); ec->fullscreen_policy = E_FULLSCREEN_RESIZE; -- 2.7.4