Re: [dev] [dwm] Patch to support WM_TAKE_FOCUS and InputHint

From: Anselm R Garbe <garbeam_AT_gmail.com>
Date: Tue, 12 Apr 2011 22:21:17 +0200

Hi Brendan,

On 12 April 2011 20:45, Brendan MacDonell <brendan_AT_macdonell.net> wrote:
> I recently noticed that some applications were losing the input focus
> in dwm, while it was properly maintained under other window managers
> (ex. twm.) After some poking around, I discovered that dwm doesn't
> handle the WM_TAKE_FOCUS atom or InputHint, as outlined in section
> 4.1.7 of the ICCCM. This causes some issues for clients which
> implement any of the three non-passive input models, as they either
> expect to receive WM_TAKE_FOCUS so that they may claim the focus
> themselves, or may not expect to receive FocusIn events at all.
>
> I've attached a patch to fix this issue - it only adds a total of 11
> lines of source, and factors out logic from isprotodel(..) and
> killclient(..) into a new function sendevent(..) which handles both
> detecting protocol support and sending supported events.

Thanks for this patch, I applied it as is, though I see some potential
to simplify sendevent(...). Will look into this later this week when I
have more time.

Best regards,
Anselm
Received on Tue Apr 12 2011 - 22:21:17 CEST

This archive was generated by hypermail 2.2.0 : Tue Apr 12 2011 - 22:24:04 CEST