Mouse support

This commit is contained in:
Keith Bowes 2020-02-21 16:49:29 -05:00
parent 0bb5787a10
commit 43fcf1ebf1
5 changed files with 206 additions and 0 deletions

View file

@ -4,12 +4,20 @@
#include <wlr/types/wlr_cursor.h>
#include <wlr/types/wlr_xcursor_manager.h>
#include "waybox/server.h"
struct wb_cursor {
struct wlr_cursor *cursor;
struct wlr_xcursor_manager *xcursor_manager;
struct wb_server *server;
struct wl_listener cursor_motion;
struct wl_listener cursor_motion_absolute;
struct wl_listener cursor_button;
struct wl_listener cursor_axis;
struct wl_listener cursor_frame;
};
struct wb_cursor *wb_cursor_create();

View file

@ -2,3 +2,6 @@
void init_xdg_shell(struct wb_server *server);
void focus_view(struct wb_view *view, struct wlr_surface *surface);
struct wb_view *desktop_view_at(
struct wb_server *server, double lx, double ly,
struct wlr_surface **surface, double *sx, double *sy);