aboutsummaryrefslogtreecommitdiff
path: root/src/Ewmh.cc
diff options
context:
space:
mode:
authorsimonb <simonb>2006-06-26 11:45:14 (GMT)
committersimonb <simonb>2006-06-26 11:45:14 (GMT)
commit6e60c53ae7fbffa034da952e061f5a81d0f082be (patch)
treef0214f76a373136fb90734e7e9484c1268f3bc4a /src/Ewmh.cc
parentee02bc2258595060a4b1ee0bcab5a76c6a9a5af2 (diff)
downloadfluxbox-6e60c53ae7fbffa034da952e061f5a81d0f082be.zip
fluxbox-6e60c53ae7fbffa034da952e061f5a81d0f082be.tar.bz2
fix _NET_FRAME_EXTENTS
Diffstat (limited to 'src/Ewmh.cc')
-rw-r--r--src/Ewmh.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/Ewmh.cc b/src/Ewmh.cc
index 15caab0..27c938b 100644
--- a/src/Ewmh.cc
+++ b/src/Ewmh.cc
@@ -1249,11 +1249,16 @@ void Ewmh::setupState(FluxboxWindow &win) {
1249} 1249}
1250 1250
1251void Ewmh::updateFrameExtents(FluxboxWindow &win) { 1251void Ewmh::updateFrameExtents(FluxboxWindow &win) {
1252 /* Frame extents are basically the amount the window manager frame
1253 protrudes from the client window, on left, right, top, bottom
1254 (it is independent of window position).
1255 */
1252 int extents[4]; 1256 int extents[4];
1253 extents[0] = win.frame().x(); 1257 // our frames currently don't protrude from left/right
1254 extents[1] = win.frame().x() + win.frame().width(); 1258 extents[0] = 0;
1255 extents[2] = win.frame().y(); 1259 extents[1] = 0;
1256 extents[3] = win.frame().y() + win.frame().height(); 1260 extents[2] = win.frame().titlebarHeight();
1261 extents[3] = win.frame().handleHeight();
1257 1262
1258 FluxboxWindow::ClientList::iterator it = win.clientList().begin(); 1263 FluxboxWindow::ClientList::iterator it = win.clientList().begin();
1259 FluxboxWindow::ClientList::iterator it_end = win.clientList().end(); 1264 FluxboxWindow::ClientList::iterator it_end = win.clientList().end();