commit - 1144e983949878ea75e5d40e93b063ff7d1e1150
commit + d6bdd03d915ecb800444986503b43aa488a82e36
blob - 181ae159f50cacc6156e5abe672702f8808876d8
blob + de83186a76a512023bedfb38d7418ccd578622d1
--- BUGS
+++ BUGS
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.
blob - f17664f3b57b2ec7eefe35279124be2fd3954f74
blob + 303984dadbda58292653bb6b76bb9f8477b4688b
--- config.mk
+++ config.mk
# 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}\"
blob - 32755cb79a4df6755b79c2ab9d2140fe2729d7b3
blob + 88d80b2a447be77a7872e2ea3c0a82fb8f44a1cf
--- dwm.c
+++ dwm.c
#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))
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;
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