From fc0b87b279e4f470ed6ea863a155d0eb4906bc6f Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 20 May 2007 12:48:51 +0000 Subject: fixed bug #1717782, Bad fullscreen in ooimpress. --- ChangeLog | 5 +++++ src/Window.cc | 13 +++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9ab2683..b9e0571 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ (Format: Year/Month/Day) Changes for 1.0.0: +*07/05/20: + * Fixed bug #1717782, Bad fullscreen in ooimpress2 ( Henrik ) + mwm hint had no-resize which made resizing with + FluxboxWindow::setFullscreen impossible. + Window.cc *07/05/19: * Fixed bug #1718112, memory leak in FbWindow::textProperty ( Henrik ) FbTk/FbWindow.cc diff --git a/src/Window.cc b/src/Window.cc index 9f79649..413ffcc 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -1571,9 +1571,18 @@ void FluxboxWindow::setFullscreen(bool flag) { // clear decorations setDecorationMask(0); + // dont call Window::moveResize here, it might ignore the + // resize if win state is not resizable; + // instead we call frame resize directly + // (see tests/fullscreentest.cc) + // be xinerama aware - moveResize(screen().getHeadX(head), screen().getHeadY(head), - screen().getHeadWidth(head), screen().getHeadHeight(head)); + frame().moveResize(screen().getHeadX(head), screen().getHeadY(head), + screen().getHeadWidth(head), screen().getHeadHeight(head)); + sendConfigureNotify(); + m_last_resize_x = frame().x(); + m_last_resize_y = frame().y(); + moveToLayer(::Layer::ABOVE_DOCK); fullscreen = true; -- cgit v0.11.2