Introduction
Introduction Statistics Contact Development Disclaimer Help
fix: multimon: always spawn client on first monitor if specified with -m 0 - dm…
git clone git://git.suckless.org/dmenu
Log
Files
Refs
README
LICENSE
---
commit da0b9eb6c98288e7f9455352a78ba30d4b8b17f5
parent 44b242c76359e21b97418675f253d45feb7c04e0
Author: Hiltjo Posthuma <[email protected]>
Date: Sat, 7 Nov 2015 12:43:00 +0100
fix: multimon: always spawn client on first monitor if specified with -m 0
This was always broken.
Reproduce:
focus client on second monitor, spawn dmenu with -m 0.
Result:
Old wrong behaviour: dmenu spawns on second monitor (focused client).
Now: dmenu spawns on specified monitor (first).
Diffstat:
M dmenu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/dmenu.c b/dmenu.c
@@ -552,7 +552,7 @@ setup(void)
XGetInputFocus(dpy, &w, &di);
if (mon != -1 && mon < n)
i = mon;
- if (!i && w != root && w != PointerRoot && w != None) {
+ else if (w != root && w != PointerRoot && w != None) {
/* find top-level window containing current input focu…
do {
if (XQueryTree(dpy, (pw = w), &dw, &w, &dws, &…
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.