move windows based on their *frame* not the client
This commit is contained in:
parent
8332db5880
commit
ba87284397
1 changed files with 5 additions and 3 deletions
|
@ -92,8 +92,9 @@ _last_y = 0
|
||||||
def _do_move():
|
def _do_move():
|
||||||
global _screen, _client, _cx, _cy, _dx, _dy
|
global _screen, _client, _cx, _cy, _dx, _dy
|
||||||
|
|
||||||
x = _cx + _dx
|
# get destination x/y for the *frame*
|
||||||
y = _cy + _dy
|
x = _cx + _dx + _client.frame.rect().x() - _client.area().x()
|
||||||
|
y = _cy + _dy + _client.frame.rect().y() - _client.area().y()
|
||||||
|
|
||||||
global edge_resistance
|
global edge_resistance
|
||||||
global _last_x, _last_y
|
global _last_x, _last_y
|
||||||
|
@ -133,7 +134,8 @@ def _do_move():
|
||||||
# draw the outline ...
|
# draw the outline ...
|
||||||
f=0
|
f=0
|
||||||
else:
|
else:
|
||||||
_client.move(x, y)
|
print "moving " + str(x) + " " + str(y)
|
||||||
|
_client.move(x, y, 1) # move the frame to the position
|
||||||
|
|
||||||
global move_popup
|
global move_popup
|
||||||
if move_popup:
|
if move_popup:
|
||||||
|
|
Loading…
Reference in a new issue