mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlCore: X11 TakeFocus fix (thanks mrjt)
git-svn-id: svn://ultimatepp.org/upp/trunk@1690 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7719c80979
commit
2c3bb2d1bb
1 changed files with 3 additions and 2 deletions
|
|
@ -836,9 +836,10 @@ void Ctrl::TakeFocus()
|
|||
return;
|
||||
}
|
||||
LLOG("TAKE_FOCUS " << Name());
|
||||
ClearKbdState_();
|
||||
if(IsEnabled() && IsVisible() && top->window != GetXServerFocusWindow())
|
||||
if(IsEnabled() && IsVisible() && top->window != GetXServerFocusWindow()) {
|
||||
ClearKbdState_();
|
||||
SetWndFocus();
|
||||
}
|
||||
if(this != focusCtrlWnd) {
|
||||
if(IsEnabled()) {
|
||||
SetLastActive(w, this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue