aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-08-24 15:18:09 (GMT)
committerfluxgen <fluxgen>2003-08-24 15:18:09 (GMT)
commitd1b14ad0840b7a8976f43b66f2257a13b0c70618 (patch)
tree15b463cd9a7ff25748d35dedd5a268358984e067 /src/Window.cc
parent9160cf2e9635f4b1e961d372dc52a0de39ac772d (diff)
downloadfluxbox_pavel-d1b14ad0840b7a8976f43b66f2257a13b0c70618.zip
fluxbox_pavel-d1b14ad0840b7a8976f43b66f2257a13b0c70618.tar.bz2
remove round corners for already shaped windows, i.e xmms
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc22
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 &not_used, &not_used, // xbs, ybs
352 &not_used2, &not_used2, // wbs, hbs
353 &not_used, // cShaped
354 &not_used, &not_used, // xcs, ycs
355 &not_used2, &not_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