aboutsummaryrefslogtreecommitdiff
path: root/src/FocusControl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FocusControl.cc')
-rw-r--r--src/FocusControl.cc18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/FocusControl.cc b/src/FocusControl.cc
index 664d41d..f0d1387 100644
--- a/src/FocusControl.cc
+++ b/src/FocusControl.cc
@@ -223,24 +223,6 @@ WinClient *FocusControl::lastFocusedWindow(FluxboxWindow &group, WinClient *igno
223 return 0; 223 return 0;
224} 224}
225 225
226void FocusControl::raiseFocus() {
227 bool have_focused = false;
228
229 // set have_focused if the currently focused window
230 // is on this screen
231 if (focusedWindow()) {
232 if (focusedWindow()->screen().screenNumber() == m_screen.screenNumber()) {
233 have_focused = true;
234 }
235 }
236
237 // if we have a focused window on this screen and
238 // number of windows is greater than one raise the focused window
239 if (m_screen.currentWorkspace()->numberOfWindows() > 1 && have_focused)
240 focusedWindow()->raise();
241
242}
243
244void FocusControl::setScreenFocusedWindow(WinClient &win_client) { 226void FocusControl::setScreenFocusedWindow(WinClient &win_client) {
245 227
246 // raise newly focused window to the top of the focused list 228 // raise newly focused window to the top of the focused list