mirror of
https://github.com/swaywm/sway.git
synced 2024-11-11 04:54:14 +01:00
We wlc_point now
cc @Cloudef
This commit is contained in:
parent
ab3d6f6fa1
commit
95442dac8d
@ -510,7 +510,7 @@ swayc_t *swayc_active_workspace_for(swayc_t *cont) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static bool pointer_test(swayc_t *view, void *_origin) {
|
static bool pointer_test(swayc_t *view, void *_origin) {
|
||||||
const struct wlc_origin *origin = _origin;
|
const struct wlc_point *origin = _origin;
|
||||||
// Determine the output that the view is under
|
// Determine the output that the view is under
|
||||||
swayc_t *parent = swayc_parent_by_type(view, C_OUTPUT);
|
swayc_t *parent = swayc_parent_by_type(view, C_OUTPUT);
|
||||||
if (origin->x >= view->x && origin->y >= view->y
|
if (origin->x >= view->x && origin->y >= view->y
|
||||||
@ -531,8 +531,8 @@ swayc_t *container_under_pointer(void) {
|
|||||||
if (lookup->children == 0) {
|
if (lookup->children == 0) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
struct wlc_origin origin;
|
struct wlc_point origin;
|
||||||
wlc_pointer_get_origin(&origin);
|
wlc_pointer_get_position(&origin);
|
||||||
while (lookup->type != C_VIEW) {
|
while (lookup->type != C_VIEW) {
|
||||||
int i;
|
int i;
|
||||||
int len;
|
int len;
|
||||||
|
Loading…
Reference in New Issue
Block a user