summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-09-10 17:03:29 +0000
committerDana Jansens <danakj@orodu.net>2003-09-10 17:03:29 +0000
commite1b6c6dd90b32b4fb571005a7d7bd642a053d6c9 (patch)
tree20d7919ce09f96b18e6778bc32805973c4501f79
parent67ba3e2f3be02c1886694a506ee3c1fc4a67c022 (diff)
use theme.show_handle
-rw-r--r--openbox/frame.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/openbox/frame.c b/openbox/frame.c
index cbb6dfda..483b1066 100644
--- a/openbox/frame.c
+++ b/openbox/frame.c
@@ -271,7 +271,8 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
if (self->decorations & OB_FRAME_DECOR_TITLEBAR)
self->innersize.top += ob_rr_theme->title_height + self->rbwidth +
(self->rbwidth - self->bwidth);
- if (self->decorations & OB_FRAME_DECOR_HANDLE)
+ if (self->decorations & OB_FRAME_DECOR_HANDLE &&
+ ob_rr_theme->show_handle)
self->innersize.bottom += ob_rr_theme->handle_height +
self->rbwidth + (self->rbwidth - self->bwidth);
@@ -312,7 +313,9 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
layout_title(self);
if (!fake) {
- if (self->decorations & OB_FRAME_DECOR_HANDLE) {
+ if (self->decorations & OB_FRAME_DECOR_HANDLE &&
+ ob_rr_theme->show_handle)
+ {
XMoveResizeWindow(ob_display, self->handle,
-self->bwidth, FRAME_HANDLE_Y(self),
self->width, ob_rr_theme->handle_height);