Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Click with both buttons on panel icon closes window #168

Open
teo1978 opened this issue Sep 10, 2020 · 4 comments
Open

Click with both buttons on panel icon closes window #168

teo1978 opened this issue Sep 10, 2020 · 4 comments

Comments

@teo1978
Copy link

teo1978 commented Sep 10, 2020

Steps to reproduce:

  1. Click with both the left and right mouse buttons at the same time on an icon of an open window in the Panel at the bottom of the screen

Expected behavior:

Either of these could make sense:
i) nothing at all happens
ii) the same as if I had only clicked the left button (i.e. focus or minimize the window)
iii) the same as if I had only clicked the right button

To me the correct behavior is (i), but maybe if you assume that there is no such thing as "clicking both buttons at the same time", then the action of doing so should be equivalent to pressing one button first and then the other before releasing the first one. If you do that, you observe ii and iii respectively.

Observed behavior:

It closes the window, which is neither something that you would obtain by clicking the two buttons in any order, nor anything intuitive. Also it's a potentially distructive action that shouldn not happen by accident, so it should not be associated to an action that is neither intuitive nor conventional.

Note that I am NOT accidentally choosing "Close" from the dropdown menu. If you click (and release) the right button first and let the context menu show up, the Close option is several pixels away from the position of the mouse cursor. (even if that wasn't the case, the dropdown doesn't show up until you release the right button, so if the left button is pressed before that, it shouldn't act on the dropdown: you don't click on something that hasn't shown up yet)

This doesn't resemble in any way any behavior that you can get by any succession of pressing and releasing the two buttons separately in any order. So it's either a very weird bug, or it is done on purpose, as in "clicking with both buttons at once on an icon closes the window by design", in which case it's a very bad idea.

@mtwebster
Copy link
Member

Is the "Emulate middle click" option turned on? See:
image

The default action for a middle click on a window list item is to close the window.

@teo1978
Copy link
Author

teo1978 commented Sep 10, 2020

Yes, I hadn't realized that

The default action for a middle click on a window list item is to close the window.

That seems to me a questionable default. How long has that been so, and how common is it across different desktop environments and platforms?

@mtwebster
Copy link
Member

mtwebster commented Sep 10, 2020

That's been the default for as long as I can remember, and I think it's fairly consistent with other desktops. It's the opposite of Windows, but it's also configurable - you can turn off middle-click in the traditional window list, and I'm pretty sure you can have it behave like windows in the grouped window list (right-click->preferences on the applets).

@ItzSwirlz
Copy link
Contributor

@teo1978 has updating it worked?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants