summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <RyanDwyer@users.noreply.github.com>2018-05-28 00:14:22 +1000
committerLibravatar GitHub <noreply@github.com>2018-05-28 00:14:22 +1000
commit8fda41dab52656c7c4a0db9a835ae57cea994538 (patch)
tree2b0c481616cd738e0f6ca92be9594eec7707799b /include
parentImplement swap command (diff)
parentMerge pull request #2043 from emersion/pool-buffer-fixes (diff)
downloadsway-8fda41dab52656c7c4a0db9a835ae57cea994538.tar.gz
sway-8fda41dab52656c7c4a0db9a835ae57cea994538.tar.zst
sway-8fda41dab52656c7c4a0db9a835ae57cea994538.zip
Merge branch 'master' into cmd-swap
Diffstat (limited to 'include')
-rw-r--r--include/pool-buffer.h2
-rw-r--r--include/sway/criteria.h1
-rw-r--r--include/sway/tree/view.h2
-rw-r--r--include/swaylock/swaylock.h3
4 files changed, 7 insertions, 1 deletions
diff --git a/include/pool-buffer.h b/include/pool-buffer.h
index 856f7c8c..54f5be06 100644
--- a/include/pool-buffer.h
+++ b/include/pool-buffer.h
@@ -12,6 +12,8 @@ struct pool_buffer {
12 cairo_t *cairo; 12 cairo_t *cairo;
13 PangoContext *pango; 13 PangoContext *pango;
14 uint32_t width, height; 14 uint32_t width, height;
15 void *data;
16 size_t size;
15 bool busy; 17 bool busy;
16}; 18};
17 19
diff --git a/include/sway/criteria.h b/include/sway/criteria.h
index 74da132c..bd3ca0ac 100644
--- a/include/sway/criteria.h
+++ b/include/sway/criteria.h
@@ -18,6 +18,7 @@ struct criteria {
18 char *target; // workspace or output name for `assign` criteria 18 char *target; // workspace or output name for `assign` criteria
19 19
20 pcre *title; 20 pcre *title;
21 pcre *shell;
21 pcre *app_id; 22 pcre *app_id;
22 pcre *class; 23 pcre *class;
23 pcre *instance; 24 pcre *instance;
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index 0fb8f1b3..a8bf4955 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -201,7 +201,7 @@ const char *view_get_window_role(struct sway_view *view);
201 201
202uint32_t view_get_window_type(struct sway_view *view); 202uint32_t view_get_window_type(struct sway_view *view);
203 203
204const char *view_get_type(struct sway_view *view); 204const char *view_get_shell(struct sway_view *view);
205 205
206void view_configure(struct sway_view *view, double ox, double oy, int width, 206void view_configure(struct sway_view *view, double ox, double oy, int width,
207 int height); 207 int height);
diff --git a/include/swaylock/swaylock.h b/include/swaylock/swaylock.h
index dae823b8..2931fd61 100644
--- a/include/swaylock/swaylock.h
+++ b/include/swaylock/swaylock.h
@@ -56,6 +56,7 @@ struct swaylock_surface {
56 struct zwlr_layer_surface_v1 *layer_surface; 56 struct zwlr_layer_surface_v1 *layer_surface;
57 struct pool_buffer buffers[2]; 57 struct pool_buffer buffers[2];
58 struct pool_buffer *current_buffer; 58 struct pool_buffer *current_buffer;
59 bool frame_pending, dirty;
59 uint32_t width, height; 60 uint32_t width, height;
60 int32_t scale; 61 int32_t scale;
61 char *output_name; 62 char *output_name;
@@ -74,5 +75,7 @@ void swaylock_handle_key(struct swaylock_state *state,
74 xkb_keysym_t keysym, uint32_t codepoint); 75 xkb_keysym_t keysym, uint32_t codepoint);
75void render_frame(struct swaylock_surface *surface); 76void render_frame(struct swaylock_surface *surface);
76void render_frames(struct swaylock_state *state); 77void render_frames(struct swaylock_state *state);
78void damage_surface(struct swaylock_surface *surface);
79void damage_state(struct swaylock_state *state);
77 80
78#endif 81#endif