Skip to content

Add minimize button to the file operations progress window - #3875

Open
fortepadronrolando wants to merge 2 commits into
linuxmint:masterfrom
fortepadronrolando:add-minimize-button-progress-window
Open

fortepadronrolando wants to merge 2 commits into
linuxmint:masterfrom
fortepadronrolando:add-minimize-button-progress-window

Conversation

@fortepadronrolando

Copy link
Copy Markdown

Replaces the window manager's default title bar with a GtkHeaderBar that shows both a minimize and a close button, so the copy/move/delete progress window can be minimized to the taskbar and restored from it — similar to Windows Explorer's file operation dialog — instead of only being hideable to the status tray icon.

Also switches the window's type hint from DIALOG to NORMAL and explicitly clears the skip-taskbar hint, since DIALOG-hinted windows are commonly excluded from the taskbar by window managers, which would otherwise make the new minimize button a dead end.

Test plan

  • meson setup build && ninja -C build src/nemo on Linux Mint 22.3 (Cinnamon 6.8.3); builds cleanly with no new warnings.
  • Verified in an isolated dbus-run-session instance that the progress window now shows a minimize button next to close, and that minimizing sends it to the taskbar where it can be restored.

Replaces the window manager's default title bar with a GtkHeaderBar
exposing both minimize and close controls, so the copy/move/delete
progress window can be minimized to the taskbar and restored from it,
similar to Windows Explorer's file operation dialog, instead of only
being hideable to the status tray icon.

Also switches the window type hint from DIALOG to NORMAL and
explicitly clears the skip-taskbar hint, since DIALOG-hinted windows
are commonly excluded from the taskbar by window managers, which
would otherwise make the new minimize button a dead end.
The header bar approach conflicted with something in at least one
tested environment (Cinnamon/Muffin + XAppGtkWindow), making the
window's title bar disappear entirely instead of gaining a minimize
button.

Since the window's type hint is now NORMAL (not DIALOG) and the
skip-taskbar hint is explicitly cleared, the window manager draws its
own title bar for this window like any other normal window — which
already includes a minimize button whenever the desktop's configured
button layout has one (the common case, e.g. Cinnamon/GNOME/MATE
defaults). This is simpler and avoids the CSD/decoration conflict.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant