summaryrefslogtreecommitdiff
path: root/wayland/registry.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2016-09-05 11:36:48 -0400
committerDrew DeVault <[email protected]>2016-09-05 11:36:48 -0400
commitb2226ac6551f18275fadbcb3bc16a06d2a3dd97f (patch)
tree65628cb83abaa546c5f0e2cd8949c55aacb40360 /wayland/registry.c
parent61184e3208c28b24a84aae5f5f0005311283826d (diff)
Add client support for HiDPI
This adds HiDPI support to swaybar, swaybg, and swaylock.
Diffstat (limited to 'wayland/registry.c')
-rw-r--r--wayland/registry.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wayland/registry.c b/wayland/registry.c
index 2d66b7eb..44afb146 100644
--- a/wayland/registry.c
+++ b/wayland/registry.c
@@ -18,6 +18,8 @@ static void display_handle_mode(void *data, struct wl_output *wl_output,
state->flags = flags;
state->width = width;
state->height = height;
+ sway_log(L_DEBUG, "Got mode %dx%x:0x%X for output %p",
+ width, height, flags, data);
}
}
@@ -34,6 +36,7 @@ static void display_handle_done(void *data, struct wl_output *wl_output) {
static void display_handle_scale(void *data, struct wl_output *wl_output, int32_t factor) {
struct output_state *state = data;
state->scale = factor;
+ sway_log(L_DEBUG, "Got scale factor %d for output %p", factor, data);
}
static const struct wl_output_listener output_listener = {