aboutsummaryrefslogtreecommitdiff
path: root/src/CommandDialog.cc
diff options
context:
space:
mode:
authormarkt <markt>2006-07-25 21:54:58 (GMT)
committermarkt <markt>2006-07-25 21:54:58 (GMT)
commit9229f8bc9ceae2505d7715cdea6e75aeb1b2c78b (patch)
treeee9b35fae0e6d557244899fd674fa1ac37d85719 /src/CommandDialog.cc
parent887fea4510e5834197bb70101393fb640a66899a (diff)
downloadfluxbox_pavel-9229f8bc9ceae2505d7715cdea6e75aeb1b2c78b.zip
fluxbox_pavel-9229f8bc9ceae2505d7715cdea6e75aeb1b2c78b.tar.bz2
don't revert focus away from command dialogs
Diffstat (limited to 'src/CommandDialog.cc')
-rw-r--r--src/CommandDialog.cc3
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
89void CommandDialog::hide() { 91void 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())