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;
|
|
|
|
|
2010-05-28 23:51:00 +04:00
|
|
|
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
|
|
|
}
|
2010-05-28 23:51:00 +04:00
|
|
|
if((w = findwin(ev->event)))
|
|
|
|
event_handle(w, unmap, ev);
|
2010-05-22 06:52:47 +04:00
|
|
|
}
|