wayland: Update the popup window geometry on configure events
This commit is contained in:
@@ -651,7 +651,10 @@ static void handle_configure_xdg_popup(void *data,
|
|||||||
x -= offset_x;
|
x -= offset_x;
|
||||||
y -= offset_y;
|
y -= offset_y;
|
||||||
|
|
||||||
SDL_SendWindowEvent(wind->sdlwindow, SDL_EVENT_WINDOW_RESIZED, width, height);
|
wind->requested_window_width = width;
|
||||||
|
wind->requested_window_height = height;
|
||||||
|
|
||||||
|
ConfigureWindowGeometry(wind->sdlwindow);
|
||||||
SDL_SendWindowEvent(wind->sdlwindow, SDL_EVENT_WINDOW_MOVED, x, y);
|
SDL_SendWindowEvent(wind->sdlwindow, SDL_EVENT_WINDOW_MOVED, x, y);
|
||||||
|
|
||||||
if (wind->surface_status == WAYLAND_SURFACE_STATUS_WAITING_FOR_CONFIGURE) {
|
if (wind->surface_status == WAYLAND_SURFACE_STATUS_WAITING_FOR_CONFIGURE) {
|
||||||
|
|||||||
Reference in New Issue
Block a user