aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-07-31 14:32:53 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-08-07 14:53:19 +0000
commit7eee415b7573f5a20852c6e29001945149e920a2 (patch)
tree5ab946564dc5ce701c3e906688563143413a0bb4 /wayland.h
parentwayland: xdg-activation is now always available (diff)
wayland: fractional-scale-v1 is now always available
Since we're requiring wayland-protocols >= 1.32
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h26
1 files changed, 8 insertions, 18 deletions
diff --git a/wayland.h b/wayland.h
index c200e79f..4130bc09 100644
--- a/wayland.h
+++ b/wayland.h
@@ -9,18 +9,15 @@
#include <xkbcommon/xkbcommon.h>
/* Wayland protocols */
+#include <fractional-scale-v1.h>
#include <presentation-time.h>
#include <primary-selection-unstable-v1.h>
#include <text-input-unstable-v3.h>
+#include <viewporter.h>
+#include <xdg-activation-v1.h>
#include <xdg-decoration-unstable-v1.h>
#include <xdg-output-unstable-v1.h>
#include <xdg-shell.h>
-#include <xdg-activation-v1.h>
-
-#if defined(HAVE_FRACTIONAL_SCALE)
- #include <viewporter.h>
- #include <fractional-scale-v1.h>
-#endif
#include <fcft/fcft.h>
#include <tllist.h>
@@ -54,9 +51,7 @@ enum touch_state {
struct wayl_surface {
struct wl_surface *surf;
-#if defined(HAVE_FRACTIONAL_SCALE)
struct wp_viewport *viewport;
-#endif
};
struct wayl_sub_surface {
@@ -362,15 +357,12 @@ struct wl_window {
struct wayl_surface surface;
struct xdg_surface *xdg_surface;
struct xdg_toplevel *xdg_toplevel;
+ struct wp_fractional_scale_v1 *fractional_scale;
tll(struct xdg_activation_token_context *) xdg_tokens;
bool urgency_token_is_pending;
-#if defined(HAVE_FRACTIONAL_SCALE)
- struct wp_fractional_scale_v1 *fractional_scale;
-#endif
bool unmapped;
-
float scale;
struct zxdg_toplevel_decoration_v1 *xdg_toplevel_decoration;
@@ -448,6 +440,9 @@ struct wayland {
struct xdg_activation_v1 *xdg_activation;
+ struct wp_viewporter *viewporter;
+ struct wp_fractional_scale_manager_v1 *fractional_scale_manager;
+
#if defined(HAVE_CURSOR_SHAPE)
struct wp_cursor_shape_manager_v1 *cursor_shape_manager;
#endif
@@ -455,16 +450,11 @@ struct wayland {
bool presentation_timings;
struct wp_presentation *presentation;
uint32_t presentation_clock_id;
-
+
#if defined(FOOT_IME_ENABLED) && FOOT_IME_ENABLED
struct zwp_text_input_manager_v3 *text_input_manager;
#endif
-#if defined(HAVE_FRACTIONAL_SCALE)
- struct wp_viewporter *viewporter;
- struct wp_fractional_scale_manager_v1 *fractional_scale_manager;
-#endif
-
bool have_argb8888;
tll(struct monitor) monitors; /* All available outputs */
tll(struct seat) seats;