After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 448036 - Middle Mouse Button To Close Window
Middle Mouse Button To Close Window
Status: RESOLVED WONTFIX
Product: libwnck
Classification: Core
Component: tasklist
2.18.x
Other All
: Normal enhancement
: ---
Assigned To: libwnck maintainers
libwnck maintainers
: 549204 559243 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-06-15 22:03 UTC by Jan Niklas Hasse (Account disabled)
Modified: 2016-10-26 09:56 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Patch that works for me (430 bytes, patch)
2007-06-15 22:04 UTC, Jan Niklas Hasse (Account disabled)
none Details | Review

Description Jan Niklas Hasse (Account disabled) 2007-06-15 22:03:43 UTC
It would be really nice if you could close a window in the tasklist with the middle mouse button, like you can close tabs in firefox. No you must always right-click and select close from the popup menu.
Comment 1 Jan Niklas Hasse (Account disabled) 2007-06-15 22:04:27 UTC
Created attachment 90037 [details] [review]
Patch that works for me
Comment 2 Vincent Untz 2007-06-15 22:52:42 UTC
While I see why it could be convenient, it makes it too easy to accidentally close a window. So I don't think it's a good idea to have this.
Comment 3 Jan Niklas Hasse (Account disabled) 2007-06-16 10:27:31 UTC
First i thought too, that it might be annoying, but now i don't think so anymore. Here are some arguements (sorry if my english is bad):

- I asked a friend of mine who is using firefox for years if he knows what happens if he clicks with the middle mouse button on a tab. He didn't know, so i conclude: You don't press the middle mouse button by accident when you want to click on something with the right or left mouse button.
- Most mouses don't have a middle mouse button, only a wheel which is very hard to click by accident
- most laptops don't have a middle mouse button below their touchpad.
- If it's really bad to close an application (e.g. unsaved data, multiple tabs) the application will pop-up a window and ask you if really want to close it. (this is the most important point imo)

I think its a very cool feature, you can close windows much easier. When you have a top panel it's also harder to close the window with the x because you can't move the mouse to the top right. So there are many people who close windows by right clicking on their tasklist entry and select close. But this is not very comfortable because the "close" is even not on the bottom of this pop-up menu.
Comment 4 Vincent Untz 2007-06-16 11:21:58 UTC
(In reply to comment #3)
> First i thought too, that it might be annoying, but now i don't think so
> anymore. Here are some arguements (sorry if my english is bad):
> 
> - I asked a friend of mine who is using firefox for years if he knows what
> happens if he clicks with the middle mouse button on a tab. He didn't know, so
> i conclude: You don't press the middle mouse button by accident when you want
> to click on something with the right or left mouse button.

I know many people who don't use tabs. So they never closed a tab by accident because they don't use tabs :-) However, they all use a window list.

Another thing is that you often put the mouse cursor at the bottom of the screen because you don't want to see it where you're typing. And when you grab your mouse again, you have more chance to press a button (can be left or right or middle). This can be dangerous.

And really, we don't want to make it too easy to perform a destructive task. Right-click+choosing a menu item is not that hard.

(I'm not even talking about the fact that middle-clicking on group buttons now activate the next window in the group, which is just totally different from closing a window).
Comment 5 Jan Niklas Hasse (Account disabled) 2007-06-16 18:58:49 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > First i thought too, that it might be annoying, but now i don't think so
> > anymore. Here are some arguements (sorry if my english is bad):
> > 
> > - I asked a friend of mine who is using firefox for years if he knows what
> > happens if he clicks with the middle mouse button on a tab. He didn't know, so
> > i conclude: You don't press the middle mouse button by accident when you want
> > to click on something with the right or left mouse button.
> 
> I know many people who don't use tabs. So they never closed a tab by accident
> because they don't use tabs :-) However, they all use a window list.

My friend was using tabs, so was I. I think it's a good example, because i never see firefox user complaining about the middle-click close feature. And within a browser it's even more dangerous because most website don't have a "really want to close?" or "Save before closing?" question.

> Another thing is that you often put the mouse cursor at the bottom of the
> screen because you don't want to see it where you're typing. And when you grab
> your mouse again, you have more chance to press a button (can be left or right
> or middle). This can be dangerous.

This might be only case if you have a mouse with a real middle button, because for a mouse with a wheel it's nearly impossible to click down the wheel when grabbing the mouse again, isn't it?
Also this is not a problem for notebook users, because their touchpad only does left clicks when touching it with your finger.
So this is only a problem for users with a real middle mouse button, and i can't image how to grab your mouse and click the middle mouse button. Normally i move my hand to the mouse and move it, never clicked a button by accident (at least not the middle one).

> And really, we don't want to make it too easy to perform a destructive task.
> Right-click+choosing a menu item is not that hard.

I'm working with it for 2 days now and it's a really cool feature imho.

> (I'm not even talking about the fact that middle-clicking on group buttons now
> activate the next window in the group, which is just totally different from
> closing a window).

I think this doesn't have to change because closing a complete group is really annoying.
Comment 6 Vincent Untz 2007-06-17 16:33:35 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > And really, we don't want to make it too easy to perform a destructive task.
> > Right-click+choosing a menu item is not that hard.
> 
> I'm working with it for 2 days now and it's a really cool feature imho.

I agree it's cool for people who know about it. But it can be really not cool for other people.

> > (I'm not even talking about the fact that middle-clicking on group buttons now
> > activate the next window in the group, which is just totally different from
> > closing a window).
> 
> I think this doesn't have to change because closing a complete group is really
> annoying.

Oh, I was not talking about changing this, but about the fact that an action that is the same (middle-clicking) does not have the same result on buttons that are similar enough to users.

Anyway, really, that's WONTFIX for me, but maybe Elijah, Havoc or Mark will think otherwise, in which case they'll reopen this bug.
Comment 7 Jan Niklas Hasse (Account disabled) 2007-07-25 23:07:58 UTC
In 2.19 the "close" is at the bottom of the context menu, which makes it easier to close a window with right click -> close, so this isn't necessary. I see, you were right, it's WONTFIX.
Comment 8 Vincent Untz 2009-01-19 11:46:13 UTC
*** Bug 559243 has been marked as a duplicate of this bug. ***
Comment 9 Vincent Untz 2009-06-18 14:34:12 UTC
*** Bug 549204 has been marked as a duplicate of this bug. ***
Comment 10 allan.laal 2016-10-25 23:26:52 UTC
its 2016 now, surely any grandma will know that middle-click will close the tab its clicked on whether in a file manager or a browser.

Perhaps its time to revisit this decision?
Comment 11 Jan Niklas Hasse (Account disabled) 2016-10-26 09:56:25 UTC
any grandma won't even know that she can press down the mousewheel.