mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05:00
Update hidpi support to latest wlc API
This commit is contained in:
parent
6ea02f3064
commit
11e7ca044c
7 changed files with 22 additions and 13 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue