Skip to content

Conversation

@vtyrtov
Copy link
Contributor

@vtyrtov vtyrtov commented Nov 8, 2025

Summary

Keep the original Wayland behavior from master (GtkHeaderBar / client-side decorations). Add a single opt-in flag so GNOME Shell extensions (e.g. Unite) can hide the titlebar cleanly and reclaim space.

Behavior

Default (Wayland): GtkHeaderBar shown, unchanged from master.
Opt-in compatibility mode:
Enable via DARKTABLE_HIDE_TITLEBAR_ON_MAXIMIZE=1 (or ui/hide_titlebar_on_maximize=true)
Effect: no GtkHeaderBar, server-side decorations used, gtk_window_set_hide_titlebar_when_maximized(TRUE). Allows WM/extension to hide titlebar without a gap.

Implementation

Added conditional logic in [gtk.c]

Testing

Default: header bar visible as before.
With DARKTABLE_HIDE_TITLEBAR_ON_MAXIMIZE=1: Unite hides titlebar; window resizes (no top gap).

@vtyrtov vtyrtov changed the title Wayland: add DARKTABLE_HIDE_TITLEBAR_ON_MAXIMIZE to disable HeaderBar for Unite compatibility Wayland: add DARKTABLE_HIDE_TITLEBAR_ON_MAXIMIZE to disable TitleBar for Unite compatibility Nov 9, 2025
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