DioxusLabs / DioxusLabs/dioxus

Missing functionality: Undecorated window resizing in `dioxus-desktop`

Open
#3,128 5 comments 2 reactions 0 assignees View on GitHub
desktop enhancement
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

## Feature Request
Disabling window decorations in `tao` when using `dioxus-desktop` prevents the window from being resized, as confirmed in https://github.com/tauri-apps/tao/issues/994#issuecomment-2442048551.
`dioxus` does not provide the required API to bring drag-resizing back to a window without decorations.
This behavior prevents valid use cases like custom title bars. The user has to implement a lot of boilerplate for the webview to be resizable again.
`tauri` has their own implementation - I think `dioxus` should too.

See https://github.com/tauri-apps/tauri/issues/7900#issuecomment-1734677770 for an example of the behavior that appears when disabling a window's decorations and attempting to resize.
Note: the video only showcases attempts made at the upper-right corner. On my end, I am also completely unable to resize the window unless im dragging from the upper edge of the window, in which case it is still difficult to grab onto - the area is one pixel high.

## Implement Suggestion

`tauri` implements this here: [src/undecorated_resizing.rs](https://github.com/tauri-apps/tauri/blob/dev/crates/tauri-runtime-wry/src/undecorated_resizing.rs)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.