Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve monitor-switch more intelligently on differently sized monitors #110

Open
ssokolow opened this issue Feb 9, 2020 · 2 comments
Open

Comments

@ssokolow
Copy link
Owner

ssokolow commented Feb 9, 2020

I don't want this to block 0.4.0, but I've realized the proper way to handle differently-sized monitors for monitor-* commands without waiting for the big rework needed to track what edge a window was originally tiled relative to.

Instead of clipping the target rectangle, or dumbly shoving the entire thing to be within the monitor's bounds, move it just enough to ensure that some minimum width (100px?) of the titlebar will be visible.

That way, if the window extends far enough into common subset of the monitor areas, it'll remain unmoved and behave like GTK+ 2.x QuickTile for cycling through monitors, but it won't be possible to lose a window off the edge of the desktop like Kubuntu 16.04 LTS allows in the absence of any kind of clamping.

@allanlaal
Copy link

how about just checking if the target monitor size is smaller than the window being moved, then resize that window to the monitor size

@ssokolow
Copy link
Owner Author

ssokolow commented Dec 19, 2022

That's the "clipping the target rectangle" option that this idea is "Instead of".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants