mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-09 15:05:58 +01:00
Merge pull request #235 from acrisci/bug/subsurface-location
bug: subsurface location calculation
This commit is contained in:
commit
906ed92e31
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ static struct wlr_subsurface *subsurface_at(struct wlr_surface *surface,
|
||||||
int sub_width = subsurface->surface->current->buffer_width;
|
int sub_width = subsurface->surface->current->buffer_width;
|
||||||
int sub_height = subsurface->surface->current->buffer_height;
|
int sub_height = subsurface->surface->current->buffer_height;
|
||||||
if ((sx > _sub_x && sx < _sub_x + sub_width) &&
|
if ((sx > _sub_x && sx < _sub_x + sub_width) &&
|
||||||
(sy > _sub_y && sub_y < sub_y + sub_height)) {
|
(sy > _sub_y && sy < _sub_y + sub_height)) {
|
||||||
*sub_x = _sub_x;
|
*sub_x = _sub_x;
|
||||||
*sub_y = _sub_y;
|
*sub_y = _sub_y;
|
||||||
return subsurface;
|
return subsurface;
|
||||||
|
|
Loading…
Reference in a new issue