frame ->wm_protocol: protocol=name,
action=codeRegister a handler for an OS protocol message. The name is matched
against incoming protocol events; on a match the code is executed with @receiver
set to the frame and @arg1
to its first window.
Historically these names matched X11's WM_PROTOCOLS messages, notably WM_DELETE_WINDOW
(close request) and
WM_SAVE_YOURSELF (session save). On SDL3 only the
close-request path remains; the others are accepted but never triggered.
- See also
- - frame
<-wm_protocols
- frame->save_message
- frame->done_message
- frame->delete_wm_protocol