[mutter/cherry-pick-98d5aa15-2] xwayland: Fix condition for queuing a window to META_QUEUE_CALC_SHOWING
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/cherry-pick-98d5aa15-2] xwayland: Fix condition for queuing a window to META_QUEUE_CALC_SHOWING
- Date: Mon, 4 Oct 2021 08:20:16 +0000 (UTC)
commit 880a5af42ca61f4dc0d8d044540578ecf7a83d65
Author: Dor Askayo <dor askayo gmail com>
Date: Fri Oct 1 23:40:53 2021 +0300
xwayland: Fix condition for queuing a window to META_QUEUE_CALC_SHOWING
This logic was changed by accident in df642eb15. The change caused every
Xwayland window to be queued to META_QUEUE_CALC_SHOWING on every surface
commit. As a result, X11 window management events, including _NET_WM_STATE,
were dispatched at clients on every single frame.
Fixes https://gitlab.gnome.org/GNOME/mutter/-/issues/1955
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2032>
(cherry picked from commit 98d5aa159e0eb9f433b211044ce30cd612d42734)
src/wayland/meta-xwayland-surface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/wayland/meta-xwayland-surface.c b/src/wayland/meta-xwayland-surface.c
index 4697c9d211..d0325e957c 100644
--- a/src/wayland/meta-xwayland-surface.c
+++ b/src/wayland/meta-xwayland-surface.c
@@ -148,7 +148,7 @@ meta_xwayland_surface_pre_apply_state (MetaWaylandSurfaceRole *surface_role,
MetaXwaylandSurface *xwayland_surface = META_XWAYLAND_SURFACE (surface_role);
if (pending->newly_attached &&
- surface->buffer_ref->buffer &&
+ !surface->buffer_ref->buffer &&
xwayland_surface->window)
meta_window_queue (xwayland_surface->window, META_QUEUE_CALC_SHOWING);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]