replacing some instances of focusedWindow()->fbwindow() with focusedFbWindow()
This commit is contained in:
parent
e1fdf51f4e
commit
c929da4054
4 changed files with 14 additions and 25 deletions
|
@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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 @@ void GoToTabCmd::real_execute() {
|
|||
}
|
||||
|
||||
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 @@ WinClient &WindowHelperCmd::winclient() {
|
|||
|
||||
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) :
|
||||
|
|
|
@ -1057,11 +1057,8 @@ void BScreen::changeWorkspaceID(unsigned int id) {
|
|||
|
||||
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);
|
||||
|
||||
|
|
|
@ -91,11 +91,9 @@ void DirFocusCmd::execute() {
|
|||
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() {
|
||||
|
|
Loading…
Reference in a new issue