aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-04-24 20:14:22 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-04-24 20:14:22 +1000
commitdfc26c664f8c1b007f15ff24a3055774af200c69 (patch)
treeba653dd483886b125045251e63c23f2c7360552b
parentUse size_t instead of int and calloc instead of malloc (diff)
downloadsway-dfc26c664f8c1b007f15ff24a3055774af200c69.tar.gz
sway-dfc26c664f8c1b007f15ff24a3055774af200c69.tar.zst
sway-dfc26c664f8c1b007f15ff24a3055774af200c69.zip
Update wording about unmanaged/unmapped views
-rw-r--r--include/sway/tree/view.h2
-rw-r--r--sway/tree/view.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index 648a74c4..7237ea2a 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -39,7 +39,7 @@ struct sway_view {
39 enum sway_view_type type; 39 enum sway_view_type type;
40 const struct sway_view_impl *impl; 40 const struct sway_view_impl *impl;
41 41
42 struct sway_container *swayc; // NULL for unmanaged views 42 struct sway_container *swayc; // NULL for unmapped views
43 struct wlr_surface *surface; // NULL for unmapped views 43 struct wlr_surface *surface; // NULL for unmapped views
44 int width, height; 44 int width, height;
45 bool is_fullscreen; 45 bool is_fullscreen;
diff --git a/sway/tree/view.c b/sway/tree/view.c
index 3d22d3e4..3eeb1d97 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -212,7 +212,7 @@ static void view_handle_container_reparent(struct wl_listener *listener,
212} 212}
213 213
214static void view_execute_criteria(struct sway_view *view) { 214static void view_execute_criteria(struct sway_view *view) {
215 if (!sway_assert(view->swayc, "cannot run criteria for unmanaged view")) { 215 if (!sway_assert(view->swayc, "cannot run criteria for unmapped view")) {
216 return; 216 return;
217 } 217 }
218 struct sway_seat *seat = input_manager_current_seat(input_manager); 218 struct sway_seat *seat = input_manager_current_seat(input_manager);