all repos — openbox @ f06b9449333e3bb53c169af91ba5eb85b44b2dc5

openbox fork - make it a bit more like ryudo

Client::move moves the client to the position so that its *frame* will be at the given coordinates
Dana Jansens danakj@orodu.net
commit

f06b9449333e3bb53c169af91ba5eb85b44b2dc5

parent

20ca827039a93a131f8f7efbcefba5df3d3213d5

3 files changed, 8 insertions(+), 8 deletions(-)

jump to
M scripts/motion.pyscripts/motion.py

@@ -134,7 +134,7 @@ if move_rubberband:

# draw the outline ... f=0 else: - _client.move(x, y, 1) # move the *frame* + _client.move(x, y) global move_popup if move_popup:
M src/client.ccsrc/client.cc

@@ -1146,11 +1146,11 @@ internal_move(x, y);

} -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); }
M src/client.hhsrc/client.hh

@@ -617,14 +617,14 @@

//! 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 /*!