Add configurable tile-edge-zone-width setting - #853
Open
rkristelijn wants to merge 1 commit into
Open
Conversation
The corner tile snap zones were hardcoded to 1-2 pixels, making quarter tiling via drag nearly impossible to trigger, especially on multi-monitor setups where the cursor easily overshoots onto the adjacent display. Add a new org.cinnamon.muffin gsetting 'tile-edge-zone-width' (int, default 25, range 2-100) that controls the width of the edge zone where dragging triggers tiling. Follows the same pattern as draggable-border-width. Fixes: linuxmint#852
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
org.cinnamon.muffingsettingtile-edge-zone-widthto make the edge/corner tile snap zones configurable.Fixes #852
Problem
The tile snap zones are hardcoded to 1-2 pixels (
ORIGIN_CONSTANT = 1,EXTREME_CONSTANT = 2insrc/core/window.c). For corner (quarter) tiling, the user must hit both zones simultaneously, making the effective target ~2×2 pixels. This is nearly impossible to hit consistently, especially on multi-monitor setups where the cursor overshoots onto the adjacent display.Solution
tile-edge-zone-widthgsetting (int, default 25, range 2–100)draggable-border-widthChanges
data/org.cinnamon.muffin.gschema.xml.insrc/meta/prefs.hsrc/core/prefs.csrc/core/window.cTesting
gsettings set org.cinnamon.muffin tile-edge-zone-width 25then drag windows to corners — quarter tiling triggers reliably vs the previous 1-2pxUsage