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

Jakob Petsovits <jpe...@petsovits.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/powerdevil/-/commit/5a06 |ma/powerdevil/-/commit/1197
                   |866f063b9c6577c89f6643236ee |dc8a936b46578560f87764d98e3
                   |b0405afe5                   |7db0c6a4c

--- Comment #4 from Jakob Petsovits <jpe...@petsovits.com> ---
Git commit 1197dc8a936b46578560f87764d98e37db0c6a4c by Jakob Petsovits.
Committed on 15/11/2024 at 20:03.
Pushed by jpetso into branch 'Plasma/6.2'.

applets/brightness: Make brightness of multiple applets stay in sync

Previously, dragging the slider on one instance of the applet would
leave other instances untouched and thus out of sync. The sending
applet instance would include a hardcoded source client context
string in its `setBrightness` D-Bus method call, but *all* instances
would ignore the resulting brightness change event with this context.

To fix this, make sure that each applet instance uses a different
context string. We'll increment a number in each constructor and
use it as part of a context string template. Only the sending applet
instance will ignore brightness change events caused by its own
brightness setter call.

(cherry picked from commit 5a06866f063b9c6577c89f6643236eeb0405afe5)

M  +6    -3    applets/brightness/plugin/screenbrightnesscontrol.cpp
M  +1    -0    applets/brightness/plugin/screenbrightnesscontrol.h

https://invent.kde.org/plasma/powerdevil/-/commit/1197dc8a936b46578560f87764d98e37db0c6a4c

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

Reply via email to