all repos — fluxbox @ cb8e8e8d054b044db602326278055dc10f1c0c57

custom fork of the fluxbox windowmanager

fixed geometry bug
fluxgen fluxgen
commit

cb8e8e8d054b044db602326278055dc10f1c0c57

parent

7fab9c0a0b97721f893a8c12e7cb4df40f1aa4ef

2 files changed, 12 insertions(+), 8 deletions(-)

jump to
M src/Screen.ccsrc/Screen.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: Screen.cc,v 1.245 2003/12/07 16:39:43 fluxgen Exp $ +// $Id: Screen.cc,v 1.246 2003/12/10 22:28:07 fluxgen Exp $ #include "Screen.hh"

@@ -2016,6 +2016,9 @@ }

void BScreen::showPosition(int x, int y) { + if (!doShowWindowPos()) + return; + if (! geom_visible) { if (hasXinerama()) { unsigned int head = getCurrHead();

@@ -2052,6 +2055,9 @@ }

void BScreen::showGeometry(unsigned int gx, unsigned int gy) { + if (!doShowWindowPos()) + return; + if (! geom_visible) { if (hasXinerama()) { unsigned int head = getCurrHead();
M src/Window.ccsrc/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.248 2003/12/07 17:47:42 fluxgen Exp $ +// $Id: Window.cc,v 1.249 2003/12/10 22:28:07 fluxgen Exp $ #include "Window.hh"

@@ -2407,8 +2407,7 @@ } else {

moveResize(dx, dy, frame().width(), frame().height()); } - if (screen().doShowWindowPos()) - screen().showPosition(dx, dy); + screen().showPosition(dx, dy); } // end if moving } else if (functions.resize && (((me.state & Button1Mask) && (me.window == frame().gripRight() ||

@@ -2468,8 +2467,7 @@ m_last_resize_x, m_last_resize_y,

m_last_resize_w - 1 + 2 * frame().window().borderWidth(), m_last_resize_h - 1 + 2 * frame().window().borderWidth()); - if (screen().doShowWindowPos()) - screen().showGeometry(gx, gy); + screen().showGeometry(gx, gy); } } else if ((me.state & Button2Mask) && inside_titlebar && client != 0) {

@@ -2958,8 +2956,8 @@ m_last_resize_h = frame().height();

fixsize(&gx, &gy); - if (screen().doShowWindowPos()) - screen().showGeometry(gx, gy); + + screen().showGeometry(gx, gy); parent().drawRectangle(screen().rootTheme().opGC(), m_last_resize_x, m_last_resize_y,