diff options
Diffstat (limited to 'src/Window.cc')
-rw-r--r-- | src/Window.cc | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/src/Window.cc b/src/Window.cc index 3920367..1d2423d 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Window.cc,v 1.220 2003/08/24 10:46:56 fluxgen Exp $ | 25 | // $Id: Window.cc,v 1.221 2003/08/24 15:14:41 fluxgen Exp $ |
26 | 26 | ||
27 | #include "Window.hh" | 27 | #include "Window.hh" |
28 | 28 | ||
@@ -339,23 +339,13 @@ void FluxboxWindow::init() { | |||
339 | 339 | ||
340 | // check for shape extension and whether the window is shaped | 340 | // check for shape extension and whether the window is shaped |
341 | m_shaped = false; | 341 | m_shaped = false; |
342 | #ifdef SHAPE | 342 | |
343 | if (Fluxbox::instance()->haveShape()) { | 343 | if (Fluxbox::instance()->haveShape()) { |
344 | Display *disp = FbTk::App::instance()->display(); | 344 | Shape::setShapeNotify(winClient()); |
345 | int not_used; | 345 | m_shaped = Shape::isShaped(winClient()); |
346 | unsigned int not_used2; | ||
347 | int shaped; | ||
348 | XShapeSelectInput(disp, m_client->window(), ShapeNotifyMask); | ||
349 | XShapeQueryExtents(disp, m_client->window(), | ||
350 | &shaped, /// bShaped | ||
351 | ¬_used, ¬_used, // xbs, ybs | ||
352 | ¬_used2, ¬_used2, // wbs, hbs | ||
353 | ¬_used, // cShaped | ||
354 | ¬_used, ¬_used, // xcs, ycs | ||
355 | ¬_used2, ¬_used2); // wcs, hcs | ||
356 | m_shaped = (shaped != 0 ? true : false); | ||
357 | } | 346 | } |
358 | #endif // SHAPE | 347 | |
348 | frame().setUseShape(!m_shaped); | ||
359 | 349 | ||
360 | //!! TODO init of client should be better | 350 | //!! TODO init of client should be better |
361 | // we don't want to duplicate code here and in attachClient | 351 | // we don't want to duplicate code here and in attachClient |