summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Shape.cc28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/Shape.cc b/src/Shape.cc
index 8954f3f..efc47fd 100644
--- a/src/Shape.cc
+++ b/src/Shape.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Shape.cc,v 1.3 2003/08/13 22:52:35 fluxgen Exp $ 22// $Id: Shape.cc,v 1.4 2003/08/24 15:37:12 fluxgen Exp $
23 23
24#include "Shape.hh" 24#include "Shape.hh"
25#include "FbWindow.hh" 25#include "FbWindow.hh"
@@ -193,3 +193,29 @@ void Shape::setWindow(FbTk::FbWindow &win) {
193 m_win = &win; 193 m_win = &win;
194 update(); 194 update();
195} 195}
196
197void Shape::setShapeNotify(const FbTk::FbWindow &win) {
198#ifdef SHAPE
199 XShapeSelectInput(FbTk::App::instance()->display(),
200 win.window(), ShapeNotifyMask);
201#endif // SHAPE
202}
203
204bool Shape::isShaped(const FbTk::FbWindow &win) {
205 int shaped = 0;
206
207#ifdef SHAPE
208 int not_used;
209 unsigned int not_used2;
210 XShapeQueryExtents(FbTk::App::instance()->display(),
211 win.window(),
212 &shaped, /// bShaped
213 &not_used, &not_used, // xbs, ybs
214 &not_used2, &not_used2, // wbs, hbs
215 &not_used, // cShaped
216 &not_used, &not_used, // xcs, ycs
217 &not_used2, &not_used2); // wcs, hcs
218#endif // SHAPE
219
220 return (shaped != 0 ? true : false);
221}