From 9d5865a1603733e62fda7c8d61024cb05bf6792c Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 10 Nov 2002 05:54:12 +0000 Subject: support for the shape extension works! --- src/client.cc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/client.cc') diff --git a/src/client.cc b/src/client.cc index 55f2fb4c..d6111ce2 100644 --- a/src/client.cc +++ b/src/client.cc @@ -319,9 +319,13 @@ void OBClient::getShaped() if (otk::OBDisplay::shape()) { int foo; unsigned int ufoo; + int s; - XShapeQueryExtents(otk::OBDisplay::display, client.window, &_shaped, &foo, + XShapeSelectInput(otk::OBDisplay::display, _window, ShapeNotifyMask); + + XShapeQueryExtents(otk::OBDisplay::display, _window, &s, &foo, &foo, &ufoo, &ufoo, &foo, &foo, &foo, &ufoo, &ufoo); + _shaped = (s != 0); } #endif // SHAPE } @@ -649,6 +653,14 @@ void OBClient::update(const XClientMessageEvent &e) } +#if defined(SHAPE) || defined(DOXYGEN_IGNORE) +void OBClient::update(const XShapeEvent &e) +{ + _shaped = e.shaped; +} +#endif + + void OBClient::setArea(const otk::Rect &area) { _area = area; -- cgit v1.2.3