summaryrefslogtreecommitdiff
path: root/sway/layout.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2016-07-18 16:21:45 -0400
committerDrew DeVault <[email protected]>2016-07-28 14:36:49 -0400
commit11e7ca044c61f0bcce95a90b50814f780f769f21 (patch)
tree70a4b6d6e476471a7f290f8c1278b01b275358be /sway/layout.c
parent6ea02f3064736b7f53e5b28c16ee74f5665ce1b8 (diff)
Update hidpi support to latest wlc API
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/layout.c b/sway/layout.c
index 2037955e..db9787f3 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -407,7 +407,7 @@ static void update_border_geometry_floating(swayc_t *c, struct wlc_geometry *geo
swayc_t *output = swayc_parent_by_type(c, C_OUTPUT);
struct wlc_size res;
- wlc_output_get_scaled_size(output->handle, &res);
+ output_get_scaled_size(output->handle, &res);
switch (c->border_type) {
case B_NONE:
@@ -548,7 +548,7 @@ void update_geometry(swayc_t *container) {
swayc_t *output = swayc_parent_by_type(container, C_OUTPUT);
struct wlc_size size;
- wlc_output_get_scaled_size(output->handle, &size);
+ output_get_scaled_size(output->handle, &size);
if (swayc_is_fullscreen(container)) {
geometry.origin.x = 0;
@@ -729,7 +729,7 @@ static void arrange_windows_r(swayc_t *container, double width, double height) {
case C_OUTPUT:
{
struct wlc_size resolution;
- wlc_output_get_scaled_size(container->handle, &resolution);
+ output_get_scaled_size(container->handle, &resolution);
width = resolution.w; height = resolution.h;
// output must have correct size due to e.g. seamless mouse,
// but a workspace might be smaller depending on panels.