fix: event.c compile error — remove _x11_raw dependency in unmap handler
Replace broken xev->u.unmap.send_event check (WMEvent has no unmap member) with unconditional withdraw=True when event comes from root. Also remove unused XEvent variable in handleExpose.
This commit is contained in:
parent
ce8783c0d4
commit
cc9fc26817
|
|
@ -570,7 +570,6 @@ static void handleDestroyNotify(WMEvent * event)
|
|||
static void handleExpose(WMEvent * event)
|
||||
{
|
||||
WObjDescriptor *desc;
|
||||
XEvent ev;
|
||||
|
||||
wm_backend->event_flush_window((WNativeWindow)event->u.expose.window, WME_EXPOSE);
|
||||
|
||||
|
|
@ -779,9 +778,7 @@ static void handleUnmapNotify(WMEvent * event)
|
|||
|
||||
/* whether the event is a Withdrawal request */
|
||||
if (event->u.lifecycle.event == wwin->screen_ptr->root_win) {
|
||||
WMEvent *xev = event;
|
||||
if (xev && xev->u.unmap.send_event)
|
||||
withdraw = True;
|
||||
withdraw = True;
|
||||
}
|
||||
|
||||
if (wwin->client_win != event->u.lifecycle.window && !withdraw)
|
||||
|
|
|
|||
Loading…
Reference in New Issue