application-title-bar icon indicating copy to clipboard operation
application-title-bar copied to clipboard

Window title not synced with active window

Open frasty opened this issue 1 year ago • 9 comments

Occasionally the widget's window title is not synced with the active window. Have to restart plasmashell to overcome this behavior. Using application-title-bar 0.5.1 on Wayland/Plasma 6.0.4

frasty avatar Apr 24 '24 07:04 frasty

Does the context menu appear in the center of the screen? I have the same issue after resume. It is a plasma or wayland issue.

What your GPU vendor? Do you have multi-display setup?

antroids avatar Apr 24 '24 07:04 antroids

Here is the bug report: https://bugs.kde.org/show_bug.cgi?id=482185

antroids avatar Apr 24 '24 08:04 antroids

Does the context menu appear in the center of the screen? I have the same issue after resume. It is a plasma or wayland issue.

Yes, it also happend to me that the window title starts to lose its synchronization with the active focused window after resume, but only occasionally. If I click on the widget with the right mouse button the context menu appears correctly and not in the center on the screen, so it seems another issue?

What your GPU vendor? Do you have multi-display setup?

It happens on both my workstations, both with single AMD GPUs, one on Wayland with a dual monitor setup and the other on X11 with a four monitor setup. Fyi I use separate screen focus with ActiveMouseScreen=false in kwinrc

frasty avatar Apr 24 '24 08:04 frasty

Yes, it seems another issue. Could you describe how the widget works when the issue appeared? Is there the same problem with task manager widget?

antroids avatar Apr 24 '24 08:04 antroids

I'll post an update when the issue will reappear as I already restarted plasmashell but iirc I don't remember to have noticed similar problems with Icon-only task manager

frasty avatar Apr 24 '24 08:04 frasty

I'm not sure, but it seems like some applications can be associated with off-screen or already destroyed plasmashell instances or displays for some reason. I also noticed that some application can be closed when you are restarting the plasmashell.

antroids avatar Apr 24 '24 09:04 antroids

It seems something was changed in Plasma 6.1.4 with Qt 6.7.2 or even before. I cannot see the issues with detached context menu or unsyncronized TasksModel anymore.

antroids avatar Aug 23 '24 09:08 antroids

I've got this issue several times in last couple days, however I still unable to reproduce the bug. The Task Manager widget has correct data. It seems there is an inconsistency in the model and top row can be different from Active task at some moment even with single display. I've added a timer, that will trigger a resync after 0.5 seconds after last Active task update as workaround.

antroids avatar Sep 24 '24 09:09 antroids

LOL, I found the reason, and it's crazy! Screenshot_TasksModel_Debug They use time only to store Last Activated and the items in the model are sorted incorrectly until you reactivate the task opened yesterday.

antroids avatar Sep 27 '24 07:09 antroids

I just chime in to say that I am on 0.7.5 and still running in this bug after a few minutes of being logged in on PCs running Fedora 40 and Plasma 6.6.2/Qt 6.7.2. I am used to have many Firefox windows (20-30) spread on two screens and two virtual desktops and that might be triggering the issue somewhat faster. No need to restart plasmashell. Oh, and I also make use of activities. I just noticed that on desktops/screens with many windows opened it is more likely for the window title to be unsynched or to not being updated at all.

frasty avatar Oct 23 '24 09:10 frasty

After long testing I can confirm that window titles stop being synched after a few minutes when the number of open windows reaches a certain threshold. I have indeed ~~~180~~ ~80 Firefox open windows now and application title bar started to lose the synchronization with the active window in a few minutes after restoring the browser session. This doesn't happen if the number of open windows is lower than 15-20, maybe something more.

frasty avatar Dec 12 '24 08:12 frasty

Thanks! These steps to reproduce are really helpful. I've split the issue into two: #67 and #68

antroids avatar Dec 12 '24 09:12 antroids