all repos — fluxbox @ 6610e1c2101e42f351cf592987bc892a0c72c896

custom fork of the fluxbox windowmanager

remove round corners for already shaped windows, i.e xmms
fluxgen fluxgen
commit

6610e1c2101e42f351cf592987bc892a0c72c896

parent

710ef5d3c94e82e0ec99ff95a8c09d7308f81a6e

1 files changed, 15 insertions(+), 2 deletions(-)

jump to
M src/FbWinFrame.ccsrc/FbWinFrame.cc

@@ -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.cc,v 1.40 2003/08/24 11:11:07 fluxgen Exp $ +// $Id: FbWinFrame.cc,v 1.41 2003/08/24 15:39:52 fluxgen Exp $ #include "FbWinFrame.hh"

@@ -644,7 +644,7 @@ renderButtons();

if (!m_shaded) renderHandles(); - if (m_shape.get() && theme().shapePlace() == Shape::NONE) + if (m_shape.get() && theme().shapePlace() == Shape::NONE || m_disable_shape) m_shape.reset(0); else if (m_shape.get() == 0 && theme().shapePlace() != Shape::NONE) m_shape.reset(new Shape(window(), theme().shapePlace()));

@@ -655,6 +655,15 @@ if (m_shape.get())

m_shape->update(); // titlebar stuff rendered already by reconftitlebar +} + +void FbWinFrame::setUseShape(bool value) { + m_disable_shape = !value; + + if (m_shape.get() && m_disable_shape) + m_shape.reset(0); + else if (m_shape.get() == 0 && !m_disable_shape) + m_shape.reset(new Shape(window(), theme().shapePlace())); } unsigned int FbWinFrame::buttonHeight() const {

@@ -886,6 +895,8 @@ }

void FbWinFrame::init() { + m_disable_shape = false; + m_current_label = 0; // no focused button at first // clear pixmaps

@@ -1065,3 +1076,5 @@ button.setBackgroundColor(m_label_unfocused_color);

button.clear(); } + +