[Linux] Window::Restore() doesn't bring back a minimized window on GNOME
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
- Domain
- desktop, operating-systems
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
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from libnativeapi/nativeapi
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
libnativeapi/nativeapi#81 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
libnativeapi/nativeapi#80 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
libnativeapi/nativeapi#79 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
libnativeapi/nativeapi#78 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
libnativeapi/nativeapi#77 ·
All issues in libnativeapi/nativeapi
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
objectionary/eo-graphs#74 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 88/100
QuantStack/git2cpp#187 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100