mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
interactive: allow moving horizontally/vertically maximized window
Applies drag resistance unidirectionally for horizontally/vertically maximized windows, allowing them to be dragged without being untiled immediately. When the distance of cursor movement orthogonal to the maximized direction exceeds <resistance><unMaximizeThreshold>. While dragging a horizontally/vertically maximized window, edge/region snapping is disabled to prevent unintentional snapping and overlays. This commit also includes some refactoring to simplify the logic.
This commit is contained in:
parent
2e19bd4d5b
commit
1f1bdad087
11 changed files with 137 additions and 120 deletions
|
|
@ -135,6 +135,7 @@ struct rcxml {
|
|||
int screen_edge_strength;
|
||||
int window_edge_strength;
|
||||
int unsnap_threshold;
|
||||
int unmaximize_threshold;
|
||||
|
||||
/* window snapping */
|
||||
int snap_edge_range;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue