diff options
author | Julian Eisel <julian@linux-chl2.site> | 2015-04-06 14:13:35 +0300 |
---|---|---|
committer | Julian Eisel <julian@linux-chl2.site> | 2015-04-06 14:13:35 +0300 |
commit | 883663a0ad7fd1cbb7bdc9cf4429217ef1f3b9de (patch) | |
tree | fbcfc5e8db171493ec34fc1773aff85ac79104de /source | |
parent | 26e50295ceb81bd09f65d30116f897ba53e50daf (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 7 |
1 files 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__); |