Do not display a cursor on output creation

Now we don't display a cursor unless a pointer device is connected.

Fixes #2
This commit is contained in:
Jente Hidskes 2018-12-31 00:55:19 +01:00
parent fd4ff669dd
commit a9818c0df1
No known key found for this signature in database
GPG key ID: 04BE5A29F32D91EA
3 changed files with 1 additions and 5 deletions

2
seat.c
View file

@ -20,6 +20,7 @@
#include "server.h"
#include "view.h"
#define DEFAULT_XCURSOR "left_ptr"
#define XCURSOR_SIZE 24
static inline bool
@ -353,7 +354,6 @@ process_cursor_motion(struct cg_seat *seat, uint32_t time)
surface. There cannot be a surface without a view,
either. It's both or nothing. */
if (!view) {
// wlr_xcursor_manager_set_cursor_image(seat->cursor_mgr, DEFAULT_XCURSOR, seat->cursor);
wlr_seat_pointer_clear_focus(wlr_seat);
} else {
wlr_seat_pointer_notify_enter(wlr_seat, surface, sx, sy);