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

[Linux] Window::Restore() doesn't bring back a minimized window on GNOME

Open
#62 1 comment 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
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp, linux

Research direction

Start at the Linux implementation of Window::Restore() and trace its use of gdk_window_deiconify(), then inspect the window-state-event handling for iconified state. Compare the GNOME behavior with gtk_window_present_with_time() and verify that restoring a minimized window emits the restored event and that a later Show() does not report a spurious minimize event.

Written by the indexing model from the issue text.

Description

bug

On Linux, Window::Restore() calls gdk_window_deiconify(), which Mutter ignores, so a minimized window isn't brought back and no restored event fires. It works on X11 window managers that honour it, but not on GNOME. Related: after the user minimizes a window, a later Show() can report a minimize event right away instead of showing it.

Possible fix: gtk_window_present_with_time() (with a real timestamp) when the window is iconified, and track the iconified state from window-state-event rather than from what was requested.

Background:

  • leanflutter/window_manager#525: window does not restore from minimization on Linux
  • leanflutter/window_manager#580: show() triggers an immediate minimize event after the user minimizes the window
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.