diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-07-26 08:37:15 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-07-26 08:37:15 +0000 |
| commit | 83b6c9bfa0ccc8088e4c65e5a2cf139933959565 (patch) | |
| tree | f27f3a710d25eceb2027001f14c05fcd8936c1fe /src/Slit.cc | |
| parent | cd6c4ebcb27b796b214296aefd78a41235dd8640 (diff) | |
sync with bb-cvs
Diffstat (limited to 'src/Slit.cc')
| -rw-r--r-- | src/Slit.cc | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/Slit.cc b/src/Slit.cc index 5a6c3221..c15f66c4 100644 --- a/src/Slit.cc +++ b/src/Slit.cc @@ -133,6 +133,17 @@ void Slit::addClient(Window w) { client->rect.setSize(64, 64); } + Atom *proto; + int num_return = 0; + if (XGetWMProtocols(display, client->window, &proto, &num_return)) { + for (int i = 0; i < num_return; ++i) { + if (proto[i] == + blackbox->getXAtom()->getAtom(XAtom::blackbox_structure_messages)) { + screen->addNetizen(new Netizen(screen, client->window)); + } + } + } + XSetWindowBorderWidth(display, client->window, 0); XGrabServer(display); @@ -466,12 +477,17 @@ void Slit::updateStrut(void) { case TopCenter: case TopLeft: case TopRight: - strut.top = getExposedHeight() + border_width; + strut.top = frame.rect.top() + getExposedHeight() + border_width; break; case BottomCenter: case BottomLeft: case BottomRight: - strut.bottom = getExposedHeight() + border_width; + int pos; + if (do_auto_hide) + pos = frame.y_hidden; + else + pos = frame.rect.y(); + strut.bottom = (screen->getRect().bottom() - pos); break; case CenterLeft: strut.left = getExposedWidth() + border_width; |
