mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 16:06:37 +01:00
Merge pull request #2411 from emersion/fullscreen-pointer-input
Fix pointer events for fullscreen views
This commit is contained in:
commit
e07da5fc5c
3 changed files with 7 additions and 2 deletions
|
@ -234,6 +234,10 @@ struct sway_container *container_at(struct sway_container *workspace,
|
|||
double lx, double ly, struct wlr_surface **surface,
|
||||
double *sx, double *sy);
|
||||
|
||||
struct sway_container *container_at_view(struct sway_container *view,
|
||||
double lx, double ly, struct wlr_surface **surface,
|
||||
double *sx, double *sy);
|
||||
|
||||
/**
|
||||
* Apply the function for each descendant of the container breadth first.
|
||||
*/
|
||||
|
|
|
@ -99,7 +99,8 @@ static struct sway_container *container_at_coords(
|
|||
return ws;
|
||||
}
|
||||
if (ws->sway_workspace->fullscreen) {
|
||||
return container_at(ws, lx, ly, surface, sx, sy);
|
||||
return container_at_view(ws->sway_workspace->fullscreen, lx, ly,
|
||||
surface, sx, sy);
|
||||
}
|
||||
if ((*surface = layer_surface_at(output,
|
||||
&output->layers[ZWLR_LAYER_SHELL_V1_LAYER_TOP],
|
||||
|
|
|
@ -535,7 +535,7 @@ struct sway_container *container_parent(struct sway_container *container,
|
|||
return container;
|
||||
}
|
||||
|
||||
static struct sway_container *container_at_view(struct sway_container *swayc,
|
||||
struct sway_container *container_at_view(struct sway_container *swayc,
|
||||
double lx, double ly,
|
||||
struct wlr_surface **surface, double *sx, double *sy) {
|
||||
if (!sway_assert(swayc->type == C_VIEW, "Expected a view")) {
|
||||
|
|
Loading…
Reference in a new issue