diff options
author | emersion <contact@emersion.fr> | 2017-12-01 16:08:01 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-12-01 16:08:01 +0100 |
commit | acc8f368945d540796078f0530234734e5cb1b37 (patch) | |
tree | e2b633e2d6e63755ad4c1119ef854ed093b89f32 /rootston | |
parent | 4a56957a37669b38038910b41eb2b128f3a5042e (diff) |
Fix pointer input for transformed surfaces
Diffstat (limited to 'rootston')
-rw-r--r-- | rootston/desktop.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c index bb3af258..8cede819 100644 --- a/rootston/desktop.c +++ b/rootston/desktop.c @@ -295,10 +295,8 @@ static bool view_at(struct roots_view *view, double lx, double ly, struct wlr_surface_state *state = view->wlr_surface->current; struct wlr_box box = { - .x = 0, - .y = 0, - .width = state->buffer_width / state->scale, - .height = state->buffer_height / state->scale, + .x = 0, .y = 0, + .width = state->width, .height = state->height, }; if (view->rotation != 0.0) { // Coordinates relative to the center of the view |