summaryrefslogtreecommitdiff
path: root/include/sway/tree
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/tree')
-rw-r--r--include/sway/tree/container.h8
-rw-r--r--include/sway/tree/node.h1
-rw-r--r--include/sway/tree/view.h13
-rw-r--r--include/sway/tree/workspace.h1
4 files changed, 21 insertions, 2 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 3cd668f9..42fb71bf 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -119,6 +119,11 @@ struct sway_container {
float saturation;
+ // Stores last output size and position for adjusting coordinates of
+ // scratchpad windows.
+ // Unused for non-scratchpad windows.
+ struct wlr_box transform;
+
float alpha;
int corner_radius;
@@ -206,6 +211,9 @@ size_t container_titlebar_height(void);
void floating_calculate_constraints(int *min_width, int *max_width,
int *min_height, int *max_height);
+void floating_fix_coordinates(struct sway_container *con,
+ struct wlr_box *old, struct wlr_box *new);
+
void container_floating_resize_and_center(struct sway_container *con);
void container_floating_set_default_size(struct sway_container *con);
diff --git a/include/sway/tree/node.h b/include/sway/tree/node.h
index 470ee3b5..03a389a4 100644
--- a/include/sway/tree/node.h
+++ b/include/sway/tree/node.h
@@ -1,5 +1,6 @@
#ifndef _SWAY_NODE_H
#define _SWAY_NODE_H
+#include <wayland-server-core.h>
#include <stdbool.h>
#include "list.h"
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index 7b52aa4b..76cfdf3a 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -2,7 +2,7 @@
#define _SWAY_VIEW_H
#include <wayland-server-core.h>
#include <wlr/types/wlr_compositor.h>
-#include "config.h"
+#include "sway/config.h"
#if HAVE_XWAYLAND
#include <wlr/xwayland.h>
#endif
@@ -162,6 +162,8 @@ struct sway_xwayland_view {
struct wl_listener set_window_type;
struct wl_listener set_hints;
struct wl_listener set_decorations;
+ struct wl_listener associate;
+ struct wl_listener dissociate;
struct wl_listener map;
struct wl_listener unmap;
struct wl_listener destroy;
@@ -179,6 +181,8 @@ struct sway_xwayland_unmanaged {
struct wl_listener request_fullscreen;
struct wl_listener commit;
struct wl_listener set_geometry;
+ struct wl_listener associate;
+ struct wl_listener dissociate;
struct wl_listener map;
struct wl_listener unmap;
struct wl_listener destroy;
@@ -273,7 +277,12 @@ void view_set_activated(struct sway_view *view, bool activated);
/**
* Called when the view requests to be focused.
*/
-void view_request_activate(struct sway_view *view);
+void view_request_activate(struct sway_view *view, struct sway_seat *seat);
+
+/*
+ * Called when the view requests urgent state
+ */
+void view_request_urgent(struct sway_view *view);
/**
* If possible, instructs the client to change their decoration mode.
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h
index d25afbb2..1e7d9b82 100644
--- a/include/sway/tree/workspace.h
+++ b/include/sway/tree/workspace.h
@@ -2,6 +2,7 @@
#define _SWAY_WORKSPACE_H
#include <stdbool.h>
+#include "sway/config.h"
#include "sway/tree/container.h"
#include "sway/tree/node.h"