diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2010-09-08 09:19:49 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2010-09-08 09:19:49 (GMT) |
commit | 1e8fe2bc14856fa16508686a28a85e72cb0e422c (patch) | |
tree | 8a6f17163f2916ef064823d107991946244a3cd2 /src | |
parent | df2f51b7b6b717e1e717a8afcdb453e2d6b6dbbd (diff) | |
download | fluxbox-1e8fe2bc14856fa16508686a28a85e72cb0e422c.zip fluxbox-1e8fe2bc14856fa16508686a28a85e72cb0e422c.tar.bz2 |
removed redundant if-statement
Diffstat (limited to 'src')
-rw-r--r-- | src/Ewmh.cc | 12 |
1 files 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) { | |||
679 | } else if (winclient.isTransient()) { | 679 | } else if (winclient.isTransient()) { |
680 | // if _NET_WM_WINDOW_TYPE not set and this window | 680 | // if _NET_WM_WINDOW_TYPE not set and this window |
681 | // has transient_for the type must be set to _NET_WM_WINDOW_TYPE_DIALOG | 681 | // has transient_for the type must be set to _NET_WM_WINDOW_TYPE_DIALOG |
682 | if (winclient.isTransient()) { | 682 | type = WindowState::TYPE_DIALOG; |
683 | type = WindowState::TYPE_DIALOG; | 683 | winclient. |
684 | winclient. | 684 | changeProperty(m_net->wm_window_type, |
685 | changeProperty(m_net->wm_window_type, | 685 | XA_ATOM, 32, PropModeReplace, |
686 | XA_ATOM, 32, PropModeReplace, | 686 | (unsigned char*)&m_net->wm_window_type_dialog, 1); |
687 | (unsigned char*)&m_net->wm_window_type_dialog, 1); | ||
688 | 687 | ||
689 | } | ||
690 | } | 688 | } |
691 | winclient.setWindowType(type); | 689 | winclient.setWindowType(type); |
692 | 690 | ||