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]: Re-tiling issues #157

Open
4 tasks done
tvarsis opened this issue Apr 22, 2024 · 5 comments
Open
4 tasks done

[Bug]: Re-tiling issues #157

tvarsis opened this issue Apr 22, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@tvarsis
Copy link

tvarsis commented Apr 22, 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

The re-tiling shortcut woks sometimes, but most of the time it does nothing. Same happens when you connect/disconnect an external monitor with different resolution, leading to broken tiling which is hard to re-tile, even manually. Usually you would have to close and reopen windows to get it to tile correctly.

To reproduce

There are multiple ways to reproduce this one, but it would happen after a tiling state becomes broken and you would expect the "re-tile" shortcut to fix it, but it doesn't. One way is to have 3 windows tiled correctly and then connect an external monitor with different resolution than your laptop monitor, in the mode that you only have display output on the external monitor and not the laptop screen. Tiling will become broken, and re-tile shortcut does nothing.

Expected behavior

Pressing the re-tile shortcut should always force a re-tile of all windows on the active desktop to the selected tiled layout. Connecting or disconnecting an external monitor should also automatically force a re-tile of all windows on all desktops to avoid broken states. It seems to be in very rare cases where the re-tile shortcut actually works as expected.

Log output

Apr 25 10:27:22 hostname kwin_wayland[3340]: qml: Polonium DBG: Window org.kde.plasmashell hooked into script
Apr 25 10:27:22 hostname kwin_wayland[3340]: qml: Polonium DBG: Not tiling window org.kde.plasmashell
Apr 25 10:27:23 hostname kwin_wayland[3340]: qml: Polonium DBG: Window  hooked into script
Apr 25 10:27:23 hostname kwin_wayland[3340]: qml: Polonium DBG: Window  added
Apr 25 10:27:23 hostname kwin_wayland[3340]: qml: Polonium DBG: Adding window  to desktops
Apr 25 10:27:23 hostname kwin_wayland[3340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"adcd4030-a4ab-40d8-804d-22c28c4f96a9","activity":"cd987270-f2c0-4fea-aa74-bca2e2803dae","output":"DP-5"}
Apr 25 10:27:23 hostname kwin_wayland[3340]: qml: Polonium DBG: Window org.kde.plasmashell removed
Apr 25 10:27:23 hostname kwin_wayland[3340]: qml: Polonium DBG: Removing window org.kde.plasmashell from desktops
Apr 25 10:27:23 hostname kwin_wayland[3340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"adcd4030-a4ab-40d8-804d-22c28c4f96a9","activity":"cd987270-f2c0-4fea-aa74-bca2e2803dae","output":"DP-5"}
Apr 25 10:27:24 hostname kwin_wayland[3340]: qml: Polonium DBG: Window  removed
Apr 25 10:27:24 hostname kwin_wayland[3340]: qml: Polonium DBG: Removing window  from desktops
Apr 25 10:27:24 hostname kwin_wayland[3340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"adcd4030-a4ab-40d8-804d-22c28c4f96a9","activity":"cd987270-f2c0-4fea-aa74-bca2e2803dae","output":"DP-5"}
Apr 25 10:27:29 hostname kwin_wayland[3340]: qml: Polonium DBG: Window  hooked into script
Apr 25 10:27:29 hostname kwin_wayland[3340]: qml: Polonium DBG: Window  added
Apr 25 10:27:29 hostname kwin_wayland[3340]: qml: Polonium DBG: Adding window  to desktops
Apr 25 10:27:29 hostname kwin_wayland[3340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"adcd4030-a4ab-40d8-804d-22c28c4f96a9","activity":"cd987270-f2c0-4fea-aa74-bca2e2803dae","output":"DP-5"}
Apr 25 10:27:29 hostname kwin_wayland[3340]: qml: Polonium DBG: Window  removed
Apr 25 10:27:29 hostname kwin_wayland[3340]: qml: Polonium DBG: Removing window  from desktops
Apr 25 10:27:29 hostname kwin_wayland[3340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"adcd4030-a4ab-40d8-804d-22c28c4f96a9","activity":"cd987270-f2c0-4fea-aa74-bca2e2803dae","output":"DP-5"}
Apr 25 10:27:29 hostname kwin_wayland[3340]: qml: Polonium DBG: Putting client firefox in tile QRectF(0, 0, 3840, 1600) with direction 2 on desktop {"desktop":"adcd4030-a4ab-40d8-804d-22c28c4f96a9","activity":"cd987270-f2c0-4fea-aa74-bca2e2803dae","output":"DP-5"}
Apr 25 10:27:29 hostname kwin_wayland[3340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"adcd4030-a4ab-40d8-804d-22c28c4f96a9","activity":"cd987270-f2c0-4fea-aa74-bca2e2803dae","output":"DP-5"}
Apr 25 10:27:29 hostname kwin_wayland[3340]: qml: Polonium DBG: QRectF(0, 0, 3840, 1600) QRectF(4, 4, 3832, 1592)
Apr 25 10:27:29 hostname kwin_wayland[3340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"adcd4030-a4ab-40d8-804d-22c28c4f96a9","activity":"cd987270-f2c0-4fea-aa74-bca2e2803dae","output":"DP-5"}
Apr 25 10:27:30 hostname kwin_wayland[3340]: qml: Polonium DBG: Untiling window firefox on desktops {"desktop":"adcd4030-a4ab-40d8-804d-22c28c4f96a9","activity":"cd987270-f2c0-4fea-aa74-bca2e2803dae","output":"DP-5"}
Apr 25 10:27:30 hostname kwin_wayland[3340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"adcd4030-a4ab-40d8-804d-22c28c4f96a9","activity":"cd987270-f2c0-4fea-aa74-bca2e2803dae","output":"DP-5"}
Apr 25 10:27:31 hostname kwin_wayland[3340]: qml: Polonium DBG: Untiling window firefox on desktops {"desktop":"adcd4030-a4ab-40d8-804d-22c28c4f96a9","activity":"cd987270-f2c0-4fea-aa74-bca2e2803dae","output":"DP-5"}
Apr 25 10:27:31 hostname kwin_wayland[3340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"adcd4030-a4ab-40d8-804d-22c28c4f96a9","activity":"cd987270-f2c0-4fea-aa74-bca2e2803dae","output":"DP-5"}
Apr 25 10:27:31 hostname kwin_wayland[3340]: qml: Polonium DBG: Untiling window firefox on desktops {"desktop":"adcd4030-a4ab-40d8-804d-22c28c4f96a9","activity":"cd987270-f2c0-4fea-aa74-bca2e2803dae","output":"DP-5"}
Apr 25 10:27:31 hostname kwin_wayland[3340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"adcd4030-a4ab-40d8-804d-22c28c4f96a9","activity":"cd987270-f2c0-4fea-aa74-bca2e2803dae","output":"DP-5"}
Apr 25 10:27:31 hostname kwin_wayland[3340]: qml: Polonium DBG: Window  hooked into script
Apr 25 10:27:31 hostname kwin_wayland[3340]: qml: Polonium DBG: Window  added
Apr 25 10:27:31 hostname kwin_wayland[3340]: qml: Polonium DBG: Adding window  to desktops
Apr 25 10:27:31 hostname kwin_wayland[3340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"adcd4030-a4ab-40d8-804d-22c28c4f96a9","activity":"cd987270-f2c0-4fea-aa74-bca2e2803dae","output":"DP-5"}
Apr 25 10:27:31 hostname kwin_wayland[3340]: qml: Polonium DBG: Window  removed
Apr 25 10:27:31 hostname kwin_wayland[3340]: qml: Polonium DBG: Removing window  from desktops
Apr 25 10:27:31 hostname kwin_wayland[3340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"adcd4030-a4ab-40d8-804d-22c28c4f96a9","activity":"cd987270-f2c0-4fea-aa74-bca2e2803dae","output":"DP-5"}
Apr 25 10:27:32 hostname kwin_wayland[3340]: qml: Polonium DBG: Untiling window firefox on desktops {"desktop":"adcd4030-a4ab-40d8-804d-22c28c4f96a9","activity":"cd987270-f2c0-4fea-aa74-bca2e2803dae","output":"DP-5"}
Apr 25 10:27:32 hostname kwin_wayland[3340]: qml: Polonium DBG: Rebuilding layout for desktops {"desktop":"adcd4030-a4ab-40d8-804d-22c28c4f96a9","activity":"cd987270-f2c0-4fea-aa74-bca2e2803dae","output":"DP-5"}
Apr 25 10:27:34 hostname kwin_wayland[3340]: qml: Polonium DBG: Window org.kde.yakuake hooked into script
Apr 25 10:27:34 hostname kwin_wayland[3340]: qml: Polonium DBG: Not tiling window org.kde.yakuake

Screenshots and videos

No response

Additional context

No response

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

@zeroxoneafour zeroxoneafour added the needs log I assume you forgot? label Apr 22, 2024
@root-hal9000
Copy link

I will add that this happens to me sometimes, but after pressing the retiling shortcut, if I use another shortcut to move the window, it will get back into a tile (shortcuts like the polonium one for insert into or the kwin shortcut for move one screen to the left/right)

@tvarsis
Copy link
Author

tvarsis commented Apr 25, 2024

@zeroxoneafour Added logs now. The logs are for a scenario where I have one Firefox window tiled to the left (half screen) and adding a new Firefox window that then opens in full screen mode getting placed over the other FF window. Then I try to press Retile shortcut, but nothing happens. Expected result is for it to auto tile directly on open, but if that does not work, then the retile should sort it out. Not even trying to manually tile, drag or using "insert" shortcuts. Seems like it has a tendency to get into broken state where it is not possible to retile, but you would have to basically close and reopen all window. A "force retile all open windows" shortcut would be nice to have.

@zeroxoneafour zeroxoneafour removed the needs log I assume you forgot? label May 3, 2024
@root-hal9000
Copy link

hey @tvarsis , just curious, but does Firefox seem to behave worse than others? I can't quantify it, but I feel like I always have more issues with Firefox than other applications - particularly when you create a new window by dragging a tab out of an existing window

@tvarsis
Copy link
Author

tvarsis commented May 10, 2024

@root-hal9000 Yeah, firefox and electron/flatpaks seems to work worst. But I gave up and switched to Krohnkite that have been updated for KDE 6 and works much better and more expected.

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

3 participants