|
|
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » problems with popup/pulldown menus on Gentoo/kde linux
problems with popup/pulldown menus on Gentoo/kde linux [message #7859] |
Sat, 27 January 2007 02:36 |
ebojd
Messages: 225 Registered: January 2007 Location: USA
|
Experienced Member |
|
|
Hello all,
I am having problems with popup and pulldown menus on theIDE and all examples both with precompiled versions (upp-linux386-605) and compiling (upp-src-2007.1beta, upp-src-2007.1beta2, upp-0.701.1, and directly from the SVN tree with borrowed Makefiles from the linux version).
The basic problem is all popup and pulldown menus disappear as soon as I attempted to move into them from the direction of the original click, but will allow to enter them by first moving away and entering them from a different side than the closest. As an example, if I choose the AddressBook demo I can only get it to build by either using the F7 hot-key or by clicking on build, moving up and away from the pulldown list (without moving the mouse over Debug, Assist, or Setup), and then move into the list from the side or below. Similar behavior occurs with popups. My guess is that there is a logical flip somewhere in the menus code.
Anyone have ideas what's going on before I start wading through the code with a debugger?
BTW, I am running Gentoo-Linux(2.6.18-r6), gcc(4.1.1), xorg-x11(7.1), kde(3.5.5)
Thanks,
EBo --
|
|
|
Re: problems with popup/pulldown menus on Gentoo/kde linux [message #7890 is a reply to message #7859] |
Mon, 29 January 2007 15:06 |
ebojd
Messages: 225 Registered: January 2007 Location: USA
|
Experienced Member |
|
|
Hello all,
Since I have had no reply in a few days I thought I would post a hack that is helping some...
Looking in the code I found that GetKbdDelay() was passed into SetTimeCallback at or near line 326 of CtrlMouse.cpp. In X11App.cpp (line 366), it is hard coded to 250ms, and the GetKbdSpeed is likewise hard coded at 25. I bumped the callback time delay up, and it seemed to help some. As a note, there are numerous postings regarding Gnome/KDE development where they have attempted to address this (see http://lists.kde.org/?l=kde-accessibility&m=105268584821 487&w=2 for example). I do not know how they correct this, but the windows implementation is considerably more sophisticated than the hardcoded values.
But I think the real problem is that the mouse is not inside the bounding box/rectangle of the menu button or during a click within an active window. To test this I modified DispatchMouse() and added 5 pxels to the x and y values of the pointer. This is a total hack, but things work mostly better. The menus stay up for awhile, and behave mostly as I expect. They still terminate a little early sometimes, but it is essentially workable now.
Thanks and best regards,
EBo --
|
|
|
Re: problems with popup/pulldown menus on Gentoo/kde linux [message #7910 is a reply to message #7890] |
Wed, 31 January 2007 09:52 |
|
mirek
Messages: 14039 Registered: November 2005
|
Ultimate Member |
|
|
ebojd wrote on Mon, 29 January 2007 09:06 | Hello all,
Since I have had no reply in a few days I thought I would post a hack that is helping some...
Looking in the code I found that GetKbdDelay() was passed into SetTimeCallback at or near line 326 of CtrlMouse.cpp. In X11App.cpp (line 366), it is hard coded to 250ms, and the GetKbdSpeed is likewise hard coded at 25.
|
Correct. And it is true this should be improved. Anyway, how this can be related to popups?
Quote: |
But I think the real problem is that the mouse is not inside the bounding box/rectangle of the menu button or during a click within an active window. To test this I modified DispatchMouse() and added 5 pxels to the x and y values of the pointer. This is a total hack, but things work mostly better. The menus stay up for awhile, and behave mostly as I expect. They still terminate a little early sometimes, but it is essentially workable now.
|
Interesting.
Well, I have to apologize to not responing sooner (due to limited time, I was recently responding just to library issues; this is the library issue but placed into the wrong forum...).
Recently I tried to install KDE on my ubuntu to reproduce the behaviour, but everything seems OK so far.
Anyway, the possible problem is with X11 focus settings... There is a behaviour setting in KDE I guess, are not you using something like "Focus follows the mouse"?
Mirek
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sat Sep 21 03:54:06 CEST 2024
Total time taken to generate the page: 0.04864 seconds
|
|
|