diff options
Diffstat (limited to 'src/UnderMousePlacement.cc')
-rw-r--r-- | src/UnderMousePlacement.cc | 4 |
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 | ||
30 | bool UnderMousePlacement::placeWindow(const std::list<FluxboxWindow *> &list, | 30 | bool 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); |