[hackers] [dmenu] input focus: fix for reparenting wms || Connor Lane Smith

From: <hg_AT_suckless.org>
Date: Tue, 4 Oct 2011 22:40:10 +0200 (CEST)

changeset: 443:d5a36222a3b5
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Tue Oct 04 21:39:56 2011 +0100
files: dmenu.c
description:
input focus: fix for reparenting wms


diff -r 057817014252 -r d5a36222a3b5 dmenu.c
--- a/dmenu.c Fri Sep 30 21:08:37 2011 +0100
+++ b/dmenu.c Tue Oct 04 21:39:56 2011 +0100
_AT_@ -510,7 +510,7 @@
 
                 XGetInputFocus(dc->dpy, &w, &di);
                 if(w != root && w != PointerRoot && w != None && XGetWindowAttributes(dc->dpy, w, &wa))
- XTranslateCoordinates(dc->dpy, root, root, wa.x, wa.y, &x, &y, &dw);
+ XTranslateCoordinates(dc->dpy, w, root, wa.x, wa.y, &x, &y, &dw);
                 else
                         XQueryPointer(dc->dpy, root, &dw, &dw, &x, &y, &di, &di, &du);
                 for(i = 0; i < n-1; i++)
Received on Tue Oct 04 2011 - 22:40:10 CEST

This archive was generated by hypermail 2.3.0 : Tue Oct 04 2011 - 22:48:05 CEST