From 883663a0ad7fd1cbb7bdc9cf4429217ef1f3b9de Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Mon, 6 Apr 2015 13:13:35 +0200 Subject: Fix T44278: Tab, Z-Key and Spacebar not working Seems like a fix that is needed for some X11 systems causes this bug on others :| Not sure if the systems that needed this fix are now still fine (since I did a slight change to the click type check procedure), but I need to check that on my system in the institute in a bit. --- source/blender/windowmanager/intern/wm_event_system.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index 0a8da1df233..225e3138859 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -3025,12 +3025,9 @@ static void wm_event_clicktype_init(wmWindow *win, wmEvent *event, wmEvent *even } } + /* click */ if ((PIL_check_seconds_timer() - event->click_time) * 1000 <= U.click_timeout) { - /* for any reason some X11 systems send two release events triggering two KM_CLICK events - * - making the rules more strict by checking for prevval resolves this (not needed for mouse) */ - if (event->val == KM_RELEASE && - (ISMOUSE(event->type) || event->prevval != KM_RELEASE)) - { + if (event->val == KM_RELEASE) { click_type = KM_CLICK; if (G.debug & (G_DEBUG_HANDLERS | G_DEBUG_EVENTS)) { printf("%s Send click event\n", __func__); -- cgit v1.2.3