Repository navigation
Make fullscreen reveal bar non-draggable - #21548
Conversation
|
It's not related but let me know if it's a good idea. |
|
|
@cla-avalonia agree |
|
You can test this PR using the following package version. |
|
You can test this PR using the following package version. |
|
Since
I think the change makes sense. Ideally, dragging the bar would restore the window to its normal state and continue the drag, matching what happens with a |
…not-draggable # Conflicts: # src/Avalonia.Themes.Fluent/Controls/WindowDrawnDecorations.xaml # src/Avalonia.Themes.Simple/Controls/WindowDrawnDecorations.xaml
|
You can test this PR using the following package version. |
* Make fullscreen reveal bar non-draggable * Also apply the change to the simple theme --------- Co-authored-by: Julien Lebosquain
* Make fullscreen reveal bar non-draggable * Also apply the change to the simple theme --------- Co-authored-by: Julien Lebosquain
What does the pull request do?
Marks the
FullscreenPopoverpanel inWindowDrawnDecorationsasDecorationsElementinstead ofTitleBar, so the fullscreen reveal bar is no longer registered as a window drag region.What is the current behavior?
In fullscreen, the normal title bar (
PART_TitleBar) is collapsed, so the reveal bar is the only element withElementRole="TitleBar". Dragging its empty area startsBeginMoveDragon the fullscreen window, moving it off the fullscreen rectangle and leaving the reveal bar / chrome in a broken state.What is the updated/expected behavior?
The reveal bar is part of the non-client chrome but is not a drag handle, so a fullscreen window can no longer be moved by dragging it. The caption buttons inside the popover keep their own roles (
FullScreenButton,CloseButton) and remain fully functional.How was the solution implemented (if it's not obvious)?
One-line theme change in
src/Avalonia.Themes.Fluent/Controls/WindowDrawnDecorations.xaml:Breaking changes
None. Behavioral change only: the fullscreen reveal bar is no longer a drag region (it should not have been one).
Fixed issues
Fixes #21547