diff options
author | Patrick Steinhardt <ps@pks.im> | 2018-01-28 12:04:46 +0000 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2018-01-28 12:07:15 +0000 |
commit | 52cb19d99d3d667f4475f404a333e347654808dc (patch) | |
tree | 09d7a66de31c65169f8ce996220bb3e70f01c7cc /include/rootston | |
parent | facc5ef93a705b4c4cbe4acb6ebd44b256db5d3e (diff) |
rootston: fix compilation without XWayland support
In case wlroots is not being compiled with XWayland support, we will not
have an xwayland surface in our roots view. While we make sure to pay
attention to that in some places, we are not being consistent and try to
access the xwayland surface in other places. Obviously, this leads to a
compiler error due to the field not being present.
Fix the issue by sprinkling in a few additional ifdefs where required.
Diffstat (limited to 'include/rootston')
-rw-r--r-- | include/rootston/view.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rootston/view.h b/include/rootston/view.h index e837586a..e1172bca 100644 --- a/include/rootston/view.h +++ b/include/rootston/view.h @@ -51,7 +51,9 @@ struct roots_xwayland_surface { enum roots_view_type { ROOTS_WL_SHELL_VIEW, ROOTS_XDG_SHELL_V6_VIEW, +#ifdef WLR_HAS_XWAYLAND ROOTS_XWAYLAND_VIEW, +#endif }; struct roots_view { |