wayland: Scale window geometry rects given the main output
Since we scale surface actors given what main output their toplevel window is on, also scale the window geometry coordinates and sizes (window->rect size and window->custom_frame_extents.top/left) in order to make the window geometry represent what is being rendered on the stage. https://bugzilla.gnome.org/show_bug.cgi?id=744934
This commit is contained in:
@ -2137,12 +2137,6 @@ meta_wayland_surface_configure_notify (MetaWaylandSurface *surface,
|
||||
wl_array_init (&states);
|
||||
fill_states (&states, surface->window);
|
||||
|
||||
/* new_width and new_height comes from window->rect, which is based on
|
||||
* the buffer size, not the surface size. The configure event requires
|
||||
* surface size. */
|
||||
new_width /= surface->scale;
|
||||
new_height /= surface->scale;
|
||||
|
||||
xdg_surface_send_configure (surface->xdg_surface, new_width, new_height, &states, serial);
|
||||
|
||||
wl_array_release (&states);
|
||||
|
Reference in New Issue
Block a user