aboutsummaryrefslogtreecommitdiff
path: root/rootston/output.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-11-12 17:10:11 -0500
committerGitHub <noreply@github.com>2017-11-12 17:10:11 -0500
commit855c117efdab06bd232a3f0d6e81d7288a0551ed (patch)
treead2aa347b862cc7446a1cc80f5932847e1491fbe /rootston/output.c
parenta317ecdab8ef8deb184b72db208794daa4c4a3a0 (diff)
parentf8b43940b1a14e78c5365c9c1d17bfc79f523530 (diff)
Merge pull request #412 from emersion/cursor-scale
Scale cursors on scaled outputs
Diffstat (limited to 'rootston/output.c')
-rw-r--r--rootston/output.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/rootston/output.c b/rootston/output.c
index 4b7a4b00..145016b3 100644
--- a/rootston/output.c
+++ b/rootston/output.c
@@ -5,6 +5,7 @@
#include <wlr/types/wlr_output_layout.h>
#include <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_wl_shell.h>
+#include <wlr/types/wlr_xcursor_manager.h>
#include <wlr/types/wlr_xdg_shell_v6.h>
#include <wlr/render/matrix.h>
#include <wlr/util/log.h>
@@ -248,6 +249,12 @@ void output_add_notify(struct wl_listener *listener, void *data) {
struct roots_seat *seat;
wl_list_for_each(seat, &input->seats, link) {
+ if (wlr_xcursor_manager_load(seat->cursor->xcursor_manager,
+ wlr_output->scale)) {
+ wlr_log(L_ERROR, "Cannot load xcursor theme for output '%s' "
+ "with scale %d", wlr_output->name, wlr_output->scale);
+ }
+
roots_seat_configure_cursor(seat);
roots_seat_configure_xcursor(seat);
}