Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-shell-notification-center
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-shell-notification-center
Commits
009d8c3c
Verified
Commit
009d8c3c
authored
Apr 18, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backlight: don't trigger OSD on hardware-initiated changes
parent
e6cb6f05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
backlight.vala
src/controlCenter/widgets/backlight/backlight.vala
+8
-0
No files found.
src/controlCenter/widgets/backlight/backlight.vala
View file @
009d8c3c
...
...
@@ -205,6 +205,8 @@ namespace XimperShellNotificationCenter.Widgets {
src
.
row
=
outer
;
src
.
scale
=
scl
;
bool
updating_from_hw
=
false
;
// Connect signals
if
(
src
.
sysfs
!=
null
)
{
unowned
BacklightUtil
util
=
src
.
sysfs
;
...
...
@@ -213,10 +215,13 @@ namespace XimperShellNotificationCenter.Widgets {
outer
.
set_visible
(
false
);
source_hidden
();
}
else
{
updating_from_hw
=
true
;
scl
.
set_value
(
percent
);
updating_from_hw
=
false
;
}
});
scl
.
value_changed
.
connect
(()
=>
{
if
(
updating_from_hw
)
return
;
util
.
set_brightness
.
begin
(
(
float
)
scl
.
get_value
());
scl
.
tooltip_text
=
...
...
@@ -232,10 +237,13 @@ namespace XimperShellNotificationCenter.Widgets {
outer
.
set_visible
(
false
);
source_hidden
();
}
else
{
updating_from_hw
=
true
;
scl
.
set_value
(
percent
);
updating_from_hw
=
false
;
}
});
scl
.
value_changed
.
connect
(()
=>
{
if
(
updating_from_hw
)
return
;
ddc
.
set_brightness
.
begin
(
(
float
)
scl
.
get_value
());
scl
.
tooltip_text
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment