diff options
author | Mavridis Philippe <[email protected]> | 2023-04-05 22:08:38 +0300 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2023-05-27 16:32:23 +0300 |
commit | 31335a04ed9bc01fd3ede33afde40d6f3359f2e9 (patch) | |
tree | c15b7ab30c4af1e4992b908e48921d6c6c7017a8 /twin/events.cpp | |
parent | 3285a47d5dc3ffecabe49aaa11877f1abe71df44 (diff) | |
download | tdebase-31335a04ed9bc01fd3ede33afde40d6f3359f2e9.tar.gz tdebase-31335a04ed9bc01fd3ede33afde40d6f3359f2e9.zip |
TWin: Active borders and snap tiling
This commit is a squash of the commits of TDE/tdebase#331.
In short, this backports some improvements to existing electric border
functionality from KDE, adds the snap tiling (or aerosnap) feature and
brings rudimentary support for active corners, which will be fully
implemented in a later PR.
The options dialog and the documentation has been updated to reflect
these changes.
Additionally, a new relevant option is introduced: an option for
restoring the original size of maximized/tiled windows when the user
starts dragging them. The option is set to be off by default,
preserving the traditional behaviour of KDE 3.x/TDE.
Last but not least, the term "electric" in relation to borders and
corners is replaced by "active" for clarity to the users.
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'twin/events.cpp')
-rw-r--r-- | twin/events.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/twin/events.cpp b/twin/events.cpp index e9f8fd484..8430ad93a 100644 --- a/twin/events.cpp +++ b/twin/events.cpp @@ -389,7 +389,7 @@ bool Workspace::workspaceEvent( XEvent * e ) if ( w ) TQWhatsThis::leaveWhatsThisMode(); } - if( electricBorder(e)) + if (activeBorderEvent(e)) return true; break; } @@ -454,7 +454,7 @@ bool Workspace::workspaceEvent( XEvent * e ) case FocusOut: return true; // always eat these, they would tell Qt that KWin is the active app case ClientMessage: - if( electricBorder( e )) + if (activeBorderEvent(e)) return true; break; default: |