Bug 426930 - Add option to close window with Alt/Meta + MiddleMouseButton click
Summary: Add option to close window with Alt/Meta + MiddleMouseButton click
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2020-09-24 14:57 UTC by Sidney
Modified: 2024-04-25 13:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Inner window action to close with Meta+MiddleClick (32.05 KB, image/png)
2020-09-24 14:57 UTC, Sidney
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sidney 2020-09-24 14:57:16 UTC
Created attachment 131911 [details]
Inner window action to close with Meta+MiddleClick

To perceive more consistent behavior it would be nice to have option for closing windows by modifier + mouse click (or touch) on inner area of window.

specifically that option best fits to this place:

- open systemsettings
- go into 'window management'
- open 'window behavior'
- select tab 'window actions'

in th group 'inner window, titlebar and frame' there is a dropdowns for each mouse buttons (and wheel) which consist only of the entries
- Move
- Activate, raise and move
- Toggle raise and lower
- Resize
- Raise
- Lower
- Minimize
- Decrease opacity
- Increase opacity
- Do nothing

Missing option would be Close, which is available in 'Titlebar Actions' for all three MButtons.
Comment 1 Vlad Zahorodnii 2020-09-24 15:05:51 UTC
FWIW, if you put CommandAll2=Close under MouseBindings section in your kwinrc, you'll be able to close windows by pressing meta + mmb.
Comment 2 Nate Graham 2020-09-24 17:42:29 UTC
So I guess it just needs a GUI then.
Comment 3 Vlad Zahorodnii 2020-09-25 07:57:23 UTC
(In reply to Nate Graham from comment #2)
> So I guess it just needs a GUI then.

yes
Comment 4 David Edmundson 2020-09-25 08:13:26 UTC
It might be easy to code, but that doesn't justify if we actually want it?
Comment 5 Sidney 2020-09-25 10:38:39 UTC
(In reply to David Edmundson from comment #4)
> It might be easy to code, but that doesn't justify if we actually want it?

Decision is yours obviously...
... but just for sake consistency I think it would be useful. 
Also, please notice that this kinda "middleClick to close" feature is quite common (inside and outside KDE):
- mentioned before, Titlebar Actions,
- Task Manager icons on main panel (option added quite recently),
- Present Windows effect (aka expose),
- generally most implementations of tabs
   Dolphin, 
   Konsole (option),
   Kate hasn't [quirk] =[
   Web browsers...

...in addition I confess that forced to use MS Windows machines I always run my Autohotkey script to get this feature (and of course most commonly known Meta+LMB to move window).
Thank you guys for your great work and please consider implementing it.