From 3c5f8a153bbc1d554495305f0d766e21b4ddc3d8 Mon Sep 17 00:00:00 2001 From: IoIxD Date: Wed, 16 Sep 2026 15:20:30 -0700 Subject: [PATCH] remove awaiting_ownpopup_configure --- include/Mw/LowLevel/Wayland.h | 9 --------- src/backend/wayland/wayland.c | 2 -- 2 files changed, 11 deletions(-) diff --git a/include/Mw/LowLevel/Wayland.h b/include/Mw/LowLevel/Wayland.h index 67de572..4f09d0b 100644 --- a/include/Mw/LowLevel/Wayland.h +++ b/include/Mw/LowLevel/Wayland.h @@ -422,15 +422,6 @@ struct _MwLLWayland { int resizing; int setting_wh; - // /* True only while setup_popup()'s own synchronous roundtrip (the one - // * requesting the current xdg_positioner size) is in flight. Lets - // * popup_configure tell "this is the direct response to the resize we - // * just requested" apart from a configure that was merely delayed by - // * the compositor (e.g. because the popup wasn't shown yet) and only - // * gets dispatched later, after a newer resize is already pending - - // * which would otherwise clobber that newer, not-yet-applied size. */ - MwBool awaiting_own_popup_configure; - MwU32 mw, mh; /* Monitor width and height as advertised by wl_output.mode */ MwLL parent; diff --git a/src/backend/wayland/wayland.c b/src/backend/wayland/wayland.c index 918307d..ff8fb49 100644 --- a/src/backend/wayland/wayland.c +++ b/src/backend/wayland/wayland.c @@ -530,13 +530,11 @@ static void setup_popup(MwLL r, int x, int y, MwLL parent) { r->wayland.popup->xdg_surface_listener.configure = xdg_surface_configure; xdg_surface_add_listener(r->wayland.popup->xdg_surface, &r->wayland.popup->xdg_surface_listener, r); - r->wayland.awaiting_own_popup_configure = MwTRUE; if(wl_display_roundtrip(r->wayland.display) == -1) { printf("roundtrip failed\n"); raise(SIGTRAP); return; } - r->wayland.awaiting_own_popup_configure = MwFALSE; MwLLWaylandFramebufferSetup(&r->wayland); }