summary refs log tree commit diff
path: root/pkgs/applications/window-managers
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2013-04-05 12:50:19 +0200
committerLluís Batlle i Rossell <viric@viric.name>2013-04-05 12:50:42 +0200
commit2187716c537c16904e4b33ca1c1461aa8b664e1c (patch)
treebe670afb4bc195c34939f2c803b2391e05c1bb2f /pkgs/applications/window-managers
parent2d38aee71b55a0fa7c905a5dd2747392a905f93d (diff)
downloadnixpkgs-2187716c537c16904e4b33ca1c1461aa8b664e1c.tar
nixpkgs-2187716c537c16904e4b33ca1c1461aa8b664e1c.tar.gz
nixpkgs-2187716c537c16904e4b33ca1c1461aa8b664e1c.tar.bz2
nixpkgs-2187716c537c16904e4b33ca1c1461aa8b664e1c.tar.lz
nixpkgs-2187716c537c16904e4b33ca1c1461aa8b664e1c.tar.xz
nixpkgs-2187716c537c16904e4b33ca1c1461aa8b664e1c.tar.zst
nixpkgs-2187716c537c16904e4b33ca1c1461aa8b664e1c.zip
dwm: adding a patch I missed in a recent commit
Diffstat (limited to 'pkgs/applications/window-managers')
-rw-r--r--pkgs/applications/window-managers/dwm/confnotify-6.0.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/dwm/confnotify-6.0.patch b/pkgs/applications/window-managers/dwm/confnotify-6.0.patch
new file mode 100644
index 00000000000..5b5e2ebb68a
--- /dev/null
+++ b/pkgs/applications/window-managers/dwm/confnotify-6.0.patch
@@ -0,0 +1,36 @@
+Fix SDL fullscreen problems when the resolution changes:
+https://groups.google.com/d/msg/wmii/nJBrSjrnnq8/ZEYWOWE5pj4J
+
+diff -r ec4baab78314 dwm.c
+--- a/dwm.c	Mon Dec 19 15:38:30 2011 +0100
++++ b/dwm.c	Sat Jan 14 12:35:50 2012 +0100
+@@ -397,9 +397,10 @@
+ 		showhide(m->stack);
+ 	else for(m = mons; m; m = m->next)
+ 		showhide(m->stack);
+-	if(m)
++	if(m) {
+ 		arrangemon(m);
+-	else for(m = mons; m; m = m->next)
++		restack(m);
++	} else for(m = mons; m; m = m->next)
+ 		arrangemon(m);
+ }
+ 
+@@ -408,7 +409,6 @@
+ 	strncpy(m->ltsymbol, m->lt[m->sellt]->symbol, sizeof m->ltsymbol);
+ 	if(m->lt[m->sellt]->arrange)
+ 		m->lt[m->sellt]->arrange(m);
+-	restack(m);
+ }
+ 
+ void
+@@ -1827,6 +1827,8 @@
+ 		.event_mask = ButtonPressMask|ExposureMask
+ 	};
+ 	for(m = mons; m; m = m->next) {
++		if (m->barwin)
++			continue;
+ 		m->barwin = XCreateWindow(dpy, root, m->wx, m->by, m->ww, bh, 0, DefaultDepth(dpy, screen),
+ 		                          CopyFromParent, DefaultVisual(dpy, screen),
+ 		                          CWOverrideRedirect|CWBackPixmap|CWEventMask, &wa);