Summary: | Multiple Brightness and Color widgets do not stay in sync | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | mk safavi <mksafavi> |
Component: | Brightness and Color | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | 4wy78uwh, jpetso, natalie_clarius, nate |
Priority: | NOR | ||
Version: | 6.2.2 | ||
Target Milestone: | 1.0 | ||
Platform: | NixOS | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/powerdevil/-/commit/1197dc8a936b46578560f87764d98e37db0c6a4c | Version Fixed In: | 6.2.4 |
Sentry Crash Report: |
Description
mk safavi
2024-10-31 22:54:30 UTC
Can reproduce. A possibly relevant merge request was started @ https://invent.kde.org/plasma/powerdevil/-/merge_requests/462 Git commit 5a06866f063b9c6577c89f6643236eeb0405afe5 by Jakob Petsovits. Committed on 15/11/2024 at 19:53. Pushed by jpetso into branch 'master'. 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. M +6 -3 applets/brightness/plugin/screenbrightnesscontrol.cpp M +1 -0 applets/brightness/plugin/screenbrightnesscontrol.h https://invent.kde.org/plasma/powerdevil/-/commit/5a06866f063b9c6577c89f6643236eeb0405afe5 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 |