Window.setProtocolCommand

This command is used to manage window manager protocols such as WM_DELETE_WINDOW. Protocol is the name of an atom corresponding to a window manager protocol, such as WM_DELETE_WINDOW or WM_SAVE_YOURSELF or WM_TAKE_FOCUS.

class Window
setProtocolCommand
(
this T
)

Parameters

protocol string

The protocol to respond to.

callback CommandCallback

The callback to invoke when the protocol is encountered.

Return Value

Type: auto

This window to aid method chaining.

Callback Arguments

These are the fields within the callback's CommandArgs parameter which are populated by this method when the callback is executed.

$(PARAM_TABLE $(PARAM_ROW CommandArgs.element, The window that executed the callback.) $(PARAM_ROW CommandArgs.uniqueData, The protocol that was responded to.) $(PARAM_ROW CommandArgs.callback, The callback which was executed.) )

See Also

Meta