Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Git Version | Version Git Status-Notifier: Menu out of the screen
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Git Version | Version Git

Subjects Author Language Messages Last message
[Locked] Status-Notifier: Menu out of the screen
matttbe English 5 matttbe [Read]
17 November 2012 à 17:09

matttbe, Tuesday 13 November 2012 à 16:00


Subscription date : 24 January 2009
Messages : 12573
Hello,

Without my patch (rev 2631) this is what I have with Dropbox (when I open this menu for the first or if the menu has changed)

http://uppix.net/f/8/e/1ccbbfbb22168626e006a7ecffe76.png


It seems that all available signals are send after that the menu is shown (I tried with 'realize', 'map', 'map-event', 'configure-event', etc.). This is what I used 'draw' and check if the size has changed...

Any idea how to properly fix this bug?

matttbe, Thursday 15 November 2012 à 16:37


Subscription date : 24 January 2009
Messages : 12573
Maybe it can be interesting to not build the menu asap because it seems it doesn't change anything for me with Dropbox and I guess it's not a fast operation, no?
Also, I think the only solution is to use the "draw" event or... No signal at all!

@fabounet what do you think about that?

fabounet, Friday 16 November 2012 à 16:46


Subscription date : 30 November 2007
Messages : 17118
that's disappointing, the 'configure-event' is precisely used for this purpose
are you sure we don't receive any event ?
using the 'draw' event is very ugly (and time consuming).

if I don't build the menu on startup (ie, if they are built on the first click), they are not expanded completely and not placed above the icon.
I guess it's because it takes some time to build the menu, and it is shown before being completely built.

matttbe, Friday 16 November 2012 à 17:26


Subscription date : 24 January 2009
Messages : 12573
are you sure we don't receive any event ?
I tried with a few other events but it's always the same: I receive the signal before the menu is displayed.

using the 'draw' event is very ugly (and time consuming).
Yes but it's maybe worst to display this menu partially out of the screen (it's time consuming only when the menu is drawn)

if I don't build the menu on startup (ie, if they are built on the first click), they are not expanded completely and not placed above the icon.
Ok.

I guess it's because it takes some time to build the menu, and it is shown before being completely built.
Yes but I only this bug with Python apps (and this menu is not updated when there is a new event: e.g. if I click when Dropbox is connecting, I can see the status in a menu entry but this status is not updated when I'm connected... but if I close this menu and re-open it, I can see the new status)

Can I push a fix to use the draw signal? (as workaround?)

fabounet, Saturday 17 November 2012 à 13:29


Subscription date : 30 November 2007
Messages : 17118
I might have a better plan: still use the 'configure' event to track changes of the width, and trigger a reposition in idle (or after a small delay)
that should make the reposition after the menu is shown

matttbe, Saturday 17 November 2012 à 17:09


Subscription date : 24 January 2009
Messages : 12573
Yes but it seems that the dock is not notified when using this 'configure' event
As I saw, the menu of Dropbox is created after having clicked on the Dropbox icon for the first time. I don't know how to reposition it in idle because it's useless to reposition it when this menu is closed (when we try to re-open it, it's correct except if the width of this menu has changed) and it's hard to know when the menu is fully displayed

Git Version | Version Git

Subjects Author Language Messages Last message
[Locked] Status-Notifier: Menu out of the screen
matttbe English 5 matttbe [Read]
17 November 2012 à 17:09


Glx-Dock / Cairo-Dock List of forums Git Version | Version Git Status-Notifier: Menu out of the screen Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.