mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-29 04:21:03 +08:00
wayland: Remove redundant window geometry configuration
The window geometry will be updated when in underlying shell surface config handler, before the config is ack-ed, so no need to do it in the popup config handler.
This commit is contained in:
@@ -653,7 +653,6 @@ static void handle_configure_xdg_popup(void *data,
|
|||||||
int32_t width,
|
int32_t width,
|
||||||
int32_t height)
|
int32_t height)
|
||||||
{
|
{
|
||||||
/* Popups can't be resized, so only position data is sent. */
|
|
||||||
SDL_WindowData *wind = (SDL_WindowData *)data;
|
SDL_WindowData *wind = (SDL_WindowData *)data;
|
||||||
int offset_x, offset_y;
|
int offset_x, offset_y;
|
||||||
|
|
||||||
@@ -665,7 +664,6 @@ static void handle_configure_xdg_popup(void *data,
|
|||||||
wind->requested_window_width = width;
|
wind->requested_window_width = width;
|
||||||
wind->requested_window_height = height;
|
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