From dfdf07c21ae8cf91cf98c90d182652a00f080225 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 14 Jan 2013 20:04:36 +0000 Subject: fix [#33831] "Alt" key is "Alt Window Deactivated" Patch from Patrick Zulke (pazul) --- intern/ghost/intern/GHOST_SystemX11.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'intern') diff --git a/intern/ghost/intern/GHOST_SystemX11.cpp b/intern/ghost/intern/GHOST_SystemX11.cpp index f5cb0d9323c..4abcfcc73ae 100644 --- a/intern/ghost/intern/GHOST_SystemX11.cpp +++ b/intern/ghost/intern/GHOST_SystemX11.cpp @@ -785,6 +785,11 @@ GHOST_SystemX11::processEvent(XEvent *xe) /* May have to look at the type of event and filter some out. */ + if (xfe.detail != NotifyNonlinear) { + /* Needed for Ubuntu-Unity, see bug [#33831] */ + break; + } + GHOST_TEventType gtype = (xfe.type == FocusIn) ? GHOST_kEventWindowActivate : GHOST_kEventWindowDeactivate; -- cgit v1.2.3