On Thu, Aug 16, 2012 at 07:03:10PM -0400, Josh Rickmar wrote:
> This is a focusing issue that was noticed when we (me and many of the
> the other xombrero devs) noticed when we switched our browser from
> GTK2 to GTK3. If a GTK3 window is shown and focused on one tag, and I
> switch to another tag with no windows on it, whenever I switch back to
> the tag with the GTK3 window, the toplevel GtkWindow no longer has its
> it-active and has-toplevel-focus properties set to true.
I'm pretty sure this is a GTK3 bug since I saw strange focusing behavior
with other window managers too. Not this behavior, but unexpected behavior
non the less.
On my system the following patch to dwm seems to work around the GTK3
focus problem:
--- a/dwm.c 2012-07-09 10:28:59.106043161 +0200
+++ b/dwm.c 2012-08-17 12:02:11.618822311 +0200
_AT_@ -865,6 +865,7 @@
else {
XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
XDeleteProperty(dpy, root, netatom[NetActiveWindow]);
+ XFlush(dpy);
}
selmon->sel = c;
drawbars();
--
Eckehard Berns
Received on Fri Aug 17 2012 - 12:14:10 CEST