all repos — fluxbox @ 1e8fe2bc14856fa16508686a28a85e72cb0e422c

custom fork of the fluxbox windowmanager

removed redundant if-statement
Mathias Gumz akira at fluxbox dot org
commit

1e8fe2bc14856fa16508686a28a85e72cb0e422c

parent

df2f51b7b6b717e1e717a8afcdb453e2d6b6dbbd

1 files changed, 5 insertions(+), 7 deletions(-)

jump to
M src/Ewmh.ccsrc/Ewmh.cc

@@ -679,14 +679,12 @@ XFree(data);

} 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);