Bug 480848 - Vertically or horizontally maximize a window by double-clicking on its horizontal or vertical edges (respectively)
Summary: Vertically or horizontally maximize a window by double-clicking on its horizo...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: input (show other bugs)
Version: 5.27.10
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-04 12:48 UTC by Geri
Modified: 2024-02-29 20:09 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geri 2024-02-04 12:48:51 UTC
Hi,

it would be a super-great feature in KDE – and make me love it even more – if I could double-click a window border to maximize its width or height. Windows, for instance, supports the latter (though not well known) since...ages. It still doesn't so with the former which is a pity.

STEPS TO REPRODUCE

1. Double-click on the borders of basically resizable windows.

OBSERVED RESULT

Performing 1. on left, right and bottom borders does nothing, on the top border it maximizes the window – but that works on all of the empty space of the title bar anyway (and that shouldn't change).

EXPECTED RESULT

1. Double-clicking a horizontal border maximizes the height of the window. 

  Optionally (in a multi-monitor setup) customizable for:
    a. use just the display with the mouse cursor on it (default) or
    b. use all displays that are stacked on each other
        (with the option to achieve this with a triple-click, in case a. is selected).


2. Double-clicking a vertical border maximizes the width of the window.

  Optionally (in a multi-monitor setup) customizable for:
    a. use just the display with the mouse cursor on it (default) or
    b. use all displays that are placed side-by-side.
        (with the option to achieve this with a triple-click, in case a. is activated).


SOFTWARE/OS VERSIONS

Linux/KDE Plasma: openSUSE Tumbleweed 20240201
(available in About System)
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.12

ADDITIONAL INFORMATION

I owe you a beer, or two, or even an entire party once this is implemented.

Cheers!
Geri
Comment 1 Geri 2024-02-05 23:29:10 UTC
> 
> EXPECTED RESULT
> ...
>         (with the option to achieve this with a triple-click, in case a. is selected).
> 

After re-reading – and re-thinking – my writing this could be extended to:

         (with the option to achieve this with a triple-click or Ctrl+|Alt+|Shift+Double-click, in case a. is selected).
Comment 2 Nate Graham 2024-02-06 20:44:21 UTC
That actually does strike me as a great idea!
Comment 3 Geri 2024-02-07 22:36:28 UTC
(In reply to Nate Graham from comment #2)
> That actually does strike me as a great idea!

Thank you for your kind reply. (And I'm humble enough _not_ to say: "I know it is." :)) Am I really the first who comes up with this idea? Because this didn't come into my mind just a few days ago. I'm thinking of this since I completely changed to Linux (at home, business is different, unfortunately) after the final end-of-life of Win7. And I've always been asking myself since: „Why isn't it there? It's obvious that there are so many great girls and guys in this community. Did really no one of them think of this for more than a quarter century?“
Comment 4 Vlad Zahorodnii 2024-02-27 22:01:01 UTC
Git commit d8e8f952a20a3bc2954d342ac5d5b248ea5afea6 by Vlad Zahorodnii.
Committed on 27/02/2024 at 21:27.
Pushed by vladz into branch 'master'.

Allow maximizing the window by double clicking borders

It's a more intuitive way to maximize a window either horizontally or
vertically.

M  +0    -54   autotests/integration/decoration_input_test.cpp
M  +27   -6    src/window.cpp

https://invent.kde.org/plasma/kwin/-/commit/d8e8f952a20a3bc2954d342ac5d5b248ea5afea6