[hackers] [wmii] Fix layout chording issue. Closes issue #157. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Sun, 8 Nov 2009 21:14:39 +0000 (UTC)

changeset: 2589:27a77f752ab9
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Sun Nov 08 16:13:57 2009 -0500
files: cmd/wmii/layout.c
description:
Fix layout chording issue. Closes issue #157.

diff -r f4341da84897 -r 27a77f752ab9 cmd/wmii/layout.c
--- a/cmd/wmii/layout.c Sun Nov 08 04:45:21 2009 -0500
+++ b/cmd/wmii/layout.c Sun Nov 08 16:13:57 2009 -0500
@@ -488,7 +488,7 @@
         Rectangle r;
         Point pt, pt2;
         uint button;
- int ret;
+ int ret, scrn;
 
         focus(f->client, false);
 
@@ -496,7 +496,8 @@
         pt2.x = pt.x;
         pt2.y = f->area->r.min.y;
 
- r = f->view->r[f->area->screen];
+ scrn = f->area->screen > -1 ? f->area->screen : find_area(pt) ? find_area(pt)->screen : 0;
+ r = f->view->r[scrn];
         fw = framewin(f, pt2, OVert, Dy(r));
 
         r.min.y += fw->grabbox.min.y + Dy(fw->grabbox)/2;
Received on Sun Nov 08 2009 - 21:14:39 UTC

This archive was generated by hypermail 2.2.0 : Sun Nov 08 2009 - 21:24:06 UTC