-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
window on-move / move inconsistency #149
Comments
And here is an ugly workaround I created that calculates the delta between the outer and inner of the window:
|
More context: https://groups.google.com/g/racket-users/c/3Yk5hpbDIcw/m/xTLTcOgYCgAJ, with the relevant messages quoted below: From Alex:
Response from Simon:
|
On my system (linux manjaro xfce gtk)
move
seems to treat the position as the outer window position (left-top of the decorated window). Whileon-move
andget-x
/get-y
report the position of the undecorated window (the left-top of the inside of the window).Actually
on-move
first reports the outer window position and immediately afterwards the inner window position. Except when the outer window position (set viamove
) happens to be equal to the inner window position, than it appears thatmove
does nothing andon-move
is not called.Expected Behaviour:
calling
(send frame move x1 y1)
results in a call of
(on-move x1 y1)
Observed Behaviour:
calling
(send frame move x1 y1)
results in a call of
(on-move x1 y1)
followed by(on-move x2 y2)
Proposal 1 (preferred):
move
more consistent it should always take inner window coordinateson-move
only gets called once with the inner window coordinatesProposal 2:
get-outer-x
andget-outer-y
which return the outer window coordinatesExample:
Output (Linux):
Output (Windows Virtual Machine):
The behavior on windows is as expected.
The text was updated successfully, but these errors were encountered: