Skip to content

Wayland #5332

Open
Open
Wayland#5332
@Ggeshechka

Description

@Ggeshechka

Duplicate Check

Describe the bug

On Linux Wayland it is not possible to position the window in the center and set the initial size of the window, I would also like to customize the window: remove the system panel at the top of the window, there is a ready-made container for dragging the window, but if you round the frames, you will see a thin black frame at the corners below that functions to change the size of the window.

Code sample

`import asyncio
from flet import *

from themes.navigation_bar import window_drag_area

async def window(page: Page):
page.window.title_bar_buttons_hidden = True
page.window.title_bar_hidden = True
page.window.bgcolor = Colors.TRANSPARENT
page.bgcolor = Colors.TRANSPARENT
page.padding = 0

page.add(
    Container(
        Column(
            [
                Container(
                    await window_drag_area(),
                    height=30
                ),
                Container(

                    expand=True,
                    bgcolor=Colors.GREEN_800
                )
            ],
            expand=True,
            spacing=0
        ),
        expand=True,
        border_radius=10
    )
)

if name == 'main':
asyncio.run(app_async(window))
`

To reproduce

no

Expected behavior

Center the window, resize when setting page.window.frameless = True

Screenshots / Videos

Image

Operating System

Linux

Operating system details

Ubuntu 24.04

Flet version

0.28.3

Regression

No, it isn't

Suggestions

No response

Logs

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform: linuxSpecific to one or more Linux distributions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions