Bug 419384 - Make the tracking of different feature of applications (geometry, title...) optional
Summary: Make the tracking of different feature of applications (geometry, title...) o...
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Unmaintained
Component: application (other bugs)
Version First Reported In: git (master)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-29 16:52 UTC by Pierpaolo Valerio
Modified: 2020-04-07 10:06 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pierpaolo Valerio 2020-03-29 16:52:26 UTC
This is a bug report in response of the discussion here: https://www.reddit.com/r/kde/comments/fpc7rt/latte_bug_fix_release_0910/flrb31d/

Right now the idea is that the window tracking feature of latte ignores plasma popups, but not windows like krunner or yakuake. This is the intended behaviour for deciding whether the panel should be transparent or not, if the transparency option is set, as those are windows positioned directly next to a top panel.

The behaviour, however, doesn't match the appmenu applet, which is set to ignore all plasma popups. So if the window-title, window-buttons and window-appmenu applet are present, opening krunner changes the behaviour of the buttons and the title applets, but the appmenu keeps referring to the previous app.

The proposed suggestion is to implement new properties such as skipTaskBar, skipSwitcher, skipPager for the LastActiveWindow class, so that the applets can ignore some apps if needed.
Comment 1 Michail Vourlakos 2020-04-07 10:05:53 UTC
this was fixed much easier. The LastActiveWindow information are NOT used from Latte window touching algorithms. They are used only for applets to use them. So I blacklisted the relevant windows
Comment 2 Michail Vourlakos 2020-04-07 10:06:29 UTC
Git commit ce245ab25372ccd647df1258609c67e928fb7f30 by Michail Vourlakos.
Committed on 07/04/2020 at 10:00.
Pushed by mvourlakos into branch 'master'.

ignore some windows in LastActiveWindow

--LastActiveWindow is providing information to
applets thus special windows that contain
the following flags:
skipTaskBar AND (skipPager OR skipSwitcher)
these windows can be totally ignored.
In such window case the LastActiveWindow used
are provided.

M  +9    -0    app/wm/tracker/lastactivewindow.cpp
M  +4    -0    app/wm/waylandinterface.cpp
M  +4    -0    app/wm/xwindowinterface.cpp

https://commits.kde.org/latte-dock/ce245ab25372ccd647df1258609c67e928fb7f30