wmii/lib/libstuff/event/unmapnotify.c

21 lines
469 B
C
Raw Normal View History

2010-05-22 06:52:47 +04:00
/* Copyright ©2006-2010 Kris Maglione <maglione.k at Gmail>
* See LICENSE file for license details.
*/
#include "event.h"
void
event_unmapnotify(XUnmapEvent *ev) {
Window *w;
if((w = findwin(ev->window))) {
if(!ev->send_event)
w->mapped = false;
if(!ev->send_event && ev->event == ev->window)
w->unmapped--;
if(ev->send_event && ev->event != ev->window)
2010-05-27 11:58:02 +04:00
event_handle(w, unmap, ev);
2010-05-22 06:52:47 +04:00
}
if((w = findwin(ev->event)))
event_handle(w, unmap, ev);
2010-05-22 06:52:47 +04:00
}