linuxmint / cinnamon-desktop

The cinnamon-desktop library (and common settings schemas for the cinnamon desktop)
GNU General Public License v2.0
187 stars 63 forks source link

Click with both buttons on panel icon closes window #168

Open teo1978 opened 3 years ago

teo1978 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

@teo1978 has updating it worked?