removed redundant if-statement

This commit is contained in:
Mathias Gumz 2010-09-08 11:19:49 +02:00
parent df2f51b7b6
commit 1e8fe2bc14

View file

@ -679,14 +679,12 @@ void Ewmh::setupClient(WinClient &winclient) {
} else if (winclient.isTransient()) {
// if _NET_WM_WINDOW_TYPE not set and this window
// has transient_for the type must be set to _NET_WM_WINDOW_TYPE_DIALOG
if (winclient.isTransient()) {
type = WindowState::TYPE_DIALOG;
winclient.
changeProperty(m_net->wm_window_type,
XA_ATOM, 32, PropModeReplace,
(unsigned char*)&m_net->wm_window_type_dialog, 1);
type = WindowState::TYPE_DIALOG;
winclient.
changeProperty(m_net->wm_window_type,
XA_ATOM, 32, PropModeReplace,
(unsigned char*)&m_net->wm_window_type_dialog, 1);
}
}
winclient.setWindowType(type);