remove awaiting_ownpopup_configure
Some checks failed
pyrite-dev/milsko/pipeline/pr-master There was a failure building this commit
Some checks failed
pyrite-dev/milsko/pipeline/pr-master There was a failure building this commit
This commit is contained in:
parent
d22634d637
commit
3c5f8a153b
2 changed files with 0 additions and 11 deletions
|
|
@ -422,15 +422,6 @@ struct _MwLLWayland {
|
||||||
int resizing;
|
int resizing;
|
||||||
int setting_wh;
|
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 */
|
MwU32 mw, mh; /* Monitor width and height as advertised by wl_output.mode */
|
||||||
|
|
||||||
MwLL parent;
|
MwLL parent;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
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);
|
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) {
|
if(wl_display_roundtrip(r->wayland.display) == -1) {
|
||||||
printf("roundtrip failed\n");
|
printf("roundtrip failed\n");
|
||||||
raise(SIGTRAP);
|
raise(SIGTRAP);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
r->wayland.awaiting_own_popup_configure = MwFALSE;
|
|
||||||
|
|
||||||
MwLLWaylandFramebufferSetup(&r->wayland);
|
MwLLWaylandFramebufferSetup(&r->wayland);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue