diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-04 07:04:23 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-04 07:04:23 +0000 |
| commit | 8735c12d9633738a5150c451457471d797fa9bf1 (patch) | |
| tree | 24616973540d34862310da88d539dd3790d832a3 /src/client.cc | |
| parent | 7ec03b895e746bcf165dacd9141b981bd762cc2d (diff) | |
shape works again. updating the delete_window protocol update the decor.
Diffstat (limited to 'src/client.cc')
| -rw-r--r-- | src/client.cc | 7 |
1 files changed, 5 insertions, 2 deletions
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 |
