diff options
| author | sam-barr <mail@samf.bar> | 2021-01-11 07:47:04 -0500 | 
|---|---|---|
| committer | sam-barr <mail@samf.bar> | 2021-01-11 07:47:04 -0500 | 
| commit | 3d696dfb7deb26d87d71a61af52192800e0d56a1 (patch) | |
| tree | 393d4f658e95996fbf75d089a4bf853ac378e3d8 /dwl.c | |
| parent | 4bf2923f4ec7d3dadc5a36928f8e98d9734b207d (diff) | |
Fix Initialization of NetWM Atoms
Additionally, variables xcursor and xcursor_mgr are only used
when xwayland is defined, so I make the variables declaration
contingent on whether xwayland is being used
Diffstat (limited to 'dwl.c')
| -rw-r--r-- | dwl.c | 6 | 
1 files changed, 4 insertions, 2 deletions
| @@ -320,8 +320,10 @@ static struct wlr_virtual_keyboard_manager_v1 *virtual_keyboard_mgr;  static struct wlr_cursor *cursor;  static struct wlr_xcursor_manager *cursor_mgr; +#ifdef XWAYLAND  static struct wlr_xcursor *xcursor;  static struct wlr_xcursor_manager *xcursor_mgr; +#endif  static struct wlr_seat *seat;  static struct wl_list keyboards; @@ -2517,8 +2519,8 @@ xwaylandready(struct wl_listener *listener, void *data)  	 * not detect that window type. */  	netatom[NetWMWindowTypeDialog] = getatom(xc, "_NET_WM_WINDOW_TYPE_DIALOG");  	netatom[NetWMWindowTypeSplash] = getatom(xc, "_NET_WM_WINDOW_TYPE_SPLASH"); -	netatom[NetWMWindowTypeUtility] = getatom(xc, "_NET_WM_WINDOW_TYPE_TOOLBAR"); -	netatom[NetWMWindowTypeToolbar] = getatom(xc, "_NET_WM_WINDOW_TYPE_UTILITY"); +	netatom[NetWMWindowTypeToolbar] = getatom(xc, "_NET_WM_WINDOW_TYPE_TOOLBAR"); +	netatom[NetWMWindowTypeUtility] = getatom(xc, "_NET_WM_WINDOW_TYPE_UTILITY");  	/* assign the one and only seat */  	wlr_xwayland_set_seat(xwayland, seat); | 
