Skip to content

[bug or feature?]: WS_CAPTION is added after calling SetWindowPos #1106

@eythaann

Description

@eythaann

Describe the bug
After call SetWindowPos the WS_CAPTION style is added to the window

Steps To Reproduce

  • Create a Tauri window without decorations, this should remove WS_CAPTION.
  • call the tauri api for windows to change the size of the window or directly SetWindowPos on the window
  • now the window has the style WS_CAPTION again.

Expected behavior
If decorations are disabled WS_CAPTION shouldn't be added when window position change.

Screenshots
current:

Image

expected:

Image

Platform and Versions (please complete the following information):
OS: Windows 11
Rustc: 1.81.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions