From 6a5fff9ae18862a93dbf80b9b6c6c731ce334893 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Mon, 30 Jun 2003 15:02:39 +0000 Subject: dont resize if not isResizable, disabled title in layermenu --- src/Window.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Window.cc b/src/Window.cc index 380df19..3464112 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.cc,v 1.199 2003/06/26 12:22:43 rathnor Exp $ +// $Id: Window.cc,v 1.200 2003/06/30 15:02:39 fluxgen Exp $ #include "Window.hh" @@ -305,6 +305,7 @@ FluxboxWindow::~FluxboxWindow() { void FluxboxWindow::init() { // so parent menu don't kill us m_layermenu->setInternalMenu(); + m_layermenu->disableTitle(); m_attaching_tab = 0; @@ -366,8 +367,6 @@ void FluxboxWindow::init() { evm.add(*this, btn->window()); // we take care of button events for this evm.add(*this, m_client->window()); - // frame().reconfigure(); - // redirect events from frame to us frame().setEventHandler(*this); @@ -1002,7 +1001,10 @@ void FluxboxWindow::moveResize(int new_x, int new_y, new_y = 0; downsize(); - + if (!isResizable()) { + new_width = width(); + new_height = height(); + } frame().moveResize(new_x, new_y, new_width, new_height); setFocusFlag(focused); -- cgit v0.11.2