aboutsummaryrefslogtreecommitdiff
path: root/include/sway/output.h
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-07-27 18:17:47 +0100
committeremersion <contact@emersion.fr>2018-07-29 14:33:26 +0100
commitd2172bd331937ab406175a6b4c5a76db6f406fbe (patch)
tree1fe59e7023589c1c8f0ef0f512e2de8aa6df36fa /include/sway/output.h
parent8fcf0505d096ce1564e39fb5f6c2256e3f704ad2 (diff)
wip: redesign output_unmanaged_for_each_surface iterator
Diffstat (limited to 'include/sway/output.h')
-rw-r--r--include/sway/output.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/include/sway/output.h b/include/sway/output.h
index c225e541..99b0bcc6 100644
--- a/include/sway/output.h
+++ b/include/sway/output.h
@@ -5,6 +5,7 @@
#include <wayland-server.h>
#include <wlr/types/wlr_box.h>
#include <wlr/types/wlr_output.h>
+#include "config.h"
#include "sway/tree/view.h"
struct sway_server;
@@ -48,6 +49,10 @@ struct root_geometry {
float rotation;
};
+typedef void (*sway_surface_iterator_func_t)(struct sway_output *output,
+ struct wlr_surface *surface, struct wlr_box *box, float rotation,
+ void *user_data);
+
void output_damage_whole(struct sway_output *output);
void output_damage_surface(struct sway_output *output, double ox, double oy,
@@ -80,6 +85,10 @@ void output_surface_for_each_surface(struct wlr_surface *surface,
double ox, double oy, struct root_geometry *geo,
wlr_surface_iterator_func_t iterator, void *user_data);
+void output_surface_for_each_surface2(struct sway_output *output,
+ struct wlr_surface *surface, double ox, double oy, float rotation,
+ sway_surface_iterator_func_t iterator, void *user_data);
+
void output_view_for_each_surface(struct sway_view *view,
struct sway_output *output, struct root_geometry *geo,
wlr_surface_iterator_func_t iterator, void *user_data);
@@ -88,9 +97,11 @@ void output_layer_for_each_surface(struct wl_list *layer_surfaces,
struct root_geometry *geo, wlr_surface_iterator_func_t iterator,
void *user_data);
-void output_unmanaged_for_each_surface(struct wl_list *unmanaged,
- struct sway_output *output, struct root_geometry *geo,
- wlr_surface_iterator_func_t iterator, void *user_data);
+#ifdef HAVE_XWAYLAND
+void output_unmanaged_for_each_surface(struct sway_output *output,
+ struct wl_list *unmanaged, sway_surface_iterator_func_t iterator,
+ void *user_data);
+#endif
void output_drag_icons_for_each_surface(struct wl_list *drag_icons,
struct sway_output *output, struct root_geometry *geo,