forked from AuroraMiddleware/gtk
wayland/popup: Emit un-withdrawn event earlier
Otherwise grabbing the seat will appear to have failed.
This commit is contained in:
parent
71323a8b48
commit
f0b0076a1c
@ -2719,6 +2719,8 @@ gdk_wayland_surface_map_popup (GdkSurface *surface,
|
|||||||
impl->popup.unconstrained_width = width;
|
impl->popup.unconstrained_width = width;
|
||||||
impl->popup.unconstrained_height = height;
|
impl->popup.unconstrained_height = height;
|
||||||
impl->mapped = TRUE;
|
impl->mapped = TRUE;
|
||||||
|
|
||||||
|
gdk_synthesize_surface_state (surface, GDK_SURFACE_STATE_WITHDRAWN, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -2826,7 +2828,6 @@ gdk_wayland_surface_present_popup (GdkSurface *surface,
|
|||||||
|
|
||||||
if (impl->display_server.xdg_popup)
|
if (impl->display_server.xdg_popup)
|
||||||
{
|
{
|
||||||
gdk_synthesize_surface_state (surface, GDK_SURFACE_STATE_WITHDRAWN, 0);
|
|
||||||
gdk_surface_invalidate_rect (surface, NULL);
|
gdk_surface_invalidate_rect (surface, NULL);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user