From c39514d9d22870775c15270569156b15da869a19 Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Sun, 11 Dec 2011 00:36:32 +0200 Subject: minor changes - comments formatting naming - on maprequest() function --- dminiwm.c | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/dminiwm.c b/dminiwm.c index b99540b..fdfbf4f 100644 --- a/dminiwm.c +++ b/dminiwm.c @@ -571,33 +571,30 @@ void maprequest(XEvent *e) { } /* window type is not normal (_NET_WM_WINDOW_TYPE_NORMAL) */ - unsigned long count, j, extra; + Atom realType, *wintype; int realFormat; - unsigned char *temp; - Atom realType, *type; + unsigned long count, extra; + unsigned char *data; if(XGetWindowProperty(dis, ev->window, atoms[_NET_WM_WINDOW_TYPE], 0, 32, False, - XA_ATOM, &realType, &realFormat, &count, &extra, &temp) == Success) { - if(count > 0) { - type = (unsigned long*)temp; - for(j=0; jwindow); XMapWindow(dis, ev->window); XSetInputFocus(dis, ev->window, RevertToParent, CurrentTime); XRaiseWindow(dis, ev->window); - if(temp) - XFree(temp); return; } - } } - } - /* rule has been set for window */ + /* window is normal and has a rule set */ XClassHint ch = {0}; int cd = current_desktop; if(XGetClassHint(dis, ev->window, &ch)) @@ -616,6 +613,7 @@ void maprequest(XEvent *e) { return; } + /* window is normal and has no rule set */ add_window(ev->window); XMapWindow(dis, ev->window); tile(); -- cgit v1.3.1