remove round corners for already shaped windows, i.e xmms
fluxgen fluxgen
2 files changed,
9 insertions(+),
18 deletions(-)
M
src/FbWinFrame.hh
→
src/FbWinFrame.hh
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWinFrame.hh,v 1.13 2003/08/19 16:13:25 fluxgen Exp $ +// $Id: FbWinFrame.hh,v 1.14 2003/08/24 15:18:09 fluxgen Exp $ #ifndef FBWINFRAME_HH #define FBWINFRAME_HH@@ -134,7 +134,7 @@ void handleEvent(XEvent &event);
//@} void reconfigure(); - + void setUseShape(bool value); /** @name accessors */@@ -281,6 +281,7 @@ FbWinFrame &m_frame;
}; ThemeListener m_themelistener; std::auto_ptr<Shape> m_shape; + bool m_disable_shape; }; #endif // FBWINFRAME_HH
M
src/Window.cc
→
src/Window.cc
@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.cc,v 1.220 2003/08/24 10:46:56 fluxgen Exp $ +// $Id: Window.cc,v 1.221 2003/08/24 15:14:41 fluxgen Exp $ #include "Window.hh"@@ -339,23 +339,13 @@ m_client->setGroupLeftWindow(None); // nothing to the left.
// check for shape extension and whether the window is shaped m_shaped = false; -#ifdef SHAPE + if (Fluxbox::instance()->haveShape()) { - Display *disp = FbTk::App::instance()->display(); - int not_used; - unsigned int not_used2; - int shaped; - XShapeSelectInput(disp, m_client->window(), ShapeNotifyMask); - XShapeQueryExtents(disp, m_client->window(), - &shaped, /// bShaped - ¬_used, ¬_used, // xbs, ybs - ¬_used2, ¬_used2, // wbs, hbs - ¬_used, // cShaped - ¬_used, ¬_used, // xcs, ycs - ¬_used2, ¬_used2); // wcs, hcs - m_shaped = (shaped != 0 ? true : false); + Shape::setShapeNotify(winClient()); + m_shaped = Shape::isShaped(winClient()); } -#endif // SHAPE + + frame().setUseShape(!m_shaped); //!! TODO init of client should be better // we don't want to duplicate code here and in attachClient