https://bugs.kde.org/show_bug.cgi?id=447845

Nicolas Fella <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/plasma-workspace/commit/ |ma/plasma-workspace/-/commi
                   |7b94f03c0f5fec052454a1c8d6f |t/47b52acb9551cfcf4b5ebb8a6
                   |aec0aff2ce0cb               |2fa239d6d2151b9
             Status|ASSIGNED                    |RESOLVED

--- Comment #51 from Nicolas Fella <[email protected]> ---
Git commit 47b52acb9551cfcf4b5ebb8a62fa239d6d2151b9 by Nicolas Fella.
Committed on 19/11/2026 at 11:28.
Pushed by nicolasfella into branch 'master'.

libtaskmanager: Rewrite desktop file mapping to be more precise

Currently the data we get from KWin mixes a few things together,
which makes proper mapping hard and error-prone.

With a new version of the plasmawindowmanagement protocol we get
information that is more fine-grained and correct. Use it to rewrite
the logic to be more precise and easy to follow.

It keeps most of the spirit of the old logic, but more streamlined
and easy to follow.

Checked are, in order:
- The window's appId against the service's desktopEntryName
- The appId being a file path
- The window's resource name against StartupWMClass
- The window's resource class against StartupWMClass
- The window's appId against the service's name
- Information from the app's environment
- Information based on the PID

Adjust test cases against the new data sources and drop some redundant
test cases.

D  +0    -5    libtaskmanager/autotests/data/applications/brave-browser.desktop
D  +0    -5   
libtaskmanager/autotests/data/applications/brave-efmjfjelnicpmdcmfikempdhlmainjcb-Default.desktop
A  +10   -0   
libtaskmanager/autotests/data/applications/chrome-mlbnfdlkgcjnjnjfliemlppklmpchgib-Default.desktop
A  +10   -0   
libtaskmanager/autotests/data/applications/chromium-browser.desktop
D  +0    -15  
libtaskmanager/autotests/data/applications/com.spotify.Client.desktop
M  +20   -21   libtaskmanager/autotests/tasktoolstest.cpp
M  +59   -60   libtaskmanager/tasktools.cpp
M  +2    -1    libtaskmanager/tasktools.h
M  +7    -2    libtaskmanager/waylandtasksmodel.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/47b52acb9551cfcf4b5ebb8a62fa239d6d2151b9

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

Reply via email to