[hackers] [dwm] applied Eckehard Berns barwin leak fix and his suggestion to deal with restack() -- the latter aspect needs further investigation. || anselm

From: <hg_AT_suckless.org>
Date: Thu, 12 Jan 2012 07:36:04 +0100 (CET)

changeset: 1593:070112b7435f
tag: tip
user: anselm_AT_garbe.us
date: Thu Jan 12 07:36:05 2012 +0100
files: LICENSE dwm.c
description:
applied Eckehard Berns barwin leak fix and his suggestion to deal with restack() -- the latter aspect needs further investigation.


diff -r 6f54bd1ef439 -r 070112b7435f LICENSE
--- a/LICENSE Wed Jan 04 13:30:12 2012 +0100
+++ b/LICENSE Thu Jan 12 07:36:05 2012 +0100
_AT_@ -1,6 +1,6 @@
 MIT/X Consortium License
 
-© 2006-2011 Anselm R Garbe <anselm_AT_garbe.us>
+© 2006-2012 Anselm R Garbe <anselm_AT_garbe.us>
 © 2007-2011 Peter Hartlich <sgkkr at hartlich dot com>
 © 2010-2011 Connor Lane Smith <cls_AT_lubutu.com>
 © 2006-2009 Jukka Salmi <jukka at salmi dot ch>
diff -r 6f54bd1ef439 -r 070112b7435f dwm.c
--- a/dwm.c Wed Jan 04 13:30:12 2012 +0100
+++ b/dwm.c Thu Jan 12 07:36:05 2012 +0100
_AT_@ -1420,8 +1420,6 @@
         drawbar(m);
         if(!m->sel)
                 return;
- if(m->sel->isfloating || !m->lt[m->sellt]->arrange)
- XRaiseWindow(dpy, m->sel->win);
         if(m->lt[m->sellt]->arrange) {
                 wc.stack_mode = Below;
                 wc.sibling = m->barwin;
_AT_@ -1827,6 +1825,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);
_AT_@ -2129,7 +2129,7 @@
 int
 main(int argc, char *argv[]) {
         if(argc == 2 && !strcmp("-v", argv[1]))
- die("dwm-"VERSION", © 2006-2011 dwm engineers, see LICENSE for details\n");
+ die("dwm-"VERSION", © 2006-2012 dwm engineers, see LICENSE for details\n");
         else if(argc != 1)
                 die("usage: dwm [-v]\n");
         if(!setlocale(LC_CTYPE, "") || !XSupportsLocale())
Received on Thu Jan 12 2012 - 07:36:04 CET

This archive was generated by hypermail 2.3.0 : Thu Jan 12 2012 - 07:48:08 CET