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

Michail Vourlakos <mvourla...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDSINFO                   |CONFIRMED
     Ever confirmed|0                           |1
         Resolution|WAITINGFORINFO              |---

--- Comment #4 from Michail Vourlakos <mvourla...@gmail.com> ---
that makes sense...

I really thank you for this, I would had never thought it...

I will provide the technical details why this can happen and why it is
difficult to fix but I will have it in my mind until something nice and elegant
arise as a solution.

1. Each applet has a unique id
2. Latte is using multiple layouts which are independent of each other that can
have same applet ids for some cases, this is not forbidden.
3. When Latte is using Multiple layouts mode then it combines 2 and more
layouts together by creating a new temporary hidden layout that contains all
applets from these layouts and updates also their applet ids in order to not
conflict with each other.

During [3] the global shortcuts assigned to applets might become inconsistent
and as such either break the global shortcut of specific applet or create
duplicate entries.

Of course that could also happen with Single mode but it must be more rare.

----
Possible solution:
1. Latte layout(s) must become applets global shortcut activation aware.
That would mean that layouts should be informed and store for their applets
their corresponding global shortcuts.
2. When a latte layout is loaded either in single or multiple mode the layout
should update the shortcuts assigned for kglobalaccel accordingly.
----

3. If [1] and [2] are supported correctly then that would mean that we could
provide the nice visual badges the Meta+` triggers in git version to show also
for applets that have assigned global shortcuts through plasma infrastructure.

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

Reply via email to