replacing some instances of focusedWindow()->fbwindow() with focusedFbWindow()
markt markt
4 files changed,
14 insertions(+),
25 deletions(-)
M
src/CommandDialog.cc
→
src/CommandDialog.cc
@@ -90,9 +90,8 @@ void CommandDialog::hide() {
FbTk::FbWindow::hide(); // return focus to fluxbox window - if (FocusControl::focusedWindow() && - FocusControl::focusedWindow()->fbwindow()) - FocusControl::focusedWindow()->fbwindow()->setInputFocus(); + if (FocusControl::focusedFbWindow()) + FocusControl::focusedFbWindow()->setInputFocus(); }
M
src/CurrentWindowCmd.cc
→
src/CurrentWindowCmd.cc
@@ -34,9 +34,9 @@
CurrentWindowCmd::CurrentWindowCmd(Action act):m_action(act) { } void CurrentWindowCmd::execute() { - WinClient *client = FocusControl::focusedWindow(); - if (client && client->fbwindow()) - (client->fbwindow()->*m_action)(); + FluxboxWindow *win = FocusControl::focusedFbWindow(); + if (win) + (win->*m_action)(); }@@ -97,8 +97,7 @@ fbwindow().setCurrentClient(**it, true);
} void WindowHelperCmd::execute() { - WinClient *client = FocusControl::focusedWindow(); - if (client && client->fbwindow()) // guarantee that fbwindow() exists too + if (FocusControl::focusedFbWindow()) // guarantee that fbwindow() exists too real_execute(); }@@ -109,7 +108,7 @@ }
FluxboxWindow &WindowHelperCmd::fbwindow() { // will exist from execute above - return *FocusControl::focusedWindow()->fbwindow(); + return *FocusControl::focusedFbWindow(); } MoveCmd::MoveCmd(const int step_size_x, const int step_size_y) :
M
src/Screen.cc
→
src/Screen.cc
@@ -1057,11 +1057,8 @@ return;
FbTk::App::instance()->sync(false); - WinClient *focused_client = FocusControl::focusedWindow(); - FluxboxWindow *focused = 0; - if (focused_client) - focused = focused_client->fbwindow(); - + FluxboxWindow *focused = FocusControl::focusedFbWindow(); + if (focused && focused->isMoving()) { if (doOpaqueMove()) reassociateWindow(focused, id, true);@@ -1113,12 +1110,8 @@ void BScreen::sendToWorkspace(unsigned int id, FluxboxWindow *win, bool changeWS) {
if (! m_current_workspace || id >= m_workspaces_list.size()) return; - if (!win) { - WinClient *client = FocusControl::focusedWindow(); - if (client) - win = client->fbwindow(); - } - + if (!win) + win = FocusControl::focusedFbWindow(); FbTk::App::instance()->sync(false);
M
src/WorkspaceCmd.cc
→
src/WorkspaceCmd.cc
@@ -91,11 +91,9 @@ BScreen *screen = Fluxbox::instance()->keyScreen();
if (screen == 0) return; - WinClient *client = FocusControl::focusedWindow(); - if (client == 0 || client->fbwindow() == 0) - return; - - screen->focusControl().dirFocus(*client->fbwindow(), m_dir); + FluxboxWindow *win = FocusControl::focusedFbWindow(); + if (win) + screen->focusControl().dirFocus(*win, m_dir); } void NextWorkspaceCmd::execute() {