klyn.gui.windows.DockWorkspace.handleDockButtonMousePressedAt
method
public handleDockButtonMousePressedAt(x as Int, y as Int) as Boolean:
Description

Handles only dock-button and pane-close-button mouse presses.

Native backends call this before regular child hit-testing so dock bars stay clickable even when a deep child widget would otherwise receive the event. Resize handles are deliberately not handled here; they continue to use the normal beginDragAt path.

Parameters
ParameterDescription
xWindow-client x coordinate.
yWindow-client y coordinate.
Returns

True when a dock state changed.

Example
if workspace.handleDockButtonMousePressedAt(mouseX, mouseY):
print("dock changed")