summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Tumaykin <itumaykin@gmail.com>2016-01-14 14:35:53 +0300
committerIan Delaney <idella4@gentoo.org>2016-01-14 19:46:41 +0800
commitb20d603e09c271470a4066f84456a71f2d10d7a0 (patch)
tree885c9b5716f1f30abb06fe9fda63c97e40aca533 /x11-wm/awesome/files
parentx11-wm/awesome: add myself as a proxy-maintainer (diff)
downloadgentoo-b20d603e09c271470a4066f84456a71f2d10d7a0.tar.gz
gentoo-b20d603e09c271470a4066f84456a71f2d10d7a0.tar.bz2
gentoo-b20d603e09c271470a4066f84456a71f2d10d7a0.zip
x11-wm/awesome: revbump to 3.5.6-r2 wrt bug 571544
Backport upstream fix for focus problems with multiple running awesome instances. Add epatch_user support. Gentoo-Bug: 571544 Package-Manager: portage-2.2.26
Diffstat (limited to 'x11-wm/awesome/files')
-rw-r--r--x11-wm/awesome/files/awesome-3.5.6-fix-multi-instances-focus.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/x11-wm/awesome/files/awesome-3.5.6-fix-multi-instances-focus.patch b/x11-wm/awesome/files/awesome-3.5.6-fix-multi-instances-focus.patch
new file mode 100644
index 000000000000..da306d1fe493
--- /dev/null
+++ b/x11-wm/awesome/files/awesome-3.5.6-fix-multi-instances-focus.patch
@@ -0,0 +1,29 @@
+commit 1c27a69131428e9e733374c2a3676ca4ecee45d2
+Author: Kimball Thurston <kdt3rd@gmail.com>
+Date: Tue Dec 22 21:46:17 2015 -0800
+
+ Fix focus handling with multiple awesome instances
+
+ When there are multiple X11 screens (i.e. :0.0 and :0.1) for zaphod mode
+ style X setups, this triggers a refresh of focus when the instance
+ running on a particular root receives the mouse
+
+ Fixes https://github.com/awesomeWM/awesome/issues/599.
+
+diff --git a/event.c b/event.c
+index db70e2c..80d6bd6 100644
+--- a/event.c
++++ b/event.c
+@@ -554,6 +554,12 @@ event_handle_enternotify(xcb_enter_notify_event_t *ev)
+ }
+ lua_pop(globalconf.L, 1);
+ }
++ else if (ev->event == globalconf.screen->root) {
++ /* When there are multiple X screens with awesome running separate
++ * instances, reset focus.
++ */
++ globalconf.focus.need_update = true;
++ }
+ }
+
+ /** The focus in event handler.