aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-13 08:17:46 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-14 11:38:09 +1000
commitbffcb496cc002d9c8a41285eaabd908b322a9c99 (patch)
tree05804e10646a52a83a9bfd8c23318bb603f66cc4 /sway/tree/view.c
parentRevert "Revert "Merge pull request #1943 from RyanDwyer/criteria-improvements"" (diff)
downloadsway-bffcb496cc002d9c8a41285eaabd908b322a9c99.tar.gz
sway-bffcb496cc002d9c8a41285eaabd908b322a9c99.tar.zst
sway-bffcb496cc002d9c8a41285eaabd908b322a9c99.zip
Revert "Revert "Merge pull request #1953 from RyanDwyer/criteria-focused""
This reverts commit ac0e62584f6101277b76622a7274866cd50f615c. This reimplements the criteria __focused__ commit in preparation for fixing a known bug.
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index 8fc45f52..f872bef6 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -81,6 +81,13 @@ uint32_t view_get_x11_window_id(struct sway_view *view) {
81 return 0; 81 return 0;
82} 82}
83 83
84const char *view_get_window_role(struct sway_view *view) {
85 if (view->impl->get_string_prop) {
86 return view->impl->get_string_prop(view, VIEW_PROP_WINDOW_ROLE);
87 }
88 return NULL;
89}
90
84uint32_t view_get_window_type(struct sway_view *view) { 91uint32_t view_get_window_type(struct sway_view *view) {
85 if (view->impl->get_int_prop) { 92 if (view->impl->get_int_prop) {
86 return view->impl->get_int_prop(view, VIEW_PROP_WINDOW_TYPE); 93 return view->impl->get_int_prop(view, VIEW_PROP_WINDOW_TYPE);