Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Problems at use | Problèmes à l'utilisation Global menu applet totally broken.
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)
Problems at use | Problèmes à l'utilisation

Subjects Author Language Messages Last message
[Locked] Global menu applet totally broken.
Vorron English 4 matttbe [Read]
17 June 2013 à 14:59

Vorron, Friday 31 May 2013 à 13:50


Subscription date : 31 May 2013
Messages : 20
After updating to 3.2.99.alpha1 global menu applet doesn't work. Message "The application didn't sent its menu to us" pops up for all programs.

Ubuntu 13.04.

matttbe, Friday 31 May 2013 à 16:07


Subscription date : 24 January 2009
Messages : 12573
Hello and thank you for this bug report!

I confirm this bug but unfortunately this bug is not fixed just because Global Menu has to use X11 specific functionalities.

@fabounet: How can we fix this bug? I see 5 possibilities:
  • By adding a get_id() function in the Windows Manager:
    === modified file 'src/gldit/cairo-dock-windows-manager.c'
    --- src/gldit/cairo-dock-windows-manager.c    2013-05-22 23:03:13 +0000
    +++ src/gldit/cairo-dock-windows-manager.c    2013-05-31 13:10:46 +0000
    @@ -280,+280,13 @@
         }
     }
     
    +
    guint gldi_window_get_id (GldiWindowActor *actor)
    +{
    +    if (
    s_backend.get_id)
    +        return 
    s_backend.get_id (actor);
    +    return 
    0;
    +}
    +
     
       
    /////////////////
      /// UTILITIES ///

    === modified file 'src/gldit/cairo-dock-windows-manager.h'
    --- src/gldit/cairo-dock-windows-manager.h    2013-05-18 22:32:05 +0000
    +++ src/gldit/cairo-dock-windows-manager.h    2013-05-31 13:36:24 +0000
    @@ -82,+82,@@
         
    gboolean (*is_sticky) (GldiWindowActor *actor);
         
    void (*set_sticky) (GldiWindowActor *actorgboolean bSticky);
         
    void (*can_minimize_maximize_close) (GldiWindowActor *actorgboolean *bCanMinimizegboolean *bCanMaximizegboolean *bCanClose);
    +    
    guint (*get_id) (GldiWindowActor *actor);
         } ;
     
     
    /// Definition of a window actor.
    @@ -163,+164,@@
     
     
    void gldi_window_can_minimize_maximize_close (GldiWindowActor *actorgboolean *bCanMinimizegboolean *bCanMaximizegboolean *bCanClose);
     
    +
    guint gldi_window_get_id (GldiWindowActor *actor);
    +
     
     
    gboolean gldi_window_is_on_current_desktop (GldiWindowActor *actor);
     

    === 
    modified file 'src/implementations/cairo-dock-X-manager.c'
    --- src/implementations/cairo-dock-X-manager.c    2013-05-20 08:51:10 +0000
    +++ src/implementations/cairo-dock-X-manager.c    2013-05-31 13:10:05 +0000
    @@ -793,+793,12 @@
         
    cairo_dock_xwindow_can_minimize_maximized_close (xactor->XidbCanMinimizebCanMaximizebCanClose);
     }
     
    +static 
    guint _get_id (GldiWindowActor *actor)
    +{
    +    
    GldiXWindowActor *xactor = (GldiXWindowActor *)actor;
    +    return 
    xactor->Xid;
    +}
    +
     
       
    ////////////
      /// INIT ///
    @@ -888,+894,@@
         
    wmb.is_sticky _is_sticky;
         
    wmb.set_sticky _set_sticky;
         
    wmb.can_minimize_maximize_close _can_minimize_maximize_close;
    +    
    wmb.get_id _get_id;
         
    gldi_windows_manager_register_backend (&wmb);
     }
     

  • Or by adding cairo-dock-X-manager.h in the include directory (if we are using X manager, we can use GldiXWindowActor)
  • Or by adding a function (get-id) in cairo-dock-X-utilies.[ch]
  • Or by tracking all windows in Global-Menu (but maybe a bit useless)
  • Or by using cairo_dock_get_active_xwindow() (but maybe not correct)

Vorron, Sunday 02 June 2013 à 14:45


Subscription date : 31 May 2013
Messages : 20
The bug fixed after last update. Thanks a lot for quick response. It's really cool since I'm using weekly version in main system

This theme may be marked as solved, but it should be mentioned that global menu hotkey (Alt+F1) still doesn't working. There was another theme with bug report, unfortunately I can't find it now. Can you say anything about hotkeys (Alt+F1 for global menu, Ctrl+F1 for application menu)? Thanks.

fabounet, Monday 17 June 2013 à 14:40


Subscription date : 30 November 2007
Messages : 17118
these shortkeys are maybe used by another application
you can see that by launching the dock in a terminal (close the running one first)

matttbe, Monday 17 June 2013 à 14:59


Subscription date : 24 January 2009
Messages : 12573
@fabounet I just answered to you there: bg_topic.php?t=7052&pos=0#mess_79775

Problems at use | Problèmes à l'utilisation

Subjects Author Language Messages Last message
[Locked] Global menu applet totally broken.
Vorron English 4 matttbe [Read]
17 June 2013 à 14:59


Glx-Dock / Cairo-Dock List of forums Problems at use | Problèmes à l'utilisation Global menu applet totally broken. 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.