diff options
author | simonb <simonb> | 2006-03-20 11:31:24 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-03-20 11:31:24 (GMT) |
commit | f2d3fff4d4db7677814379139dcec3e31fc68047 (patch) | |
tree | 95bd9dc99986104613acc37945895b0812e63801 /src/ScreenPlacement.cc | |
parent | eba0040373179cc6d34f8ee132209f2fa01c2889 (diff) | |
download | fluxbox_pavel-f2d3fff4d4db7677814379139dcec3e31fc68047.zip fluxbox_pavel-f2d3fff4d4db7677814379139dcec3e31fc68047.tar.bz2 |
external tabs
Diffstat (limited to 'src/ScreenPlacement.cc')
-rw-r--r-- | src/ScreenPlacement.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ScreenPlacement.cc b/src/ScreenPlacement.cc index 51ade90..ef1f243 100644 --- a/src/ScreenPlacement.cc +++ b/src/ScreenPlacement.cc | |||
@@ -113,15 +113,14 @@ bool ScreenPlacement::placeWindow(const std::vector<FluxboxWindow *> &windowlist | |||
113 | 113 | ||
114 | 114 | ||
115 | 115 | ||
116 | int win_w = win.width() + win.fbWindow().borderWidth()*2, | 116 | int win_w = win.width() + win.fbWindow().borderWidth()*2 + win.widthOffset(), |
117 | win_h = win.height() + win.fbWindow().borderWidth()*2; | 117 | win_h = win.height() + win.fbWindow().borderWidth()*2 + win.heightOffset(); |
118 | |||
119 | 118 | ||
120 | // make sure the window is inside our screen(head) area | 119 | // make sure the window is inside our screen(head) area |
121 | if (place_x + win_w > head_right) | 120 | if (place_x + win_w > head_right) |
122 | place_x = (head_right - win_w) / 2; | 121 | place_x = (head_right - win_w) / 2 + win.xOffset(); |
123 | if (place_y + win_h > head_bot) | 122 | if (place_y + win_h > head_bot) |
124 | place_y = (head_bot - win_h) / 2; | 123 | place_y = (head_bot - win_h) / 2 + win.yOffset(); |
125 | 124 | ||
126 | return true; | 125 | return true; |
127 | } | 126 | } |