Fix Firefox fullscreen video on Wayland#2769
Fix Firefox fullscreen video on Wayland#2769peteruithoven wants to merge 2 commits intoelementary:mainfrom
Conversation
leolost2605
left a comment
There was a problem hiding this comment.
Are the changes to the focus behavior really necessary to fix this or is wrapping in idle enough?
|
AI response:
I'll try to do a A/B test |
|
Sorry but using LLMs for coding goes against our contributor guide here: https://docs.elementary.io/contributor-guide/development/generative-ai-policy And there's also been recent findings that incorporating LLM code could invalidate our entire licensing and copyright. We cannot accept this change |
|
@peteruithoven please also consider this a warning. Submitting LLM generated code another time will result in a perma ban. It is that serious |
|
While I understand the hesitation I did check the work. But I'll back off on fixing this issue. Delving into this issue by hand is not something I have time for right now. I won't submit LLM generated code to this project again as long as that policy stands. (I don't want to trigger a discussion here) |
Disclaimer. I've gotten a lot of help from GPT, it has:
But I have manually performed the tests. Logging in and out of Wayland each time and once into X11. This was no one shot it took several attempts, adding debug logs in between.
Closes #2768
Summary
This PR improves fullscreen workspace handling in
WindowMoverto avoid transition timing/focus races observed with Firefox element fullscreen on Wayland.The fullscreen path now:
focus=false) to avoid focus churn,META_CURRENT_TIMEfallback by usingdisplay.get_current_time_roundtrip ()when user time is unavailable.Maximize behavior is unchanged.
What changed
src/WindowMover.valato queue movement viaIdle.add (...).move_window_to_next_ws (window, false)move_window_to_old_ws (window, false)[WindowMover]warnings) after validation.Validation
Wayland (completed)
Verified manually with
move-fullscreened-workspace=true:io.elementary.desktop.wm.behavior move-fullscreened-workspaceoff/on behaves correctly.Observed warnings (
Error in size change accounting./META_CURRENT_TIME used to choose focus window) can still appear in logs in some transitions, but no user-visible breakage was reproduced in the tested Wayland scenarios.X11 (completed)
Verified manually in an X11 session with
move-fullscreened-workspace=true:Notes