fix(ewmh): Check success of reply

This commit is contained in:
Michael Carlberg
2016-11-26 09:51:06 +01:00
parent 3413c4a463
commit 0d4a24ef8e
2 changed files with 16 additions and 9 deletions

View File

@ -44,7 +44,7 @@ namespace modules {
if (!ewmh_util::supports(m_ewmh.get(), m_ewmh->_NET_DESKTOP_VIEWPORT) && m_pinworkspaces) {
throw module_error("The WM does not support _NET_DESKTOP_VIEWPORT (required when `pin-workspaces = true`)");
} else if (!m_pinworkspaces) {
m_monitorsupport = true;
m_monitorsupport = false;
}
// Get list of monitors