Bug 7925 - Incorrect styling of GTK windows during session startup
Summary: Incorrect styling of GTK windows during session startup
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Misc (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Bugzilla mail exporter
Depends on:
Reported: 2022-05-17 08:59 CEST by Pierre Ossman
Modified: 2022-05-17 12:50 CEST (History)
0 users

See Also:
Acceptance Criteria:


Description Pierre Ossman cendio 2022-05-17 08:59:46 CEST
We have two GTK windows that we pop up as part of starting up a new session: tl-run-xstartup-feedback, and tl-select-profile. Both of these use the modern header bar in an effort to look like other GTK applications.

Unfortunately, this partially fails as we use Openbox as the window manager here, and it doesn't support everything GTK needs. Instead of getting the expected windows with rounded corners, we get GTK's fallback mode with square corners and an extra border around the entire window. This means we lose the familiarity we were after (and it looks ugly).

GTK requires three things¹ to enable the proper rendering:

 * RGBA visuals

 * Compositing

 * WM support for _GTK_FRAME_EXTENTS

¹ See gtk_window_supports_client_shadow() in gtkwindow.c

Openbox supports none of this.

However, if I add a separate compositor, I should get the first two. And I should be able to fake the last one using xprop. But I tried this (with picom as the compositor), but GTK still refuses to enable things. So there is likely something more than xprop that is needed.

Note You need to log in before you can comment on or make changes to this bug.