xwm: Handle NET_WM_WINDOW_OPACITY

Lot of clients use it (e.g. both Qt and GTK) although it never made it
into the spec at

  https://specifications.freedesktop.org/wm-spec/latest-single/

until recently

  https://gitlab.freedesktop.org/xdg/xdg-specs/-/merge_requests/97

Signed-off-by: Guido Günther <agx@sigxcpu.org>
This commit is contained in:
Guido Günther 2025-03-04 20:37:49 +01:00 committed by Simon Ser
parent a63e21d94c
commit e752e3ec06
3 changed files with 25 additions and 0 deletions

View file

@ -138,6 +138,7 @@ struct wlr_xwayland_surface {
int16_t x, y;
uint16_t width, height;
bool override_redirect;
float opacity;
char *title;
char *class;
@ -220,6 +221,7 @@ struct wlr_xwayland_surface {
struct wl_signal set_strut_partial;
struct wl_signal set_override_redirect;
struct wl_signal set_geometry;
struct wl_signal set_opacity;
struct wl_signal focus_in;
struct wl_signal grab_focus;
/* can be used to set initial maximized/fullscreen geometry */

View file

@ -70,6 +70,7 @@ enum atom_name {
NET_STARTUP_ID,
NET_STARTUP_INFO,
NET_STARTUP_INFO_BEGIN,
NET_WM_WINDOW_OPACITY,
NET_WM_WINDOW_TYPE_NORMAL,
NET_WM_WINDOW_TYPE_UTILITY,
NET_WM_WINDOW_TYPE_TOOLTIP,