Update hidpi support to latest wlc API

This commit is contained in:
Drew DeVault 2016-07-18 16:21:45 -04:00
parent 6ea02f3064
commit 11e7ca044c
7 changed files with 22 additions and 13 deletions

View file

@ -5,6 +5,13 @@
#include "log.h"
#include "list.h"
void output_get_scaled_size(wlc_handle handle, struct wlc_size *size) {
*size = *wlc_output_get_resolution(handle);
uint32_t scale = wlc_output_get_scale(handle);
size->w /= scale;
size->h /= scale;
}
swayc_t *output_by_name(const char* name, const struct wlc_point *abs_pos) {
if (strcasecmp(name, "left") == 0) {
return swayc_adjacent_output(NULL, MOVE_LEFT, abs_pos, true);