Repository navigation
Conversation
…x screen picker order
Member
|
@yyoel Please don't close and reopen pull requests for the same work. One is fine. |
yyoel
force-pushed
the
mint-dock-follow-cursor-v2
branch
from
November 20, 2026 15:52
70e8d10 to
dd1366f
Compare
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.
Hi @Hilyxx, thanks for Mint-Dock! This PR adds an optional feature and fixes a multi-monitor bug. Since it changes functionality, I'd appreciate your review.
New option: "Follow the mouse across screens" (Display section, off by default)
When enabled, the dock moves to the screen the mouse pointer is on.
There is no Cinnamon signal for "pointer moved to another monitor", so it uses a 150 ms timer, similar to the existing 250 ms visibility loop. The timer only runs while the option is enabled and is removed in
destroy().Bug fix: screen picker could put the dock on the other screen
MonitorSelector.pylists screens in GDK order (primary first), but the extension used that number as aMain.layoutManagerindex, which can be ordered differently. On my setup, choosing "eDP-1 (0)" placed the dock on the HDMI screen. The picker index is now converted withglobal.display.xinerama_index_to_logical_index(), the same mapping Cinnamon'spanel.jsandcinnamonDBus.jsuse.Note: users who picked the "wrong" label as a workaround will see the dock move to the screen they actually selected.
Implementation notes
extension.jsorsettings-schema.json. Each existing screen-choice block is kept, followed by one line calling_applyMonitorOverrides()..potregenerated with./cinnamon-spices-makepot. Existing.pofiles were left for translators../validate-spice mint-dock@hilyxxpasses.Testing
Not tested: dock on left/right/top, Auto hide mode, autohide disabled, Wayland.