From e4b5901c10d212bdbb50b7a60bba17400c0cd04f Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 1 Nov 2013 14:07:19 +0000 Subject: re-add support for WM_TAKE_FOCUS, and additionally this time only call XSetInputFocus() for clients that have the InputHint; latter fix discovered by Valery Masiutsin with a PoC patch - solves keyboard input focus loss for java apps. --- calmwm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'calmwm.h') diff --git a/calmwm.h b/calmwm.h index 226c307..baefe60 100644 --- a/calmwm.h +++ b/calmwm.h @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: calmwm.h,v 1.224 2013/10/25 19:46:16 okan Exp $ + * $OpenBSD: calmwm.h,v 1.225 2013/11/01 14:07:19 okan Exp $ */ #ifndef _CALMWM_H_ @@ -165,6 +165,7 @@ struct client_ctx { #define CLIENT_FREEZE 0x0010 #define CLIENT_GROUP 0x0020 #define CLIENT_UNGROUP 0x0040 +#define CLIENT_INPUT 0x0080 #define CLIENT_HIGHLIGHT (CLIENT_GROUP | CLIENT_UNGROUP) #define CLIENT_MAXFLAGS (CLIENT_VMAXIMIZED | CLIENT_HMAXIMIZED) -- cgit v1.2.3-2-gb3c3