aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-09-08 09:19:49 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-09-08 09:19:49 (GMT)
commit1e8fe2bc14856fa16508686a28a85e72cb0e422c (patch)
tree8a6f17163f2916ef064823d107991946244a3cd2
parentdf2f51b7b6b717e1e717a8afcdb453e2d6b6dbbd (diff)
downloadfluxbox_paul-1e8fe2bc14856fa16508686a28a85e72cb0e422c.zip
fluxbox_paul-1e8fe2bc14856fa16508686a28a85e72cb0e422c.tar.bz2
removed redundant if-statement
-rw-r--r--src/Ewmh.cc12
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