From 4752a8055cae3e61e9d4d3e97ace87f74182f6b4 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 16 Dec 2022 13:02:58 +0100 Subject: [PATCH] core: Update frame opaque region from _NET_WM_OPAQUE_REGION property Both read this property on frame creation, and listen to property changed events about it in the frame window. Part-of: --- src/core/frame.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/frame.c b/src/core/frame.c index 760d89701..6480b0def 100644 --- a/src/core/frame.c +++ b/src/core/frame.c @@ -143,6 +143,9 @@ meta_window_set_frame_xwindow (MetaWindow *window, meta_window_reload_property_from_xwindow (window, frame->xwindow, x11_display->atom__NET_WM_SYNC_REQUEST_COUNTER, TRUE); + meta_window_reload_property_from_xwindow (window, frame->xwindow, + x11_display->atom__NET_WM_OPAQUE_REGION, + TRUE); meta_x11_error_trap_push (x11_display); XMapWindow (x11_display->xdisplay, frame->xwindow); @@ -515,7 +518,8 @@ meta_frame_handle_xevent (MetaFrame *frame, } else if (xevent->xany.type == PropertyNotify && xevent->xproperty.state == PropertyNewValue && - xevent->xproperty.atom == x11_display->atom__NET_WM_SYNC_REQUEST_COUNTER) + (xevent->xproperty.atom == x11_display->atom__NET_WM_SYNC_REQUEST_COUNTER || + xevent->xproperty.atom == x11_display->atom__NET_WM_OPAQUE_REGION)) { meta_window_reload_property_from_xwindow (window, frame->xwindow, xevent->xproperty.atom, FALSE);