all repos — fluxbox @ 72fd5e03a48396e6feec86534d266c68a9edd915

custom fork of the fluxbox windowmanager

revert focus when closing dialogs
Mark Tiefenbruck mark@fluxbox.org
commit

72fd5e03a48396e6feec86534d266c68a9edd915

parent

38654bae459716409ad2ee7975671fc2f131c869

4 files changed, 10 insertions(+), 9 deletions(-)

jump to
M src/CommandDialog.ccsrc/CommandDialog.cc

@@ -130,7 +130,6 @@ char keychar;

XLookupString(&event, &keychar, 1, &ks, 0); if (ks == XK_Return) { - hide(); // hide and return focus to a FluxboxWindow // create Command<void> from line auto_ptr<FbTk::Command<void> > cmd(FbTk::CommandParser<void>::instance().parse(m_precommand + m_textbox.text())); if (cmd.get())
M src/FbTk/TextButton.ccsrc/FbTk/TextButton.cc

@@ -67,10 +67,10 @@ || !m_font->validOrientation(orient))

return false; invalidateBackground(); - if ((m_orientation == FbTk::ROT0 || m_orientation == FbTk::ROT180) && - (orient == FbTk::ROT90 || orient == FbTk::ROT270) || - (m_orientation == FbTk::ROT90 || m_orientation == FbTk::ROT270) && - (orient == FbTk::ROT0 || orient == FbTk::ROT180)) { + if (((m_orientation == FbTk::ROT0 || m_orientation == FbTk::ROT180) && + (orient == FbTk::ROT90 || orient == FbTk::ROT270)) || + ((m_orientation == FbTk::ROT90 || m_orientation == FbTk::ROT270) && + (orient == FbTk::ROT0 || orient == FbTk::ROT180))) { // flip width and height m_orientation = orient; resize(height(), width());
M src/Keys.ccsrc/Keys.cc

@@ -403,9 +403,9 @@ // 0x - hex

// +[1-9] - number between +1 and +9 // numbers 10 and above // - } else if (!val[argc].empty() && (isdigit(val[argc][0]) && - (isdigit(val[argc][1]) || val[argc][1] == 'x') || - val[argc][0] == '+' && isdigit(val[argc][1])) ) { + } else if (!val[argc].empty() && ((isdigit(val[argc][0]) && + (isdigit(val[argc][1]) || val[argc][1] == 'x')) || + (val[argc][0] == '+' && isdigit(val[argc][1])))) { key = strtoul(val[argc].c_str(), NULL, 0); type = KeyPress;
M src/fluxbox.hhsrc/fluxbox.hh

@@ -160,7 +160,9 @@ void attachSignals(WinClient &winclient);

void timed_reconfigure(); void revertFocus(); - void setShowingDialog(bool value) { m_showing_dialog = value; } + void setShowingDialog(bool value) { + m_showing_dialog = value; if (!value) revertFocus(); + } bool isStartup() const { return m_starting; } bool isRestarting() const { return m_restarting; }