From 55e7b6fa5bbb84dc8f2689ff674b27706ffe5ef3 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 5 Oct 2017 16:54:38 -0700 Subject: *: handle FocusIn events Some programs call XSetInputFocus(), so we should select FocusChangeEvent and handle FocusIn events, calling vwm_win_set_focus() when appropriate. It's rare, but SDL2 programs in particular seem to do this and vwm gets in a pretty annoying state when it does occur. This change should improve the situation. --- src/xevent.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/xevent.h') diff --git a/src/xevent.h b/src/xevent.h index dc710fd..da9a828 100644 --- a/src/xevent.h +++ b/src/xevent.h @@ -15,4 +15,5 @@ void vwm_xevent_handle_unmap_notify(vwm_t *vwm, XUnmapEvent *ev); void vwm_xevent_handle_map_notify(vwm_t *vwm, XMapEvent *ev); void vwm_xevent_handle_map_request(vwm_t *vwm, XMapRequestEvent *ev); void vwm_xevent_handle_property_notify(vwm_t *vwm, XPropertyEvent *ev); +void vwm_xevent_handle_focusin(vwm_t *vwm, XFocusInEvent *ev); void vwm_xevent_handle_mapping_notify(vwm_t *vwm, XMappingEvent *ev); -- cgit v1.2.3