removed redundant if-statement
This commit is contained in:
parent
df2f51b7b6
commit
1e8fe2bc14
1 changed files with 5 additions and 7 deletions
12
src/Ewmh.cc
12
src/Ewmh.cc
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue