Client::move moves the client to the position so that its *frame* will be at the given coordinates
This commit is contained in:
parent
20ca827039
commit
f06b944933
3 changed files with 8 additions and 8 deletions
|
@ -134,7 +134,7 @@ def _do_move():
|
||||||
# draw the outline ...
|
# draw the outline ...
|
||||||
f=0
|
f=0
|
||||||
else:
|
else:
|
||||||
_client.move(x, y, 1) # move the *frame*
|
_client.move(x, y)
|
||||||
|
|
||||||
global move_popup
|
global move_popup
|
||||||
if move_popup:
|
if move_popup:
|
||||||
|
|
|
@ -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 (!(_functions & Func_Move)) return;
|
||||||
if (framepos)
|
frame->frameGravity(x, y); // get the client's position based on x,y for the
|
||||||
frame->frameGravity(x, y);
|
// frame
|
||||||
internal_move(x, y);
|
internal_move(x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -617,14 +617,14 @@ BB @param window The window id that the Client class should handle
|
||||||
//! Returns the client's strut definition
|
//! Returns the client's strut definition
|
||||||
inline const otk::Strut &strut() const { return _strut; }
|
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 x The X coordinate to move to.
|
||||||
@param y The Y 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
|
//! Resizes the client window, anchoring it in a given corner
|
||||||
/*!
|
/*!
|
||||||
|
|
Loading…
Reference in a new issue