mirror of
https://github.com/libsdl-org/SDL.git
synced 2024-11-23 19:03:27 +08:00
wayland: Update the popup window geometry on configure events
This commit is contained in:
parent
be70d9a9c7
commit
a8ea8db6d7
@ -650,8 +650,11 @@ static void handle_configure_xdg_popup(void *data,
|
||||
GetPopupPosition(wind->sdlwindow, 0, 0, &offset_x, &offset_y);
|
||||
x -= offset_x;
|
||||
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);
|
||||
|
||||
if (wind->surface_status == WAYLAND_SURFACE_STATUS_WAITING_FOR_CONFIGURE) {
|
||||
|
Loading…
Reference in New Issue
Block a user