Home » U++ Library support » U++ Library : Other (not classified elsewhere) » BUG: Key states incorrectly cleared on Ubuntu
BUG: Key states incorrectly cleared on Ubuntu [message #23648] |
Tue, 10 November 2009 16:14  |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
I've noticed a problem with key handling on Ubuntu 8.04 when the 'Appearance->Visual Effects' setting is on 'Normal Effects'. The keyboard state gets cleared when the mouse is clicked, preventing the use of key modifiers like K_CTRL and stopping multi-selection from working.
The problem appears on all Upp apps, including the 2008.1 version of TheIde. I've also tested it with a svn version from about a week ago.
I have found a solution, but I am unsure whether it will cause any undesirable side effects, since I'm not sure why ClearKbdState_ is being called in TakeFocus at all.
In TakeFocus (X11Wnd.cpp, line 839) change:
ClearKbdState_();
if(IsEnabled() && IsVisible() && top->window != GetXServerFocusWindow())
SetWndFocus();
to:
if(IsEnabled() && IsVisible() && top->window != GetXServerFocusWindow()) {
ClearKbdState_();
SetWndFocus();
}
It's very annoying that different settings on the same window manager can change it's X event profile!
|
|
|
Goto Forum:
Current Time: Mon Apr 28 23:39:31 CEST 2025
Total time taken to generate the page: 0.00847 seconds
|