From 01dcde0a04de8b8f538a823db548341a8db0dd57 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 30 Nov 2014 22:04:22 -0600 Subject: Fix window control issues introduced in GIT hash 17b142dd This relates to Bug 2220 --- twin/client.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/twin/client.cpp b/twin/client.cpp index 4d26bb816..65818899b 100644 --- a/twin/client.cpp +++ b/twin/client.cpp @@ -2200,8 +2200,11 @@ void Client::takeFocus( allowed_t ) if ( rules()->checkAcceptFocus( input )) { XSetInputFocus( tqt_xdisplay(), window(), RevertToPointerRoot, GET_QT_X_TIME() ); - // Signal that we took focus! - setActive( true, true ); + // Work around opacity bug + bool activePrev = active; + active = true; + updateOpacity(); + active = activePrev; } if ( Ptakefocus ) { -- cgit v1.2.3