-
Notifications
You must be signed in to change notification settings - Fork 40
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
BlSpaceResizedEvent weird behavior #626
Comments
tinchodias
changed the title
BlOSWindowSDL2Host: BlSpaceResizedEvent is announced twice
BlOSWindowSDL2Host and weird behavior with BlSpaceResizedEvent
Oct 14, 2024
However, the same event is not announced when size changes due to Code: queue := WaitfreeQueue new.
space := BlSpace new.
space
addEventHandlerOn: BlSpaceResizedEvent
do: [ :evt | queue nextPut: evt ].
space useSDL2Host.
space show.
space extent: 400 asPoint.
events := OrderedCollection new.
queue flush: [ :anEvent | events add: anEvent ]. events.
|
EDIT: this doesn't happen anymore after #614MorphicWindow host dispatches 3 BlSpaceResizedEvent only on show: code: queue := WaitfreeQueue new.
space := BlSpace new.
space
addEventHandlerOn: BlSpaceResizedEvent
do: [ :evt | queue nextPut: evt ].
space useMorphicHost.
space show.
events := OrderedCollection new.
queue flush: [ :anEvent | events add: anEvent ]. events.
|
tinchodias
changed the title
BlOSWindowSDL2Host and weird behavior with BlSpaceResizedEvent
BlSpaceResizedEvent weird behavior
Oct 14, 2024
This report is affected by the recently merged #614 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With BlOSWindowSDL2Host, the event is dispatched twice when the cursor drags the border:
Code:
The text was updated successfully, but these errors were encountered: