Skip to content

Commit

Permalink
Workaround for strange input from Qt wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGriffiths committed Jan 23, 2018
1 parent 26da528 commit b50de25
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/server/frontend/wayland/wayland_connector.cpp
Expand Up @@ -1687,8 +1687,14 @@ class WlAbstractMirWindow : public WlMirWindow
mf::SurfaceId surface_id;

private:
void commit(geom::Size const& buffer_size) override
void commit(geom::Size const& buffer_size_) override
{
auto buffer_size = buffer_size_;

// Sometimes, when using xdg-shell, qterminal creates an insanely tall buffer
if (buffer_size.height > geom::Height{10000})
buffer_size.height = geom::Height{1000};

auto const session = session_for_client(client);

if (surface_id.as_value())
Expand Down

0 comments on commit b50de25

Please sign in to comment.