mirror of
https://github.com/wizbright/waybox.git
synced 2025-11-01 22:58:42 -04:00
Mouse support
This commit is contained in:
parent
0bb5787a10
commit
43fcf1ebf1
5 changed files with 206 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue