Re: [dev] dwm does something bad to X.org 1.7.6

From: Andrew Antle <andrew.antle_AT_gmail.com>
Date: Sat, 17 Apr 2010 22:59:07 -0400

On Tue, Apr 13, 2010 at 9:24 PM, Andrew Antle <andrew.antle_AT_gmail.com> wrote:
> Hello Anselm -
>
> Attached is my log from dwm hg tip, and my xorg-server info. Please
> let me know if you need any more information.

I'm a moron.

andrew_AT_arch:~% diff -u builds/suckless/dwm/dwm.c
builds/suckless/dwm-5.7.2/dwm.c
--- builds/suckless/dwm/dwm.c 2010-04-13 21:07:47.000000000 -0400
+++ builds/suckless/dwm-5.7.2/dwm.c 2009-09-27 15:20:23.000000000 -0400
@@ -41,7 +41,6 @@
 #endif /* XINERAMA */

 /* macros */
-#define D if(1)
 #define BUTTONMASK (ButtonPressMask|ButtonReleaseMask)
 #define CLEANMASK(mask) (mask & ~(numlockmask|LockMask))
 #define INRECT(X,Y,RX,RY,RW,RH) ((X) >= (RX) && (X) < (RX) + (RW) &&
(Y) >= (RY) && (Y) < (RY) + (RH))
@@ -848,8 +847,7 @@

         if(!mons->next)
                 return;
- if((m = dirtomon(arg->i)) == selmon)
- return;
+ m = dirtomon(arg->i);
         unfocus(selmon->sel);
         selmon = m;
         focus(NULL);
@@ -1390,27 +1388,12 @@
 void
 run(void) {
         XEvent ev;
- static const char *evname[LASTEvent] = {
- [ButtonPress] = "buttonpress",
- [ConfigureRequest] = "configurerequest",
- [ConfigureNotify] = "configurenotify",
- [DestroyNotify] = "destroynotify",
- [EnterNotify] = "enternotify",
- [Expose] = "expose",
- [FocusIn] = "focusin",
- [KeyPress] = "keypress",
- [MappingNotify] = "mappingnotify",
- [MapRequest] = "maprequest",
- [PropertyNotify] = "propertynotify",
- [UnmapNotify] = "unmapnotify"
- };
+
         /* main event loop */
         XSync(dpy, False);
- while(running && !XNextEvent(dpy, &ev)) {
- D fprintf(stderr, "run event %s %ld\n", evname[ev.type], ev.xany.window);
+ while(running && !XNextEvent(dpy, &ev))
                 if(handler[ev.type])
                         handler[ev.type](&ev); /* call handler */
- }
 }

 void

-- 
Andrew Antle
<andrew dot antle at gmail dot com>
Received on Sun Apr 18 2010 - 02:59:07 UTC

This archive was generated by hypermail 2.2.0 : Sun Apr 18 2010 - 03:00:02 UTC