Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Geithner, Thomas
desk-control
Commits
d4b168ae
Commit
d4b168ae
authored
Sep 20, 2017
by
Mall, Anon
Browse files
notify on height change
parent
e381da02
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/desk-controller.cpp
View file @
d4b168ae
...
...
@@ -222,6 +222,7 @@ LinakDesk::doDeskControl(void)
{
unique_lock
<
mutex
>
lck
(
m_cmdMutex
);
int
target_height
=
m_currentHeight
;
int
last_height
=
m_currentHeight
;
lck
.
unlock
();
while
(
true
)
{
...
...
@@ -249,6 +250,14 @@ LinakDesk::doDeskControl(void)
m_currentHeight
=
getInternalHeight
();
lck
.
unlock
();
cout
<<
"currentHeight="
<<
m_currentHeight
<<
endl
;
if
(
m_currentHeight
!=
last_height
)
{
for
(
auto
f
:
m_frontends
)
{
f
.
get
().
updateHeight
(
m_currentHeight
);
}
last_height
=
m_currentHeight
;
}
}
}
while
(
m_finished
==
true
);
target_height
-=
m_offset
;
...
...
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