mirror of
https://github.com/swaywm/sway.git
synced 2025-11-09 13:29:49 -05:00
Use WLC v2 pointer interface
This commit is contained in:
parent
df17a268b9
commit
c29e5bbde8
5 changed files with 42 additions and 44 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue