mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-17 05:34:19 -04:00
seat: move desktop_view_at comment
This commit is contained in:
parent
183e509dd9
commit
7077f9ba1c
1 changed files with 3 additions and 4 deletions
7
seat.c
7
seat.c
|
|
@ -60,7 +60,9 @@ view_at(struct cg_view *view, double lx, double ly,
|
||||||
|
|
||||||
/* This iterates over all of our surfaces and attempts to find one
|
/* This iterates over all of our surfaces and attempts to find one
|
||||||
* under the cursor. This relies on server->views being ordered from
|
* under the cursor. This relies on server->views being ordered from
|
||||||
* top-to-bottom. */
|
* top-to-bottom. If desktop_view_at returns a view, there is also a
|
||||||
|
* surface. There cannot be a surface without a view, either. It's
|
||||||
|
* both or nothing. */
|
||||||
static struct cg_view *
|
static struct cg_view *
|
||||||
desktop_view_at(struct cg_server *server, double lx, double ly,
|
desktop_view_at(struct cg_server *server, double lx, double ly,
|
||||||
struct wlr_surface **surface, double *sx, double *sy)
|
struct wlr_surface **surface, double *sx, double *sy)
|
||||||
|
|
@ -341,9 +343,6 @@ process_cursor_motion(struct cg_seat *seat, uint32_t time)
|
||||||
seat->cursor->x, seat->cursor->y,
|
seat->cursor->x, seat->cursor->y,
|
||||||
&surface, &sx, &sy);
|
&surface, &sx, &sy);
|
||||||
|
|
||||||
/* If desktop_view_at returns a view, there is also a
|
|
||||||
surface. There cannot be a surface without a view,
|
|
||||||
either. It's both or nothing. */
|
|
||||||
if (!view) {
|
if (!view) {
|
||||||
wlr_seat_pointer_clear_focus(wlr_seat);
|
wlr_seat_pointer_clear_focus(wlr_seat);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue