Use WLC v2 pointer interface

This commit is contained in:
Scott Anderson 2017-07-12 16:39:14 +12:00
parent df17a268b9
commit c29e5bbde8
5 changed files with 42 additions and 44 deletions

View file

@ -707,8 +707,10 @@ swayc_t *container_under_pointer(void) {
if (lookup->children && !lookup->unmanaged) {
return NULL;
}
struct wlc_point origin;
wlc_pointer_get_position(&origin);
double x, y;
wlc_pointer_get_position_v2(&x, &y);
struct wlc_point origin = { .x = x, .y = y };
while (lookup && lookup->type != C_VIEW) {
int i;
int len;