[kwin] [Bug 519789] Focus steal across virtual desktops breaks effects and functionality on all but one virtual desktop

2026-06-12 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=519789

[email protected] changed:

   What|Removed |Added

 CC||armoire.mountable405@lippie
   ||ce.anonaddy.me

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 519789] Focus steal across virtual desktops breaks effects and functionality on all but one virtual desktop

2026-06-11 Thread Zamundaaa
https://bugs.kde.org/show_bug.cgi?id=519789

Zamundaaa  changed:

   What|Removed |Added

 CC||[email protected]

--- Comment #12 from Zamundaaa  ---
*** Bug 520724 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 519789] Focus steal across virtual desktops breaks effects and functionality on all but one virtual desktop

2026-06-11 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=519789

Nate Graham  changed:

   What|Removed |Added

Version||6.7.0
  Fixed/Implemented||
 In||

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 519789] Focus steal across virtual desktops breaks effects and functionality on all but one virtual desktop

2026-06-10 Thread Michal Kec
https://bugs.kde.org/show_bug.cgi?id=519789

Michal Kec (MiK)  changed:

   What|Removed |Added

 CC||[email protected]

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 519789] Focus steal across virtual desktops breaks effects and functionality on all but one virtual desktop

2026-06-10 Thread Vlad Zahorodnii
https://bugs.kde.org/show_bug.cgi?id=519789

Vlad Zahorodnii  changed:

   What|Removed |Added

  Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
   |ma/kwin/-/commit/3d770c8650 |ma/kwin/-/commit/f038bb7f25
   |a70eb2128ee38e89d8360c15b82 |d6445d200e4a7a76d203c07fee7
   |191 |2a5

--- Comment #11 from Vlad Zahorodnii  ---
Git commit f038bb7f25d6445d200e4a7a76d203c07fee72a5 by Vlad Zahorodnii.
Committed on 10/06/2026 at 18:13.
Pushed by vladz into branch 'Plasma/6.7'.

Mark X11 windows ready for painting when we start managing or tracking them

Technically, the compositor may see the actual window contents slightly
later. To handle such a case, kwin sends a sync request.

However, it may happen that a window never becomes ready for painting.
It can lead to problems if an effect wants to animate such a window.
Effects usually reference windows to prevent from getting deleted, and
animations are advanced when the window is visible. In other words, kwin
will get stuck with a zombie window.

There are definitely many options that we could use to address this
issue, but most of them will either be too cumbersome or lead to
other regressions.

On a second look, if we make a window ready for painting right off the
bat, it doesn't look that bad. There are no glitchy pixels or anything
like that. So this change pivots for that approach.

Co-authored-by: Xaver Hugl 
(cherry picked from commit 3d770c8650a70eb2128ee38e89d8360c15b82191)

M  +0-4autotests/integration/dont_crash_aurorae_destroy_deco.cpp
M  +0-3autotests/integration/effects/translucency_test.cpp
M  +0-8autotests/integration/window_rules_test.cpp
M  +0-1autotests/integration/xwayland_dnd_test.cpp
M  +0-5autotests/integration/xwayland_input_test.cpp
M  +0-1autotests/integration/xwayland_selection_test.cpp
M  +3-19   src/x11window.cpp

https://invent.kde.org/plasma/kwin/-/commit/f038bb7f25d6445d200e4a7a76d203c07fee72a5

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 519789] Focus steal across virtual desktops breaks effects and functionality on all but one virtual desktop

2026-06-10 Thread Vlad Zahorodnii
https://bugs.kde.org/show_bug.cgi?id=519789

Vlad Zahorodnii  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
  Latest Commit||https://invent.kde.org/plas
   ||ma/kwin/-/commit/3d770c8650
   ||a70eb2128ee38e89d8360c15b82
   ||191

--- Comment #10 from Vlad Zahorodnii  ---
Git commit 3d770c8650a70eb2128ee38e89d8360c15b82191 by Vlad Zahorodnii.
Committed on 10/06/2026 at 17:52.
Pushed by vladz into branch 'master'.

Mark X11 windows ready for painting when we start managing or tracking them

Technically, the compositor may see the actual window contents slightly
later. To handle such a case, kwin sends a sync request.

However, it may happen that a window never becomes ready for painting.
It can lead to problems if an effect wants to animate such a window.
Effects usually reference windows to prevent from getting deleted, and
animations are advanced when the window is visible. In other words, kwin
will get stuck with a zombie window.

There are definitely many options that we could use to address this
issue, but most of them will either be too cumbersome or lead to
other regressions.

On a second look, if we make a window ready for painting right off the
bat, it doesn't look that bad. There are no glitchy pixels or anything
like that. So this change pivots for that approach.

Co-authored-by: Xaver Hugl 

M  +0-4autotests/integration/dont_crash_aurorae_destroy_deco.cpp
M  +0-3autotests/integration/effects/translucency_test.cpp
M  +0-8autotests/integration/window_rules_test.cpp
M  +0-1autotests/integration/xwayland_dnd_test.cpp
M  +0-5autotests/integration/xwayland_input_test.cpp
M  +0-1autotests/integration/xwayland_selection_test.cpp
M  +3-19   src/x11window.cpp

https://invent.kde.org/plasma/kwin/-/commit/3d770c8650a70eb2128ee38e89d8360c15b82191

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 519789] Focus steal across virtual desktops breaks effects and functionality on all but one virtual desktop

2026-06-10 Thread Zamundaaa
https://bugs.kde.org/show_bug.cgi?id=519789

Zamundaaa  changed:

   What|Removed |Added

 CC||[email protected]

--- Comment #8 from Zamundaaa  ---
*** Bug 521208 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 519789] Focus steal across virtual desktops breaks effects and functionality on all but one virtual desktop

2026-06-10 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=519789

Nate Graham  changed:

   What|Removed |Added

 CC||[email protected]

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 519789] Focus steal across virtual desktops breaks effects and functionality on all but one virtual desktop

2026-06-10 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=519789

Bug Janitor Service  changed:

   What|Removed |Added

 Status|CONFIRMED   |ASSIGNED

--- Comment #9 from Bug Janitor Service  ---
A possibly relevant merge request was started @
https://invent.kde.org/plasma/kwin/-/merge_requests/9365

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 519789] Focus steal across virtual desktops breaks effects and functionality on all but one virtual desktop

2026-06-10 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=519789

[email protected] changed:

   What|Removed |Added

 CC||[email protected]

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 519789] Focus steal across virtual desktops breaks effects and functionality on all but one virtual desktop

2026-06-10 Thread Zamundaaa
https://bugs.kde.org/show_bug.cgi?id=519789

Zamundaaa  changed:

   What|Removed |Added

 CC||[email protected]

--- Comment #6 from Zamundaaa  ---
*** Bug 503615 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 519789] Focus steal across virtual desktops breaks effects and functionality on all but one virtual desktop

2026-06-10 Thread Zamundaaa
https://bugs.kde.org/show_bug.cgi?id=519789

Zamundaaa  changed:

   What|Removed |Added

 CC||[email protected]

--- Comment #7 from Zamundaaa  ---
*** Bug 507541 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 519789] Focus steal across virtual desktops breaks effects and functionality on all but one virtual desktop

2026-05-27 Thread Zamundaaa
https://bugs.kde.org/show_bug.cgi?id=519789

--- Comment #5 from Zamundaaa  ---
WindowItem::isVisible specifically was false, but in the debug console "hidden"
was false for the window, so it wasn't visible because of some other reason. I
can try debugging it more thoroughly next week.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 519789] Focus steal across virtual desktops breaks effects and functionality on all but one virtual desktop

2026-05-26 Thread Vlad Zahorodnii
https://bugs.kde.org/show_bug.cgi?id=519789

--- Comment #4 from Vlad Zahorodnii  ---
> that hidden window still gets animated by the open/close and fade desktop 
> effects

The window opening animations try to avoid animating hidden windows. Can you
please clarify how the window is hidden exactly? Is it that Window::isHidden()
== true or something?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 519789] Focus steal across virtual desktops breaks effects and functionality on all but one virtual desktop

2026-05-26 Thread Zamundaaa
https://bugs.kde.org/show_bug.cgi?id=519789

Zamundaaa  changed:

   What|Removed |Added

 Status|REPORTED|CONFIRMED
 Ever confirmed|0   |1
 CC||[email protected]

--- Comment #3 from Zamundaaa  ---
I can replicate this with WinSCP in Wine. It happens like this:
- WinSCP opens some window that isn't actually visible. I didn't look deeper
into why exactly, but it doesn't matter that much
- that hidden window still gets animated by the open/close and fade desktop
effects
- since the window is hidden, the animation never progresses
- until the fade desktop animation completes, it counts as an active fullscreen
effect, which blocks other effects from working

This continues even when you close the app, since open/close effects keep
deleted windows around until their animation completes... which also never
happens.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 519789] Focus steal across virtual desktops breaks effects and functionality on all but one virtual desktop

2026-05-22 Thread TraceyC
https://bugs.kde.org/show_bug.cgi?id=519789

TraceyC  changed:

   What|Removed |Added

  Component|wayland-generic |effects-various

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 519789] Focus steal across virtual desktops breaks effects and functionality on all but one virtual desktop

2026-05-07 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=519789

[email protected] changed:

   What|Removed |Added

 Status|NEEDSINFO   |REPORTED
 Resolution|WAITINGFORINFO  |---

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 519789] Focus steal across virtual desktops breaks effects and functionality on all but one virtual desktop

2026-05-06 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=519789

--- Comment #2 from [email protected] ---
(In reply to TraceyC from comment #1)
> Thanks for the bug report. We need a few more details so we can look into
> this.
> 
> 1. What applications are you using that steal focus?
> 2. Can you reproduce this with a brand new user, with the default Breeze
> theme and all default settings, except the virtual desktop, focus, animation
> and effects settings?
> 
> Thanks

Thank you for quick reply.
1. WinSCP seems to be the easiest one to reproduce it with. Another options
would be NTE (their launcher kept stealing focus every few minutes), exe
version of PuTTY, and similar.
2. I did reproduce it on a newly created user. Apparently, you don't need to
get pulled from another virtual desktop - as long as the app calls for focus,
it happens.

I've been testing thoroughly, changing features one by one, and I've figured
out the bug appears after I selected switch animation to Fade. Somehow, that
breaks things. When disabled, it returns to normal (until you enable it again).
It doesn't seem to be tied with the blur either, it's just one of the things
that get affected as a collateral.

These are the minimal required settings for bug to occur on a new user (apart
from default CachyOS changes):
- 2+ virtual desktops, switch effect set to Fade
- default blur setting from Breeze is enough to see the change

Steps to reproduce:
- open WinSCP.exe using "Wine Windows Program Loader"
- before it opens, quickly focus another window
OR
- after it opens, you can try to connect to a nonexistent FTP server, and
before it throws an error focus another window (any error message steals focus)
- if successful, switching virt. desktops using Ctrl+Meta+arrows or Pager
applet should show you all but one virt. desktop is misbehaving.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 519789] Focus steal across virtual desktops breaks effects and functionality on all but one virtual desktop

2026-05-05 Thread TraceyC
https://bugs.kde.org/show_bug.cgi?id=519789

TraceyC  changed:

   What|Removed |Added

 CC||[email protected]
 Resolution|--- |WAITINGFORINFO
   See Also||https://bugs.kde.org/show_b
   ||ug.cgi?id=511798
 Status|REPORTED|NEEDSINFO
  Version First|unspecified |6.6.4
Reported In||

--- Comment #1 from TraceyC  ---
Thanks for the bug report. We need a few more details so we can look into this.

1. What applications are you using that steal focus?
2. Can you reproduce this with a brand new user, with the default Breeze theme
and all default settings, except the virtual desktop, focus, animation and
effects settings?

Thanks

-- 
You are receiving this mail because:
You are watching all bug changes.