From 8735c12d9633738a5150c451457471d797fa9bf1 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 4 Jan 2003 07:04:23 +0000 Subject: shape works again. updating the delete_window protocol update the decor. --- src/client.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/client.cc') diff --git a/src/client.cc b/src/client.cc index 54f6561b..289fcf16 100644 --- a/src/client.cc +++ b/src/client.cc @@ -339,7 +339,8 @@ void OBClient::updateProtocols() if (proto[i] == property->atom(otk::OBProperty::wm_delete_window)) { _decorations |= Decor_Close; _functions |= Func_Close; - // XXX: update the decor? + if (frame) + frame->adjustSize(); // update the decorations } else if (proto[i] == property->atom(otk::OBProperty::wm_take_focus)) // if this protocol is requested, then the window will be notified // by the window manager whenever it receives focus @@ -785,16 +786,18 @@ void OBClient::clientMessageHandler(const XClientMessageEvent &e) property->atom(otk::OBProperty::net_active_window)) { focus(); Openbox::instance->screen(_screen)->restack(true, this); // raise + } else { } } -#if defined(SHAPE) || defined(DOXYGEN_IGNORE) +#if defined(SHAPE) void OBClient::shapeHandler(const XShapeEvent &e) { otk::OtkEventHandler::shapeHandler(e); _shaped = e.shaped; + frame->adjustShape(); } #endif -- cgit v1.2.3