Fmstrat / wintile

Windows 10 window tiling for GNOME
GNU General Public License v3.0
424 stars 54 forks source link

bug when moving a tiled window to a smaller screen #157

Closed GrylledCheez closed 1 year ago

GrylledCheez commented 1 year ago

Steps to produce bug:

  1. enable ultrawide-only mode
  2. set columns higher than non-ultrawide (i.e. 5)
  3. maximize a tile on an ultrawide screen
  4. use the mouse to move the tile to a screen with fewer columns (i.e. 2)
  5. maximize the tile
  6. use <super>+<left> Because the tile already had a width greater than the columns, it causes the tile to move to another screen
Jul 24 12:42:12 localhost gnome-shell[2153]: [WinTile], isResize) mask: 3 resize: false
Jul 24 12:42:12 localhost gnome-shell[2153]: [WinTile], windowGrabBegin) mouse - mouseX:1259 mouseY:726
Jul 24 12:42:12 localhost gnome-shell[2153]: [WinTile], windowGrabBegin) window - x:251 y:706 w:1055 h:596
Jul 24 12:42:12 localhost gnome-shell[2153]: [WinTile], windowGrabEnd)
Jul 24 12:42:13 localhost gnome-shell[2153]: [WinTile], checkIfNearGrid)
Jul 24 12:42:13 localhost gnome-shell[2153]: [WinTile], initApp) init as maximize
Jul 24 12:42:13 localhost gnome-shell[2153]: [WinTile], initApp) app.wintile: {"origFrame":{"x":0,"y":360,"width":1920,"height":1080},"row":0,"col":0,"height":2,"width":5}
Jul 24 12:42:19 localhost gnome-shell[2153]: [WinTile], ---
Jul 24 12:42:19 localhost gnome-shell[2153]: [WinTile], sendMove) left ctrl: false
Jul 24 12:42:19 localhost gnome-shell[2153]: [WinTile], sendMove) curMonitor: 0 x: 0 width: 1920
Jul 24 12:42:19 localhost gnome-shell[2153]: [WinTile], sendMove) testMonitor: 0 x: 1920 width: 3440
Jul 24 12:42:19 localhost gnome-shell[2153]: [WinTile], sendMove) monitorToLeft: -1 monitorToRight: 0
Jul 24 12:42:19 localhost gnome-shell[2153]: [WinTile], sendMove) isNotUltrawide: true
Jul 24 12:42:19 localhost gnome-shell[2153]: [WinTile], sendMove) Already in a tile.
Jul 24 12:42:19 localhost gnome-shell[2153]: [WinTile], {"origFrame":{"x":0,"y":360,"width":1920,"height":1080},"row":0,"col":0,"height":2,"width":5}
Jul 24 12:42:19 localhost gnome-shell[2153]: [WinTile], sendMove) left
Jul 24 12:42:19 localhost gnome-shell[2153]: [WinTile], sendMove) left - shrink
Jul 24 12:42:19 localhost gnome-shell[2153]: [WinTile], moveApp) {"row":0,"col":0,"height":2,"width":4}
Jul 24 12:42:19 localhost gnome-shell[2153]: [WinTile], moveApp) isNotUltrawide: true
Jul 24 12:42:19 localhost gnome-shell[2153]: [WinTile], moveAppCoordinates) Moving window to (0,360), size (3840,1080) with 0px gaps
Jul 24 12:42:19 localhost gnome-shell[2153]: [WinTile], moveApp) maximize - v
Jul 24 12:42:19 localhost gnome-shell[2153]: [WinTile], moveAppCoordinates) Moving window to (0,360), size (3840,1080) with 0px gaps
Jul 24 12:42:19 localhost gnome-shell[2153]: [WinTile], moveApp) window.x: 1920 window.y: 27 window.width: 3440 window.height: 1386