mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
Fix pointer input for transformed surfaces
This commit is contained in:
parent
4a56957a37
commit
acc8f36894
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue