Use proper enum argument type for desktop_surface_and_view_at

This commit is contained in:
Consolatis 2022-01-29 17:52:16 +01:00 committed by Johan Malm
parent 7ecae4afce
commit 413811f3a2
4 changed files with 14 additions and 8 deletions

View file

@ -43,6 +43,7 @@
#include <xkbcommon/xkbcommon.h>
#include "config/keybind.h"
#include "config/rcxml.h"
#include "ssd.h"
#define XCURSOR_DEFAULT "left_ptr"
#define XCURSOR_SIZE 24
@ -448,7 +449,7 @@ bool isfocusable(struct view *view);
*/
struct view *desktop_surface_and_view_at(struct server *server, double lx,
double ly, struct wlr_surface **surface, double *sx, double *sy,
int *view_area);
enum ssd_part_type *view_area);
struct view *desktop_view_at_cursor(struct server *server);

View file

@ -2,8 +2,6 @@
#ifndef __LABWC_SSD_H
#define __LABWC_SSD_H
#include "labwc.h"
/*
* Sequence these according to the order they should be processed for
* press and hover events. Bear in mind that some of their respective
@ -31,6 +29,13 @@ enum ssd_part_type {
LAB_SSD_END_MARKER
};
/*
* Defer including labwc.h because it is using enum ssd_part_type.
* This is an issue for headers like mousebind.h which only includes
* ssd.h but does not include labwc.h.
*/
#include "labwc.h"
struct ssd_part {
struct wlr_box box;
enum ssd_part_type type;