summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R Garbe <anselm@garbe.us>2010-03-31 23:24:22 +0100
committerAnselm R Garbe <anselm@garbe.us>2010-03-31 23:24:22 +0100
commitd6bdd03d915ecb800444986503b43aa488a82e36 (patch)
treebbf14fb2baa2460297abc904a8b8eea2145e5bbd
parentanother bug report (diff)
downloaddwm-d6bdd03d915ecb800444986503b43aa488a82e36.tar.gz
dwm-d6bdd03d915ecb800444986503b43aa488a82e36.zip
it's debug season for upcoming dwm 5.8, so only use this if you really want to run experimental code or debug code
-rw-r--r--BUGS13
-rw-r--r--config.mk8
-rw-r--r--dwm.c24
3 files changed, 37 insertions, 8 deletions
diff --git a/BUGS b/BUGS
index 181ae15..de83186 100644
--- a/BUGS
+++ b/BUGS
@@ -44,3 +44,16 @@ Donald Allen reported this:
44starting 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 44starting 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
45 45
46Starting emacs from xterm doesnt show this problem, he uses tag 8 for emacs 46Starting emacs from xterm doesnt show this problem, he uses tag 8 for emacs
47
48---
49
502009/12/7 Alexandr Krylovskiy <wing_AT_tversu.ru>:
51> Fullscreen mode with flash applications (youtube, for example) doesn't
52> work properly neither in tiled nor in floating mode.
53> Fullscreen window closes immediately after opening.
54
55This is a known bug (for some curiosity I received the same report via
56privmail from 2 other people within one week, really strange).
57The quick fix is commenting out the code in lines 817/818 in hg tip
58dwm. I cannot confirm this has no side effects (I think it does) and I
59will address this issue shortly with a real fix.
diff --git a/config.mk b/config.mk
index f17664f..303984d 100644
--- a/config.mk
+++ b/config.mk
@@ -20,10 +20,10 @@ LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${XINERAMALIBS}
20 20
21# flags 21# flags
22CPPFLAGS = -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} 22CPPFLAGS = -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
23#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS} 23CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
24CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} 24#CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
25#LDFLAGS = -g ${LIBS} 25LDFLAGS = -g ${LIBS}
26LDFLAGS = -s ${LIBS} 26#LDFLAGS = -s ${LIBS}
27 27
28# Solaris 28# Solaris
29#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" 29#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
diff --git a/dwm.c b/dwm.c
index 32755cb..88d80b2 100644
--- a/dwm.c
+++ b/dwm.c
@@ -41,6 +41,7 @@
41#endif /* XINERAMA */ 41#endif /* XINERAMA */
42 42
43/* macros */ 43/* macros */
44#define D if(1)
44#define BUTTONMASK (ButtonPressMask|ButtonReleaseMask) 45#define BUTTONMASK (ButtonPressMask|ButtonReleaseMask)
45#define CLEANMASK(mask) (mask & ~(numlockmask|LockMask)) 46#define CLEANMASK(mask) (mask & ~(numlockmask|LockMask))
46#define INRECT(X,Y,RX,RY,RW,RH) ((X) >= (RX) && (X) < (RX) + (RW) && (Y) >= (RY) && (Y) < (RY) + (RH)) 47#define INRECT(X,Y,RX,RY,RW,RH) ((X) >= (RX) && (X) < (RX) + (RW) && (Y) >= (RY) && (Y) < (RY) + (RH))
@@ -814,8 +815,8 @@ void
814focus(Client *c) { 815focus(Client *c) {
815 if(!c || !ISVISIBLE(c)) 816 if(!c || !ISVISIBLE(c))
816 for(c = selmon->stack; c && !ISVISIBLE(c); c = c->snext); 817 for(c = selmon->stack; c && !ISVISIBLE(c); c = c->snext);
817 if(selmon->sel) 818// if(selmon->sel)
818 unfocus(selmon->sel); 819// unfocus(selmon->sel);
819 if(c) { 820 if(c) {
820 if(c->mon != selmon) 821 if(c->mon != selmon)
821 selmon = c->mon; 822 selmon = c->mon;
@@ -1388,12 +1389,27 @@ restack(Monitor *m) {
1388void 1389void
1389run(void) { 1390run(void) {
1390 XEvent ev; 1391 XEvent ev;
1391 1392 static const char *evname[LASTEvent] = {
1393 [ButtonPress] = "buttonpress",
1394 [ConfigureRequest] = "configurerequest",
1395 [ConfigureNotify] = "configurenotify",
1396 [DestroyNotify] = "destroynotify",
1397 [EnterNotify] = "enternotify",
1398 [Expose] = "expose",
1399 [FocusIn] = "focusin",
1400 [KeyPress] = "keypress",
1401 [MappingNotify] = "mappingnotify",
1402 [MapRequest] = "maprequest",
1403 [PropertyNotify] = "propertynotify",
1404 [UnmapNotify] = "unmapnotify"
1405 };
1392 /* main event loop */ 1406 /* main event loop */
1393 XSync(dpy, False); 1407 XSync(dpy, False);
1394 while(running && !XNextEvent(dpy, &ev)) 1408 while(running && !XNextEvent(dpy, &ev)) {
1409 D fprintf(stderr, "run event %s\n", evname[ev.type]);
1395 if(handler[ev.type]) 1410 if(handler[ev.type])
1396 handler[ev.type](&ev); /* call handler */ 1411 handler[ev.type](&ev); /* call handler */
1412 }
1397} 1413}
1398 1414
1399void 1415void