mirror of
https://github.com/swaywm/sway.git
synced 2025-01-01 18:06:47 +01:00
subsurface input
This commit is contained in:
parent
76ce629198
commit
619254db76
1 changed files with 13 additions and 0 deletions
|
@ -288,6 +288,19 @@ swayc_t *swayc_at(swayc_t *parent, double lx, double ly,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check for subsurfaces
|
||||||
|
double sub_x, sub_y;
|
||||||
|
struct wlr_subsurface *subsurface =
|
||||||
|
wlr_surface_subsurface_at(sview->surface,
|
||||||
|
view_sx, view_sy, &sub_x, &sub_y);
|
||||||
|
if (subsurface) {
|
||||||
|
*sx = view_sx - sub_x;
|
||||||
|
*sy = view_sy - sub_y;
|
||||||
|
*surface = subsurface->surface;
|
||||||
|
list_free(queue);
|
||||||
|
return swayc;
|
||||||
|
}
|
||||||
|
|
||||||
if (view_sx > 0 && view_sx < width &&
|
if (view_sx > 0 && view_sx < width &&
|
||||||
view_sy > 0 && view_sy < height &&
|
view_sy > 0 && view_sy < height &&
|
||||||
pixman_region32_contains_point(
|
pixman_region32_contains_point(
|
||||||
|
|
Loading…
Reference in a new issue