Menu

#474 ability to change order of buttons on taskbar by dragging them

-
closed-accepted
lxpanel (21)
5
2014-11-15
2014-07-14
No

This patch implements the ability to change the order of buttons on taskbar by dragging them with mouse.

You will notice that the button's action such as iconifying or restoring window always is triggered at the beginning of the dragging. This is because the action is triggered when the mouse button is pressed, not when it is released, which is more common.

If you complete the dragging very quickly, before the button's action is completed, then the dragging fails.

Attached are 2 patches. One is for LXPanel version 0.6.2, which is the latest released version. The other is for the latest source code in the git repository.

Known bugs:

Buttons that represent a group of windows cannot be normally dragged. The workaround is:

1) Click on the button so that a popup menu with the window list will appear.
2) Drag an item in the popup menu down to the button. Note that the popup menu will disappear at the beginning of this dragging and the mouse pointer will not indicate that dragging is in progress. Once the mouse reaches the button, the dragging of that button starts and the mouse pointer will change to indicate that dragging is in progress.
3) Finish the dragging by first moving the mouse over another button and then releasing mouse button.

Here is someone's feature request which is requesting what I have implemented:
https://sourceforge.net/p/lxde/feature-requests/151/

This patch adds only 64 lines of code to 3 files, so it certainly will not make LXPanel bloated.

2 Attachments

Related

Bugs: #665
Feature Requests: #151

Discussion

  • Raimar Bühmann

    Raimar Bühmann - 2014-07-27

    Great work Vladimir.

    Only for Arch users: I have added your patch to the AUR package lxpanel-git as long as it is not included officially: https://aur.archlinux.org/packages/lxpanel-git/

     
  • Lonely Stranger

    Lonely Stranger - 2014-07-28
    • status: open --> closed-accepted
    • assigned_to: Lonely Stranger
     
  • Lonely Stranger

    Lonely Stranger - 2014-07-28

    Accepted your commit into GIT, it will be in the next release. Thank you very much.

     
  • Vladimir Pycha

    Vladimir Pycha - 2014-07-28

    That's great, thanks.

    The latest sources with the commit are here:
    http://git.lxde.org/gitweb/?p=lxde/lxpanel.git

     

Log in to post a comment.