From e51f618cc0fa3cd5fa1a5d1e6849edfa8147bbd1 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Wed, 16 Apr 2003 22:17:46 +0000 Subject: fixed resize bug --- src/Window.cc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Window.cc b/src/Window.cc index 6b55372..cbd5b84 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.142 2003/04/16 14:43:04 rathnor Exp $ +// $Id: Window.cc,v 1.143 2003/04/16 22:17:46 fluxgen Exp $ #include "Window.hh" @@ -175,9 +175,6 @@ public: explicit SetClientCmd(WinClient &client):m_client(client) { } void execute() { -#ifdef DEBUG - cerr<<"SetClientCmd"<setCurrentClient(m_client); } @@ -303,6 +300,8 @@ void FluxboxWindow::init() { m_client->window()<<", frame = "<width(), m_client->height()); TextButton *btn = new TextButton(m_frame.label(), m_frame.theme().font(), m_client->title()); @@ -320,7 +319,7 @@ void FluxboxWindow::init() { btn->setOnClick(set_client_cmd); evm.add(*this, btn->window()); // we take care of button events for this - m_frame.reconfigure(); + // m_frame.reconfigure(); // redirect events from frame to us @@ -377,7 +376,6 @@ void FluxboxWindow::init() { m_client->old_bw = wattrib.border_width; m_client->x = wattrib.x; m_client->y = wattrib.y; - Fluxbox *fluxbox = Fluxbox::instance(); fluxbox->saveWindowSearch(m_frame.window().window(), this); @@ -473,8 +471,9 @@ void FluxboxWindow::init() { } setState(current_state); - // m_frame.resizeForClient(wattrib.width, wattrib.height); + m_frame.resizeForClient(wattrib.width, wattrib.height); m_frame.reconfigure(); + sendConfigureNotify(); // no focus default setFocusFlag(false); -- cgit v0.11.2