mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-28 13:43:37 +03:00
Avoided duplicate logging of screen size on win32.
This commit is contained in:
parent
d9387dbed7
commit
5a990691ca
@ -1168,6 +1168,8 @@ CMSWindowsScreen::onDisplayChange()
|
||||
|
||||
// send new screen info
|
||||
sendEvent(getShapeChangedEvent());
|
||||
|
||||
LOG((CLOG_DEBUG "screen shape: %d,%d %dx%d %s", m_x, m_y, m_w, m_h, m_multimon ? "(multi-monitor)" : ""));
|
||||
}
|
||||
|
||||
return true;
|
||||
@ -1259,7 +1261,6 @@ CMSWindowsScreen::updateScreenShape()
|
||||
// check for multiple monitors
|
||||
m_multimon = (m_w != GetSystemMetrics(SM_CXSCREEN) ||
|
||||
m_h != GetSystemMetrics(SM_CYSCREEN));
|
||||
LOG((CLOG_DEBUG "screen shape: %d,%d %dx%d %s", m_x, m_y, m_w, m_h, m_multimon ? "(multi-monitor)" : ""));
|
||||
|
||||
// tell the desks
|
||||
m_desks->setShape(m_x, m_y, m_w, m_h, m_xCenter, m_yCenter, m_multimon);
|
||||
|
Loading…
Reference in New Issue
Block a user