quicktile icon indicating copy to clipboard operation
quicktile copied to clipboard

Resolve monitor-switch more intelligently on differently sized monitors

Open ssokolow opened this issue 4 years ago • 2 comments

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.

ssokolow avatar Feb 09 '20 01:02 ssokolow

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

allanlaal avatar Dec 16 '22 08:12 allanlaal

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

ssokolow avatar Dec 19 '22 05:12 ssokolow