fixed geometry bug
This commit is contained in:
parent
7fab9c0a0b
commit
cb8e8e8d05
2 changed files with 12 additions and 8 deletions
|
@ -22,7 +22,7 @@
|
|||
// 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::shutdown() {
|
|||
|
||||
|
||||
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::showPosition(int x, int y) {
|
|||
|
||||
|
||||
void BScreen::showGeometry(unsigned int gx, unsigned int gy) {
|
||||
if (!doShowWindowPos())
|
||||
return;
|
||||
|
||||
if (! geom_visible) {
|
||||
if (hasXinerama()) {
|
||||
unsigned int head = getCurrHead();
|
||||
|
|
|
@ -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.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,7 +2407,6 @@ void FluxboxWindow::motionNotifyEvent(XMotionEvent &me) {
|
|||
moveResize(dx, dy, frame().width(), frame().height());
|
||||
}
|
||||
|
||||
if (screen().doShowWindowPos())
|
||||
screen().showPosition(dx, dy);
|
||||
} // end if moving
|
||||
} else if (functions.resize &&
|
||||
|
@ -2468,7 +2467,6 @@ void FluxboxWindow::motionNotifyEvent(XMotionEvent &me) {
|
|||
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);
|
||||
}
|
||||
} else if ((me.state & Button2Mask) && inside_titlebar && client != 0) {
|
||||
|
@ -2958,7 +2956,7 @@ void FluxboxWindow::startResizing(Window win, int x, int y) {
|
|||
|
||||
fixsize(&gx, &gy);
|
||||
|
||||
if (screen().doShowWindowPos())
|
||||
|
||||
screen().showGeometry(gx, gy);
|
||||
|
||||
parent().drawRectangle(screen().rootTheme().opGC(),
|
||||
|
|
Loading…
Reference in a new issue