public handleDockButtonMousePressedAt(x as Int, y as Int) as Boolean:
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.
| Parameter | Description |
|---|---|
x | Window-client x coordinate. |
y | Window-client y coordinate. |
True when a dock state changed.
if workspace.handleDockButtonMousePressedAt(mouseX, mouseY):
print("dock changed")