aboutsummaryrefslogtreecommitdiff
path: root/src/UnderMousePlacement.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-10-24 17:09:26 (GMT)
committermarkt <markt>2007-10-24 17:09:26 (GMT)
commitf3afe787c1209cf1357493924a4f7eb7864def54 (patch)
treed0c0c3eca154ab538fbc1fb3c62081e9250c05bd /src/UnderMousePlacement.cc
parent74eb584a312aba21b21eccb6c49ade1571aa3740 (diff)
downloadfluxbox_pavel-f3afe787c1209cf1357493924a4f7eb7864def54.zip
fluxbox_pavel-f3afe787c1209cf1357493924a4f7eb7864def54.tar.bz2
introduced workspacename for ClientPattern, and some miscellaneous cleanup
Diffstat (limited to 'src/UnderMousePlacement.cc')
-rw-r--r--src/UnderMousePlacement.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/UnderMousePlacement.cc b/src/UnderMousePlacement.cc
index c20e988..65079cf 100644
--- a/src/UnderMousePlacement.cc
+++ b/src/UnderMousePlacement.cc
@@ -27,8 +27,7 @@
27#include "Screen.hh" 27#include "Screen.hh"
28#include "Window.hh" 28#include "Window.hh"
29 29
30bool UnderMousePlacement::placeWindow(const std::list<FluxboxWindow *> &list, 30bool UnderMousePlacement::placeWindow(const FluxboxWindow &win, int head,
31 const FluxboxWindow &win,
32 int &place_x, int &place_y) { 31 int &place_x, int &place_y) {
33 32
34 int root_x, root_y, ignore_i; 33 int root_x, root_y, ignore_i;
@@ -51,7 +50,6 @@ bool UnderMousePlacement::placeWindow(const std::list<FluxboxWindow *> &list,
51 int test_y = root_y - (win_h / 2); 50 int test_y = root_y - (win_h / 2);
52 51
53 // keep the window inside the screen 52 // keep the window inside the screen
54 int head = (signed) win.getOnHead();
55 int head_left = (signed) win.screen().maxLeft(head); 53 int head_left = (signed) win.screen().maxLeft(head);
56 int head_right = (signed) win.screen().maxRight(head); 54 int head_right = (signed) win.screen().maxRight(head);
57 int head_top = (signed) win.screen().maxTop(head); 55 int head_top = (signed) win.screen().maxTop(head);