Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

[Linux] Implement SetClosable / SetMinimizable / SetMaximizable / SetMovable

Geschlossen
#61 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
cpp, linux

Rechercherichtung

Start in src/platform/linux/window_linux.cpp and inspect the stubs for Window::SetClosable(), SetMinimizable(), SetMaximizable(), and SetMovable(). Compare the available GTK/GDK approaches with behavior on relevant Linux compositors, then verify that each requested capability changes as expected. Document any compositor limitations or cases that cannot work.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug

On Linux, Window::SetClosable(), SetMinimizable(), SetMaximizable() and SetMovable() are stubs (src/platform/linux/window_linux.cpp), so the corresponding buttons and actions stay enabled.

Possible approaches: gtk_window_set_deletable() for closable; gdk_window_set_functions() / GDK_FUNC_* for minimize/maximize/move where the window manager honours them; and gtk_window_set_type_hint or a custom header bar under client-side decorations. What can't work on a given compositor should be documented.

Background, from window_manager (moving onto nativeapi in 0.6.0):

  • leanflutter/window_manager#563: setClosable(false) has no effect on Linux
  • leanflutter/window_manager#484: COSMIC desktop (always-on-top, min/max size, decorations)
Vorherrschende Sprache
C++
Sterne
34
Forks
7
Ø Merge
3 T. 1 Std.
Gemergte PRs (30 T.)
1

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus libnativeapi/nativeapi

Alle Issues in libnativeapi/nativeapi

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.