xwayland
This commit is contained in:
+2
-1
@@ -1,6 +1,7 @@
|
||||
#include "types.h"
|
||||
|
||||
void client_from_coords(absn_server *server, double x, double y, struct wlr_surface **rsurface, absn_toplevel **rtoplevel, absn_layer_surface **rlayer_surface, double *rx, double *ry);
|
||||
void client_from_coords(absn_server *server, double x, double y, struct wlr_surface **rsurface,
|
||||
absn_toplevel **rtoplevel, absn_layer_surface **rlayer_surface, double *rx, double *ry);
|
||||
|
||||
void reset_cursor_mode(absn_server *server);
|
||||
void process_cursor_motion(absn_server *server, uint32_t time);
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "types.h"
|
||||
|
||||
bool toplevel_is_unmanaged(absn_toplevel *toplevel);
|
||||
bool toplevel_wants_focus(absn_toplevel *toplevel);
|
||||
|
||||
void toplevel_get_geom(absn_toplevel *toplevel);
|
||||
|
||||
|
||||
+7
-5
@@ -28,10 +28,10 @@
|
||||
#define MAX(A, B) (A) > (B) ? (A) : (B)
|
||||
#define MIN(A, B) (A) < (B) ? (A) : (B)
|
||||
/* macro for adding listener for event */
|
||||
#define LISTEN(L, C, E) \
|
||||
do { \
|
||||
(L).notify = (C); \
|
||||
wl_signal_add(&(E), &(L)); \
|
||||
#define LISTEN(L, C, E) \
|
||||
do { \
|
||||
(L).notify = (C); \
|
||||
wl_signal_add(&(E), &(L)); \
|
||||
} while (0);
|
||||
#define UNUSED(X) (void)(X)
|
||||
#define CLEANMASK(M) (M & ~WLR_MODIFIER_CAPS)
|
||||
@@ -51,7 +51,7 @@ enum {
|
||||
BOTTOM_RIGHT,
|
||||
};
|
||||
|
||||
/* toplevel types */
|
||||
/* client types */
|
||||
enum {
|
||||
TOPLEVEL_XDG,
|
||||
TOPLEVEL_X11,
|
||||
@@ -218,6 +218,8 @@ struct absn_toplevel {
|
||||
struct wlr_scene_rect *border[4];
|
||||
struct wlr_xdg_toplevel_decoration_v1 *deco;
|
||||
|
||||
bool can_be_tiled;
|
||||
|
||||
bool floating;
|
||||
bool fullscreen;
|
||||
bool urgent;
|
||||
|
||||
Reference in New Issue
Block a user