aboutsummaryrefslogtreecommitdiff
path: root/src/Workspace.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-05-19 15:32:47 (GMT)
committerrathnor <rathnor>2003-05-19 15:32:47 (GMT)
commitb68b1c7623be09100bb1e6a0d3923d6e1c86a91a (patch)
treeee8c1f69ab45b29943565384c877df15f3a9634d /src/Workspace.cc
parent3b2afa5a305f0106baef32068066b7d41eeab777 (diff)
downloadfluxbox_pavel-b68b1c7623be09100bb1e6a0d3923d6e1c86a91a.zip
fluxbox_pavel-b68b1c7623be09100bb1e6a0d3923d6e1c86a91a.tar.bz2
xinerama updates
Diffstat (limited to 'src/Workspace.cc')
-rw-r--r--src/Workspace.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Workspace.cc b/src/Workspace.cc
index 3a662e6..db0cac2 100644
--- a/src/Workspace.cc
+++ b/src/Workspace.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Workspace.cc,v 1.66 2003/05/15 23:30:07 fluxgen Exp $ 25// $Id: Workspace.cc,v 1.67 2003/05/19 15:32:47 rathnor Exp $
26 26
27#include "Workspace.hh" 27#include "Workspace.hh"
28 28
@@ -33,6 +33,7 @@
33#include "StringUtil.hh" 33#include "StringUtil.hh"
34#include "SimpleCommand.hh" 34#include "SimpleCommand.hh"
35#include "WinClient.hh" 35#include "WinClient.hh"
36#include "FbWinFrame.hh"
36 37
37// use GNU extensions 38// use GNU extensions
38#ifndef _GNU_SOURCE 39#ifndef _GNU_SOURCE
@@ -507,10 +508,10 @@ void Workspace::placeWindow(FluxboxWindow &win) {
507 test_x = root_x - (win_w / 2); 508 test_x = root_x - (win_w / 2);
508 test_y = root_y - (win_h / 2); 509 test_y = root_y - (win_h / 2);
509 510
510 min_x = (int) screen().maxLeft(); 511 min_x = (int) screen().maxLeft(win.frame().window());
511 min_y = (int) screen().maxTop(); 512 min_y = (int) screen().maxTop(win.frame().window());
512 max_x = (int) screen().maxRight() - win_w; 513 max_x = (int) screen().maxRight(win.frame().window()) - win_w;
513 max_y = (int) screen().maxBottom() - win_h; 514 max_y = (int) screen().maxBottom(win.frame().window()) - win_h;
514 515
515 // keep the window inside the screen 516 // keep the window inside the screen
516 517