[hackers] [dwm] it's debug season for upcoming dwm 5.8, so only use this if you really want to run experimental code or debug code || Anselm R Garbe

From: <hg_AT_suckless.org>
Date: Wed, 31 Mar 2010 22:24:30 +0000 (UTC)

changeset: 1508:0bee7022aca5
tag: tip
user: Anselm R Garbe <anselm_AT_garbe.us>
date: Wed Mar 31 23:24:22 2010 +0100
files: BUGS config.mk dwm.c
description:
it's debug season for upcoming dwm 5.8, so only use this if you really want to run experimental code or debug code

diff -r 72e52c5333ef -r 0bee7022aca5 BUGS
--- a/BUGS Wed Nov 25 13:56:17 2009 +0000
+++ b/BUGS Wed Mar 31 23:24:22 2010 +0100
@@ -44,3 +44,16 @@
 starting emacs from dmenu in archlinux results in missing configure of emacs, but mod1-space or mod1-shift-space fix this problem. this problem is new and did not happen in 1.6 xorg servers
 
 Starting emacs from xterm doesnt show this problem, he uses tag 8 for emacs
+
+---
+
+2009/12/7 Alexandr Krylovskiy <wing_AT_tversu.ru>:
+> Fullscreen mode with flash applications (youtube, for example) doesn't
+> work properly neither in tiled nor in floating mode.
+> Fullscreen window closes immediately after opening.
+
+This is a known bug (for some curiosity I received the same report via
+privmail from 2 other people within one week, really strange).
+The quick fix is commenting out the code in lines 817/818 in hg tip
+dwm. I cannot confirm this has no side effects (I think it does) and I
+will address this issue shortly with a real fix.
diff -r 72e52c5333ef -r 0bee7022aca5 config.mk
--- a/config.mk Wed Nov 25 13:56:17 2009 +0000
+++ b/config.mk Wed Mar 31 23:24:22 2010 +0100
@@ -20,10 +20,10 @@
 
 # flags
 CPPFLAGS = -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
-#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
-CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
-#LDFLAGS = -g ${LIBS}
-LDFLAGS = -s ${LIBS}
+CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
+#CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
+LDFLAGS = -g ${LIBS}
+#LDFLAGS = -s ${LIBS}
 
 # Solaris
 #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
diff -r 72e52c5333ef -r 0bee7022aca5 dwm.c
--- a/dwm.c Wed Nov 25 13:56:17 2009 +0000
+++ b/dwm.c Wed Mar 31 23:24:22 2010 +0100
@@ -41,6 +41,7 @@
 #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))
@@ -814,8 +815,8 @@
 focus(Client *c) {
         if(!c || !ISVISIBLE(c))
                 for(c = selmon->stack; c && !ISVISIBLE(c); c = c->snext);
- if(selmon->sel)
- unfocus(selmon->sel);
+// if(selmon->sel)
+// unfocus(selmon->sel);
         if(c) {
                 if(c->mon != selmon)
                         selmon = c->mon;
@@ -1388,12 +1389,27 @@
 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))
+ while(running && !XNextEvent(dpy, &ev)) {
+ D fprintf(stderr, "run event %s\n", evname[ev.type]);
                 if(handler[ev.type])
                         handler[ev.type](&ev); /* call handler */
+ }
 }
 
 void
Received on Wed Mar 31 2010 - 22:24:30 UTC

This archive was generated by hypermail 2.2.0 : Wed Mar 31 2010 - 22:36:06 UTC