flet-dev / flet-dev/flet

bug: Window sizing issues on Linux

Open
#1,735 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug has reproducible steps platform: linux
Dominant language
Python
Stars
17k
Forks
694
Avg merge
1d 14h
Merged PRs (30d)
33

Description

Description

I would like to make a customized frameless window. The window has a minimum size requirement for elements to be shown properly. I found that when window_title_bar_hidden is set, neither window_min_height nor window_min_width is effective.

Code example to reproduce the issue:

import flet as ft


def entry(page: ft.Page):
    content = ft.Text("Hello world!")
    page.add(content)

    page.window_title_bar_hidden = True
    page.window_min_height = 600
    page.window_min_width = 800

    page.update()


ft.app(target=entry)

Describe the results you received:

The window can be resized to any arbitrary size.

Describe the results you expected:

The window shouldn't be smaller when limits are hit.

Additional information you deem important (e.g. issue happens only occasionally):

Async runtime is also affected.

Flet version (pip show flet):

Name: flet
Version: 0.9.0
Summary: Flet for Python - easily build interactive multi-platform apps in Python
Home-page: 
Author: Appveyor Systems Inc.
Author-email: hello@flet.dev
License: Apache-2.0
Location: /path/to/project/.venv/lib/python3.11/site-packages
Requires: copier, flet-runtime, packaging, pydantic, qrcode, watchdog, websocket-client, websockets
Required-by:

Operating system:

ArchLinux

Additional environment details:

  • GNOME: 1:44.3-1
    • both Wayland and X11

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run the provided Python reproducer on ArchLinux under both Wayland and X11, with window_title_bar_hidden enabled and the stated minimum dimensions. Trace the desktop window-sizing entry point used by this configuration, including the async runtime path. Done means frameless windows cannot be resized below the configured minimum width and height in both runtime modes.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, python
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.