mirror of
https://github.com/0intro/wmii
synced 2024-11-25 23:30:24 +03:00
21 lines
469 B
C
21 lines
469 B
C
/* 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)
|
|
event_handle(w, unmap, ev);
|
|
}
|
|
if((w = findwin(ev->event)))
|
|
event_handle(w, unmap, ev);
|
|
}
|