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

Window title not synced with active window #30

Open
frasty opened this issue Apr 24, 2024 · 9 comments
Open

Window title not synced with active window #30

frasty opened this issue Apr 24, 2024 · 9 comments

Comments

@frasty
Copy link

frasty commented Apr 24, 2024

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

@antroids
Copy link
Owner

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
Copy link
Owner

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

@frasty
Copy link
Author

frasty commented Apr 24, 2024

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

@antroids
Copy link
Owner

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?

@frasty
Copy link
Author

frasty commented Apr 24, 2024

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

@antroids
Copy link
Owner

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
Copy link
Owner

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 added a commit that referenced this issue Sep 24, 2024
@antroids
Copy link
Owner

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
Copy link
Owner

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 added a commit that referenced this issue Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants