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

[Bug]: Occasionally losing manual resizing #148

Open
4 tasks done
lucaspar opened this issue Apr 11, 2024 · 8 comments
Open
4 tasks done

[Bug]: Occasionally losing manual resizing #148

lucaspar opened this issue Apr 11, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@lucaspar
Copy link

lucaspar commented Apr 11, 2024

Before you make the issue, confirm that

  • You are running the master build from GitHub actions
  • You have read the FAQ and the usage instructions
  • You have searched pull requests and issues and have found none similar to your issue
  • This problem comes from a failure in the tiling system and not a missing feature

Describe the bug

Opening the task switcher (Alt+Tab) or the application launcher (Meta key) often undoes manual resizing.

I observe a similar behavior with other kinds of windows, like notifications, even though the tilePopups config is off.

To reproduce

I'm not always able to reproduce it, but I gathered the logs of when it happens. It seems to happen in both the master (nightly) build and the build from the KDE store.

  1. Having Polonium engine as Binary Tree (haven't tried other engines).
  2. Tile at least 2 windows.
  3. Manually resize a tiled window using Polonium keyboard shortcuts or mouse.
  4. Switch windows with Alt+Tab
  5. The new size is lost upon releasing Alt (thus closing the task switcher).

Expected behavior

Switching windows should not trigger a retiling / should not resize windows.

Log output

Apr 11 00:21:30 desktop kwin_wayland[623340]: qml: Polonium INF: Polonium started!
Apr 11 00:21:30 desktop kwin_wayland[623340]: qml: Polonium DBG: Config is {"debug":true,"tilePopups":false,"filterProcess":["krunner","yakuake","kded","polkit","plasmashell","zoom","org.kde.plasmashell"],"filterCaption":[""],"timerDelay":200,"keepTiledBelow":true,"borders":0,"maximizeSingle":false,"resizeAmount":52,"saveOnTileEdit":false,"engineType":0,"insertionPoint":2,"rotateLayout":false}
Apr 11 00:21:30 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/ui/osd.qml:42: TypeError: Cannot read property 'gridUnit' of undefined
Apr 11 00:21:30 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/ui/osd.qml:41: TypeError: Cannot read property 'gridUnit' of undefined
Apr 11 00:21:30 desktop kwin_wayland[623340]: qml: Polonium DBG: Creating new engine for desktop {"desktop":"17d69135-591a-4cd6-a298-b91f5a1e509f","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"DP-1"}
Apr 11 00:21:30 desktop kwin_wayland[623340]: qml: Polonium DBG: Creating new engine for desktop {"desktop":"901c86b4-f36a-470e-8f2b-c8eea5a30596","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"DP-1"}
Apr 11 00:21:30 desktop kwin_wayland[623340]: qml: Polonium DBG: Creating new engine for desktop {"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"DP-1"}
Apr 11 00:21:30 desktop kwin_wayland[623340]: qml: Polonium DBG: Creating new engine for desktop {"desktop":"db765dfd-69ec-4c99-9a1a-abf4a71665b9","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"DP-1"}
Apr 11 00:21:30 desktop kwin_wayland[623340]: qml: Polonium DBG: Creating new engine for desktop {"desktop":"17d69135-591a-4cd6-a298-b91f5a1e509f","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"HDMI-A-1"}
Apr 11 00:21:30 desktop kwin_wayland[623340]: qml: Polonium DBG: Creating new engine for desktop {"desktop":"901c86b4-f36a-470e-8f2b-c8eea5a30596","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"HDMI-A-1"}
Apr 11 00:21:30 desktop kwin_wayland[623340]: qml: Polonium DBG: Creating new engine for desktop {"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"HDMI-A-1"}
Apr 11 00:21:30 desktop kwin_wayland[623340]: qml: Polonium DBG: Creating new engine for desktop {"desktop":"db765dfd-69ec-4c99-9a1a-abf4a71665b9","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"HDMI-A-1"}
Apr 11 00:21:31 desktop kwin_wayland[623340]: qml: Polonium DBG: Window systemsettings removed
Apr 11 00:21:31 desktop kwin_wayland[623340]: qml: Polonium DBG: Removing window systemsettings from desktops {"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"HDMI-A-1"}
Apr 11 00:21:31 desktop kwin_wayland[623340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"DP-1"},{"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"HDMI-A-1"}
Apr 11 00:21:31 desktop kwin_wayland[623340]: qml: Polonium DBG: Window systemsettings removed
Apr 11 00:21:31 desktop kwin_wayland[623340]: qml: Polonium DBG: Removing window systemsettings from desktops {"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"HDMI-A-1"}
Apr 11 00:21:31 desktop kwin_wayland[623340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"DP-1"},{"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"HDMI-A-1"}
Apr 11 00:21:31 desktop kwin_wayland[623340]: qml: Polonium DBG: Window systemsettings removed
Apr 11 00:21:31 desktop kwin_wayland[623340]: qml: Polonium DBG: Removing window systemsettings from desktops {"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"HDMI-A-1"}
Apr 11 00:21:31 desktop kwin_wayland[623340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"DP-1"},{"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"HDMI-A-1"}
Apr 11 00:21:32 desktop kwin_wayland[623340]: qml: Polonium DBG: Window kitty hooked into script
Apr 11 00:21:32 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:2412: TypeError: Type error
Apr 11 00:21:32 desktop kwin_wayland[623340]: qml: Polonium DBG: Window kitty hooked into script
Apr 11 00:21:32 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:2412: TypeError: Type error
Apr 11 00:21:32 desktop kwin_wayland[623340]: qml: Polonium DBG: Window kitty hooked into script
Apr 11 00:21:32 desktop kwin_wayland[623340]: qml: Polonium DBG: Window kitty added
Apr 11 00:21:32 desktop kwin_wayland[623340]: qml: Polonium DBG: Adding window kitty to desktops {"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"HDMI-A-1"}
Apr 11 00:21:32 desktop kwin_wayland[623340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"DP-1"},{"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"HDMI-A-1"}
Apr 11 00:21:32 desktop kwin_wayland[623340]: qml: Polonium DBG: QRectF(3440, 45, 2400, 1350) QRectF(3444, 49, 1194, 1342)
Apr 11 00:21:32 desktop kwin_wayland[623340]: qml: Polonium DBG: QRectF(3440, 45, 2400, 1350) QRectF(3444, 49, 2392, 1342)
Apr 11 00:21:32 desktop kwin_wayland[623340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"HDMI-A-1"}
Apr 11 00:21:50 desktop kwin_wayland[623340]: qml: Polonium DBG: Window kitty hooked into script
Apr 11 00:21:50 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:2412: TypeError: Type error
Apr 11 00:21:50 desktop kwin_wayland[623340]: qml: Polonium DBG: Window kitty hooked into script
Apr 11 00:21:50 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:2412: TypeError: Type error
Apr 11 00:21:50 desktop kwin_wayland[623340]: qml: Polonium DBG: Window kitty hooked into script
Apr 11 00:21:50 desktop kwin_wayland[623340]: qml: Polonium DBG: Window kitty added
Apr 11 00:21:50 desktop kwin_wayland[623340]: qml: Polonium DBG: Adding window kitty to desktops {"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"HDMI-A-1"}
Apr 11 00:21:50 desktop kwin_wayland[623340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"DP-1"},{"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"HDMI-A-1"}
Apr 11 00:21:50 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:21:50 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:21:50 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:21:50 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:21:50 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:21:50 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:21:50 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:21:50 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:21:50 desktop kwin_wayland[623340]: qml: Polonium DBG: QRectF(3440, 45, 1200, 1350) QRectF(3444, 49, 1194, 1342)
Apr 11 00:21:50 desktop kwin_wayland[623340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"HDMI-A-1"}
Apr 11 00:21:50 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:21:50 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:21:50 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:21:50 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:21:50 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:21:50 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:21:50 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:21:50 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:21:50 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:21:50 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:21:50 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:21:50 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
# manual resize
Apr 11 00:21:56 desktop kwin_wayland[623340]: qml: Polonium DBG: Changing size of QRectF(4640, 45, 1200, 1350)
Apr 11 00:21:56 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:21:56 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:21:56 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:21:56 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:21:56 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:21:56 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:21:56 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:21:56 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:21:56 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:21:56 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:21:56 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:21:56 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:21:56 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:21:56 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:21:56 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:21:57 desktop kwin_wayland[623340]: qml: Polonium DBG: Layout modified for tile QRectF(3440, 45, 2400, 1350)
# alt+tab pressed
Apr 11 00:22:00 desktop kwin_wayland[623340]: qml: Polonium DBG: Window  hooked into script
Apr 11 00:22:00 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:2412: TypeError: Type error
Apr 11 00:22:00 desktop kwin_wayland[623340]: qml: Polonium DBG: Window  hooked into script
Apr 11 00:22:00 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:2412: TypeError: Type error
Apr 11 00:22:00 desktop kwin_wayland[623340]: qml: Polonium DBG: Window  hooked into script
Apr 11 00:22:00 desktop kwin_wayland[623340]: qml: Polonium DBG: Window  added
Apr 11 00:22:00 desktop kwin_wayland[623340]: qml: Polonium DBG: Adding window  to desktops
Apr 11 00:22:00 desktop kwin_wayland[623340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"DP-1"},{"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"HDMI-A-1"}
Apr 11 00:22:00 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:00 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:22:00 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:00 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:22:00 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:00 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:22:00 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:00 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:22:00 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:00 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:22:00 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:00 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:22:00 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:00 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:22:00 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:00 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:22:00 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:00 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:22:00 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:00 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:22:00 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:00 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:22:00 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:00 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
# alt+tab released
Apr 11 00:22:08 desktop kwin_wayland[623340]: qml: Polonium DBG: Window  removed
Apr 11 00:22:08 desktop kwin_wayland[623340]: qml: Polonium DBG: Removing window  from desktops
Apr 11 00:22:08 desktop kwin_wayland[623340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"DP-1"},{"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"HDMI-A-1"}
Apr 11 00:22:08 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:08 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:22:08 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:08 desktop kwin_wayland[623340]: qml: Polonium DBG: Window  removed
Apr 11 00:22:08 desktop kwin_wayland[623340]: qml: Polonium DBG: Removing window  from desktops
Apr 11 00:22:08 desktop kwin_wayland[623340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"DP-1"},{"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"HDMI-A-1"}
Apr 11 00:22:08 desktop kwin_wayland[623340]: qml: Polonium DBG: Window  removed
Apr 11 00:22:08 desktop kwin_wayland[623340]: qml: Polonium DBG: Removing window  from desktops
Apr 11 00:22:08 desktop kwin_wayland[623340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"DP-1"},{"desktop":"7d4ea842-8cb2-4d17-bc8e-4dfc4514ff77","activity":"53b79edd-f407-4872-b174-30ffe3afee52","output":"HDMI-A-1"}
Apr 11 00:22:08 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:08 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:22:08 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:08 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:22:08 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:08 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:22:08 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:08 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:22:08 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:08 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:22:08 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:08 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:22:08 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:08 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:22:08 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:08 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:22:08 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:08 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:22:08 desktop kwin_wayland[623340]: qml: Polonium DBG: resizing layout
Apr 11 00:22:08 desktop kwin_wayland[623340]: file:///home/lucas/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1861: TypeError: Type error
Apr 11 00:22:08 desktop kwin_wayland[623340]: qml: Polonium DBG: Layout modified for tile QRectF(3440, 45, 2400, 1350)

Screenshots and videos

No response

Additional context

The logs have lots of TypeError: Type error, maybe related to Polonium re-installs? They started happening when I tried the KDE store version, but persisted after switching back to the nightly build.

@lucaspar lucaspar added the bug Something isn't working label Apr 11, 2024
@zeroxoneafour
Copy link
Owner

Strange that there's a type error, that hasn't happened for me. I feel #139 is relevant here perhaps

@lucaspar
Copy link
Author

I saw that issue, but my callback delay is already set to the max value.

@lucaspar
Copy link
Author

I see in the logs that Polonium is "adding" a window without a class, title, or process name (idk which polonium is logging) - I guess that's the task switcher and it's probably what's causing an unwanted retiling when this window is gone. Is this expected behavior? Any way to exclude this nameless window from tiling?

@msmol
Copy link

msmol commented Apr 15, 2024

I see the same behavior on my side, using the task switcher (alt-tab) makes this reproduce 100% of the time for me, though I see the resizing happen when the task switcher is opened, rather than upon release / the task switcher closes.

@lucaspar
Copy link
Author

though I see the resizing happen when the task switcher is opened

I can confirm - the behavior is erratic, the undesirable resizing when the task switcher opens is also common here.

@ttytm
Copy link

ttytm commented Apr 26, 2024

Happens all the time. To give something to reproduce:

  • open a window, resize, switch desktops, switch back -> size is not remembered.
  • open a window, resize, open another window -> size is not remembered

The video below shows the issue:

resize.mp4

The only thing that helps to remember size is setting the callback to the max value and to wait at least 3 seconds after resizing before opening another window or switching desktops. Waiting won't work with shorter callback values for me. The video just includes waiting with a lower cb value. An example with a max cb value is not part of the recording, but I can reproduce it like this consistently - at least on my end.

I hope that report is a start to get something generally reproducible.

@zeroxoneafour why not just calling a save for the layout after a resizing action? Skimming the code I don't see that it's done.

@Lippiece
Copy link

This also happens when you open KRunner.

@ttytm
Copy link

ttytm commented May 25, 2024

This also happens when you open KRunner.

Cannot reproduce this with KRunner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants