From f06b9449333e3bb53c169af91ba5eb85b44b2dc5 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 3 Feb 2003 04:51:10 +0000 Subject: Client::move moves the client to the position so that its *frame* will be at the given coordinates --- src/client.cc | 6 +++--- src/client.hh | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/client.cc b/src/client.cc index 1b3ad1a9..b409f9b4 100644 --- a/src/client.cc +++ b/src/client.cc @@ -1146,11 +1146,11 @@ void Client::internal_resize(Corner anchor, int w, int h, bool user, } -void Client::move(int x, int y, bool framepos) +void Client::move(int x, int y) { if (!(_functions & Func_Move)) return; - if (framepos) - frame->frameGravity(x, y); + frame->frameGravity(x, y); // get the client's position based on x,y for the + // frame internal_move(x, y); } diff --git a/src/client.hh b/src/client.hh index 6b44706e..e66712c4 100644 --- a/src/client.hh +++ b/src/client.hh @@ -617,14 +617,14 @@ BB @param window The window id that the Client class should handle //! Returns the client's strut definition inline const otk::Strut &strut() const { return _strut; } - //! Move the client window + //! Move the window (actually, its frame) to a position. /*! + This moves the window so that the top-left corner of its frame will be at + the position specified. @param x The X coordinate to move to. @param y The Y coordinate to move to. - @param bool framepos True if the frame should be moved to the position - instead of the client. This makes it ignore the gravity. */ - void move(int x, int y, bool framepos = false); + void move(int x, int y); //! Resizes the client window, anchoring it in a given corner /*! -- cgit v1.2.3