Commit d4b168ae authored by Mall, Anon's avatar Mall, Anon
Browse files

notify on height change

parent e381da02
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment