@ -84,18 +84,21 @@ static struct sway_container *container_at_cursor(struct sway_cursor *cursor,
ox , oy , sx , sy ) ) ) {
ox , oy , sx , sy ) ) ) {
return ws ;
return ws ;
}
}
if ( ( * surface = layer_surface_at ( output ,
& output - > layers [ ZWLR_LAYER_SHELL_V1_LAYER_TOP ] ,
ox , oy , sx , sy ) ) ) {
return ws ;
}
if ( ws - > sway_workspace - > fullscreen ) {
if ( ws - > sway_workspace - > fullscreen ) {
struct wlr_surface * wlr_surface = ws - > sway_workspace - > fullscreen - > surface ;
if ( wlr_surface_point_accepts_input ( wlr_surface , ox , oy ) ) {
* sx = ox ;
* sx = ox ;
* sy = oy ;
* sy = oy ;
* surface = ws - > sway_workspace - > fullscreen - > surface;
* surface = wlr_surface ;
return ws - > sway_workspace - > fullscreen - > swayc ;
return ws - > sway_workspace - > fullscreen - > swayc ;
}
}
return NULL ;
}
if ( ( * surface = layer_surface_at ( output ,
& output - > layers [ ZWLR_LAYER_SHELL_V1_LAYER_TOP ] ,
ox , oy , sx , sy ) ) ) {
return ws ;
}
struct sway_container * c ;
struct sway_container * c ;
if ( ( c = container_at ( ws , cursor - > cursor - > x , cursor - > cursor - > y ,
if ( ( c = container_at ( ws , cursor - > cursor - > x , cursor - > cursor - > y ,