Skip to content

Support for undecorated windows with custom title pane decoration #178

@kirill-grouchnikov

Description

@kirill-grouchnikov

What is the proposed approach to creating undecorated windows in Compose for Desktop that still need to display some sort of a draggable title pane area with close/minimize/maximize buttons?

The dragging / resizing in Swing is done as part of the JRootPane UI delegate. For example https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalRootPaneUI.java#L698 for dragging and resizing under the Metal look-and-feel. The listener is then set on the whole window in https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalRootPaneUI.java#L246 and processes all relevant mouse events.

Is this the same approach that we should adopt for Windows created with undecorated=true?

Metadata

Metadata

Assignees

Labels

desktopdiscussionNeed further discussion to understand if it actually neededquestionNot a bug, but question or commentundecorated windowIssue with `Window(undecorated = true)`window management

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions