Skip to content

Commit

Permalink
view: Return visible geo as input area for x views
Browse files Browse the repository at this point in the history
X11 surfaces don't have input area semantics so just return the visible
geometry.
  • Loading branch information
Cloudef committed Aug 2, 2016
1 parent 7b8a964 commit 69e4bd9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/compositor/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,12 @@ wlc_view_get_input(struct wlc_view *view, struct wlc_geometry *out_input)
assert(view && out_input);
struct wlc_geometry b, v;
wlc_view_get_bounds(view, &b, &v);

if (is_x11_view(view)) {
*out_input = v;
return;
}

wlc_surface_get_input(convert_from_wlc_resource(view->surface, "surface"), &v.origin, out_input);
}

Expand Down

0 comments on commit 69e4bd9

Please sign in to comment.