Skip to content

Commit

Permalink
Fixes for review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGriffiths committed Jan 24, 2018
1 parent f794023 commit 68d80eb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/server/frontend/wayland/wayland_connector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1693,7 +1693,11 @@ class WlAbstractMirWindow : public WlMirWindow

// Sometimes, when using xdg-shell, qterminal creates an insanely tall buffer
if (buffer_size.height > geom::Height{10000})
{
mir::log_warning("Insane buffer height sanitized: buffer_size.height = %d (was %d)",
1000, buffer_size.height.as_int());
buffer_size.height = geom::Height{1000};
}

auto const session = session_for_client(client);

Expand Down Expand Up @@ -2033,8 +2037,8 @@ struct XdgPositionerV6 : wayland::XdgPositionerV6
aux_rect_placement_offset_y = y;
}

mir::optional_value<geometry::Size> size;
mir::optional_value<geometry::Rectangle> aux_rect;
optional_value<geometry::Size> size;
optional_value<geometry::Rectangle> aux_rect;
optional_value<MirPlacementGravity> surface_placement_gravity;
optional_value<MirPlacementGravity> aux_rect_placement_gravity;
optional_value<int> aux_rect_placement_offset_x;
Expand Down

0 comments on commit 68d80eb

Please sign in to comment.