Introduction
Introduction Statistics Contact Development Disclaimer Help
trearranged getproto - dwm - [fork] customized build of dwm, the dynamic window…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit 0ff80653d3c85715966de3c1fe76a8927ed8133d
parent 352e1b4c81d141cf60f98b38c93dd1fcd342c4a4
Author: Anselm R. Garbe <[email protected]>
Date: Tue, 22 Aug 2006 17:40:21 +0200
rearranged getproto
Diffstat:
M main.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/main.c b/main.c
t@@ -92,19 +92,18 @@ Window root, barwin;
int
getproto(Window w)
{
- int status, format, protos = 0;
- int i;
+ int i, format, protos, status;
unsigned long extra, res;
Atom *protocols, real;
- status = XGetWindowProperty(dpy, w, wmatom[WMProtocols], 0L, 20L,
- False, XA_ATOM, &real, &format, &res, &extra, (unsigne…
+ protos = 0;
+ status = XGetWindowProperty(dpy, w, wmatom[WMProtocols], 0L, 20L, Fals…
+ XA_ATOM, &real, &format, &res, &extra, (unsigned char …
if(status != Success || protocols == 0)
return protos;
- for(i = 0; i < res; i++) {
+ for(i = 0; i < res; i++)
if(protocols[i] == wmatom[WMDelete])
protos |= PROTODELWIN;
- }
free(protocols);
return protos;
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.