Menu

#661 lxpanel window list location bug

None
closed-invalid
lxpanel (297)
5
2014-09-26
2014-08-21
synthakai
No

often the coordinates of window list in the panel are calculated incorrectly which makes compiz minimise animation with sidekick minimise window to the wrong direction. see video http://youtu.be/xLsvV8i_qyI

Discussion

  • Lonely Stranger

    Lonely Stranger - 2014-08-21

    What version of panel are you using? I'm afraid this issue is fixed long time ago. Try latest 0.7.0 version, please. Thank you very much.

     
  • Lonely Stranger

    Lonely Stranger - 2014-08-21
    • labels: --> lxpanel
    • assigned_to: Lonely Stranger
     
  • synthakai

    synthakai - 2014-08-22

    hi. thank you for your reply. I was using version 0.6.1 from ubuntu repos.
    now I am using the latest version. following your suggestion, I have downloaded and installed from git the latest versions of lxpanel, lxmenu-data, menu-cache:
    git clone git://lxde.git.sourceforge.net/gitroot/lxde/[lxpanel, lxmenu-data, menu-cache]
    and, I am afraid, that didn't correct the problem. although the panel now behaves much more smoothly, doesn't lag so much upon restarting, it cannot always correctly calculate the point to which windows should be minimised. as with old version 0.6.1, I have to restart lxpanel several times to gain correct minimise direction.

    I am sorry I didn't let you in on the outline I am using.
    I am using (more or less default installation of) linuxmint 17 qiana with mate-desktop 1.8.1-0.
    I am using three panels (as you can see in the video). at the top and at the bottom there are mate-panels (mate-panel 1.8.0-0+qiana).
    in the middle aligned to the left is lxpanel. top margin is 151, height 798.
    the contents of lxpanel (from top to bottom): spacer, system tray, spacer, task bar (window list), application launch bar, spacer.

    I have been using this outline since ubuntu 11.04 with gnome2. in ubuntu+gnome2 there was no such bug. but the bug exists in ubuntu1204+mate, ubuntu 1404+mate, linuxmint16+mate, linuxmint17+mate.

    I hope this helps to pinpoint the problem and I am open to new suggestions and workarounds :)

     
  • Lonely Stranger

    Lonely Stranger - 2014-08-22

    I would like you to do a little debug if you don't mind. Apply the patch please:

    --- a/plugins/launchtaskbar.c
    +++ b/plugins/launchtaskbar.c
    @@ -2685,6 +2685,7 @@ static void taskbar_button_size_allocate(GtkWidget * btn, GtkAllocation * alloc,
             XChangeProperty(GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), tk->win,
                 gdk_x11_get_xatom_by_name("_NET_WM_ICON_GEOMETRY"),
                 XA_CARDINAL, 32, PropModeReplace, (guchar *) &data, 4);
    
    +        g_debug("icon geometry: %dx%d @ %d.%d",alloc->width,alloc->height,x,y);
         }
     }
    

    then rebuild panel, and look into debug output please, which coordinates it will show you - coordinates should be of the button in taskbar. If coordinates are correct then you should ask compiz developers for fixing it. If not then give me the log and I'll try to find out how it could happen. Coordinates are given relative to upper left corner of the screen, in pixels. Log will print out coordinates for each button for each taskbar refresh, don't be scared, please.
    Thank you very much.

     
  • Lonely Stranger

    Lonely Stranger - 2014-08-22

    Or rather it might be not compiz issue but mate panels are competing with lxpanel to play taskbar so they take those animations to themselves, it should be reported to mate-panel developers then.

     
  • synthakai

    synthakai - 2014-08-23

    thank you for the patch. I am willing to apply it, but I just yet do not know how to do patching. I am going to figure it out but you can help me by telling which command I should use.
    am I right that debug output is the output a command prints when run in terminal?

     
  • synthakai

    synthakai - 2014-08-23

    I seem to have applied the patch correctly. I have rebuilt lxpanel. tell me please where can I find the logs.

     
  • Lonely Stranger

    Lonely Stranger - 2014-08-23

    Thank you very much! To see the logs you should start panel in terminal, and probably have G_MESSAGES_DEBUG=all set in its environment to see debug, newer GLib requires that setting. Logs will be in the lxpanel output in the terminal.

     
  • synthakai

    synthakai - 2014-08-23

    yes, it worked :)
    upon startup lxpanel outputs several lines containing "icon geometry". and then goes on adding these lines as I move mouse over buttons in window list.
    I am attaching debug info for all three cases: minimisation point is correct, high above, in front of the monitor.

     
  • Lonely Stranger

    Lonely Stranger - 2014-08-23
    • status: open --> closed-invalid
     
  • Lonely Stranger

    Lonely Stranger - 2014-08-23

    Ah, so you can see all three logs show similar numbers somewhere at left side of screen - @ 0,(200...325) - so lxpanel all times requests right positions but sometimes something else steals attention of the window manager. The most probably that is one of two mate-panels, just write them a bugreport about this issue. Thanks for the testing!

     
  • synthakai

    synthakai - 2014-08-23

    ok, I am going to report the bug to mate devs.
    thank you for your time and patience :)

     
  • equeim

    equeim - 2014-09-26

    I also have the same issue with lxpanel-0.7.0. However in my case the only running panel is lxpanel. I've had wrong animations with marco (metacity fork) and openbox. Debug coordinates are correct. Could it be lxpanel issue?

     

Log in to post a comment.

Monday.com Logo