Re: [dev] [tabbed] explicitly requesting input focus

From: Connor Lane Smith <>
Date: Mon, 30 Apr 2012 15:13:42 +0100


On 30 April 2012 14:41, Ivan Kanakarakis <> wrote:
> it seems tabbed is requesting input focus, see line 395 on tabbed.c [0]

There was a private thread about this because the guy who reported it
didn't want to subscribe to the mailing list or something. To

On 16 November 2011 21:06, Thomas Adam <> wrote:
> The latest change in hg for tabbed has reintroduced calls to
> XSetInputFocus() -- as per my change in tabbed (138:5eff0bc41822),
> XSetInputFocus() should not be used; there is no need for tabbed to
> take focus for itself, and doing so by-passes the window manager.

On 16 November 2011 21:16, Connor Lane Smith <> wrote:
> Can you reply to the thread on the mailing list [1]? Apparently
> removing XSetInputFocus introduced a bug.
> [1]:

On 17 November 2011 15:32, Thomas Adam <> wrote:
> I can't, since I'm not subscribed to the list.

On 5 December 2011 21:19, Roman Z. <> wrote:
> Before my XSetInputFocus patch was applied, you had to place the mouse
> pointer inside the tabbed window, otherwise all keys that you press are
> ignored by the program that's embedded in tabbed.
> I tested and confirmed this with the window managers dwm and awesomewm
> and with the embedded programs vimprobable2 and urxvt.

On 10 December 2011 21:18, Thomas Adam <> wrote:
> Then the solution to that problem is to listen for EnterNotify events
> instead and set focus to c->win as appropriate.

On 11 December 2011 13:47, Roman Z. <> wrote:
> The aim is to be able to type in keys even when the mouse is not inside
> the window.  I don't see how EnterNotify events, which occur when the
> mouse enters the window, have anything to do with it.

That was the end of the discussion. I have to say, if it's a choice
between using XSetInputFocus or only receiving input when the mouse is
over the XEmbed window, I'm going with XSetInputFocus.

Received on Mon Apr 30 2012 - 16:13:42 CEST

This archive was generated by hypermail 2.3.0 : Mon Apr 30 2012 - 16:24:04 CEST