Bug 473594 - Custom Tiling sometimes doesn't work with Firefox Wayland (+workaround)
Summary: Custom Tiling sometimes doesn't work with Firefox Wayland (+workaround)
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: Custom Tiling (show other bugs)
Version: 5.27.7
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-21 10:11 UTC by Loïc Droz
Modified: 2025-04-13 09:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Loïc Droz 2023-08-21 10:11:48 UTC
SUMMARY

Not sure if this is a Firefox or KWin issue, but attempting to tile a Firefox Wayland window (with shift+drag) *sometimes* does not work*. The tiling indicator shows up, but at the end of the drag, it stays where it was immediately before releasing mouse left. This only happens when I launch Firefox with MOZ_ENABLE_WAYLAND=1. Using just "firefox" launches it in XWayland mode, which does not have that issue.

* I found a WORKAROUND, which might help resolving that issue:

After the window fails to tile, switching to another virtual desktop, and then back to the original one, gets the window to tile properly.


STEPS TO REPRODUCE
1. Enable custom tiling
2. Start Firefox in Wayland mode with MOZ_ENABLE_WAYLAND=1 firefox
3. Shift+drag the firefox window to any desired custom tile, until the tiling indicator appears
4. Release mouse left, observe how the window did not tile.
5. If that did not trigger the bug, try again on a different tile.

OBSERVED RESULT

The window does not tile to the desired tile, instead it just keeps its position and dimensions as they were immediately before releasing mouse left.

EXPECTED RESULT

After releasing mouse left, the window should tile properly to the desired tile.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.4.11-arch2-1 (64-bit) / 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION

Attached a screen capture of the bug and its workaround.
Comment 1 Loïc Droz 2023-08-21 10:12:51 UTC
Sorry the video is too heavy and attachment creation failed, you can view and download it here: https://kdrive.infomaniak.com/app/share/356870/a7b56ee8-172e-4d48-b444-1358be40abfb
Comment 2 Chris 2025-04-13 09:39:55 UTC
I'm experiencing this issue too.  
I'm not a fan of having to fall back on older technologies like X11/XWayland.  
I'm running Plasma 6.3.4 and hope that Plasma 6.4 will resolve this tiling bug.