- The utility functions
is_key_event
,is_button_event
,is_pointer_event
andis_window_event
have been removed, in favor of new bitmask combinationsKEY_EVENT
,BUTTON_EVENT
,POINTER_EVENT
andWINDOW_EVENT
.
- Adaptation to upstream changes to WindowAbstractions.jl. Check out the related CHANGELOG, some of these changes having a significant impact on XCB.jl.
-
Base.run(::XWindowManager; kwargs...)
now only accepts a single keyword argumentsleep_time
, removing the ability to customizeexecute_callback
and removingpoll
such that by default a mix of polling and (optionally) sleeping is done according tosleep_time
(instead of either polling or calling a blocking C function).iter_first
anditer_last
keyword arguments are no longer available, and you should make your own event loop withpoll_event
andprocess_event
if you want further customization. - Closing a window is now done by returning a
CloseWindow
instance instead of throwing it as an exception. Note that it is still anException
, so you can easily reproduce the old behavior with a manualtry
/catch
block. - The time field of
EventDetails
is now filled with the time since epoch, and not since the window has been created. You can always get the time since window creation yourself by recordingt0 = time()
when creating the window and subtracting it if desired.