From 1e8fe2bc14856fa16508686a28a85e72cb0e422c Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Wed, 8 Sep 2010 11:19:49 +0200 Subject: removed redundant if-statement --- src/Ewmh.cc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/Ewmh.cc b/src/Ewmh.cc index 3a47132..441c849 100644 --- a/src/Ewmh.cc +++ b/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); -- cgit v0.11.2