diff options
Diffstat (limited to 'src/CommandDialog.cc')
-rw-r--r-- | src/CommandDialog.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/CommandDialog.cc b/src/CommandDialog.cc index f28d789..3fab06b 100644 --- a/src/CommandDialog.cc +++ b/src/CommandDialog.cc | |||
@@ -29,6 +29,7 @@ | |||
29 | #include "WinClient.hh" | 29 | #include "WinClient.hh" |
30 | #include "CommandParser.hh" | 30 | #include "CommandParser.hh" |
31 | #include "FocusControl.hh" | 31 | #include "FocusControl.hh" |
32 | #include "fluxbox.hh" | ||
32 | 33 | ||
33 | #include "FbTk/ImageControl.hh" | 34 | #include "FbTk/ImageControl.hh" |
34 | #include "FbTk/EventManager.hh" | 35 | #include "FbTk/EventManager.hh" |
@@ -74,6 +75,7 @@ void CommandDialog::show() { | |||
74 | FbTk::FbWindow::show(); | 75 | FbTk::FbWindow::show(); |
75 | m_textbox.setInputFocus(); | 76 | m_textbox.setInputFocus(); |
76 | m_label.clear(); | 77 | m_label.clear(); |
78 | Fluxbox::instance()->setShowingDialog(true); | ||
77 | // resize to correct width, which should be the width of label text | 79 | // resize to correct width, which should be the width of label text |
78 | // no need to truncate label text in this dialog | 80 | // no need to truncate label text in this dialog |
79 | // but if label text size < 200 we set 200 | 81 | // but if label text size < 200 we set 200 |
@@ -88,6 +90,7 @@ void CommandDialog::show() { | |||
88 | 90 | ||
89 | void CommandDialog::hide() { | 91 | void CommandDialog::hide() { |
90 | FbTk::FbWindow::hide(); | 92 | FbTk::FbWindow::hide(); |
93 | Fluxbox::instance()->setShowingDialog(false); | ||
91 | 94 | ||
92 | // return focus to fluxbox window | 95 | // return focus to fluxbox window |
93 | if (FocusControl::focusedFbWindow()) | 96 | if (FocusControl::focusedFbWindow()) |