Skip to content

Instantly share code, notes, and snippets.

@somdoron
Last active April 25, 2018 18:20
Show Gist options
  • Save somdoron/4f4cfe2b379d03c3b329a918a1bf699a to your computer and use it in GitHub Desktop.
Save somdoron/4f4cfe2b379d03c3b329a918a1bf699a to your computer and use it in GitHub Desktop.
// as part of arrange windows
case C_VIEW:
{
int x = container.x;
int y = container.y;
update_gap_geometry(&x,&y,&width,&height);
container->width = width;
container->height = height;
container->x = x;
container->y = y;
view_configure(container->sway_view, container->x, container->y, container->width, container->height);
wlr_log(L_DEBUG, "Set view to %.f x %.f @ %.f, %.f",
container->width, container->height,
container->x, container->y);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment