Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Linux] Implement SetClosable / SetMinimizable / SetMaximizable / SetMovable

Open
#61 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp, linux

Research direction

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.

Written by the indexing model from the issue text.

Description

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)
Dominant language
C++
Stars
34
Forks
7
Avg merge
3d 1h
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

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.

More from libnativeapi/nativeapi

All issues in libnativeapi/nativeapi

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.