jakebian / jakebian/snaptile

Bugs in dual screen mode

Open
#19 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
433
Forks
12
PR merge metrics
No merged PRs in 30d

Description

DISCLAIMER: I am mainly creating this issue for documentation purpose, as I am currently working on a fix for the described problems and am planning on submitting a PR soon

I have recently started using snaptile again and have come across two bugs in dual screen mode (`-d`):

1. The position is calculated based on the current screen; therefore, eg. pressing ctrl+alt+d moves the window between the screens on multiple presses. As a result, offsets on the second screen are wrong most of the time
2. If the screens are not aligned / different sizes / ..., the calculated position is wrong in a lot of cases, since only one screen is used to calculate offsets (which are then wrong on the second screen). Of course, positioning windows spanning multiple, misaligned screens is not trivial; I would suggest to just calculate the two quadrants on the respective screen (the two corners) and drawing a rectangle around them; this means that the resulting geometry might be a bit weird sometimes (reaching out of the screen...), but would at least be consistent with the system.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing dual-screen mode with the `-d` option and repeated `ctrl+alt+d` presses, then inspect the code that calculates screen positions and offsets. Done means window movement remains consistent across screens and handles differently sized or misaligned screens as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.