cursor: revert 6651d; remove cursor_update_focus()

...to ensure new windows receive keyboard focus even if the cursor is
over an existing window.

Fix issue #210
This commit is contained in:
Johan Malm 2022-01-24 17:51:54 +00:00
parent 875b258602
commit 2652522a70
3 changed files with 0 additions and 23 deletions

View file

@ -280,20 +280,6 @@ process_cursor_motion(struct server *server, uint32_t time)
}
}
static uint32_t
msec(const struct timespec *t)
{
return t->tv_sec * 1000 + t->tv_nsec / 1000000;
}
void
cursor_update_focus(struct server *server)
{
struct timespec now;
clock_gettime(CLOCK_MONOTONIC, &now);
process_cursor_motion(server, msec(&now));
}
void
start_drag(struct wl_listener *listener, void *data)
{

View file

@ -61,7 +61,6 @@ desktop_move_to_front(struct view *view)
#if HAVE_XWAYLAND
move_xwayland_sub_views_to_front(view);
#endif
cursor_update_focus(view->server);
}
static void