diff options
author | Pascal Pascher <aur@clouddrop.de> | 2018-07-24 23:37:41 +0200 |
---|---|---|
committer | Pascal Pascher <aur@clouddrop.de> | 2018-07-24 23:37:41 +0200 |
commit | 2bf893248a94c7f70a9557aad4a8228731041eeb (patch) | |
tree | ec86137e1b5881151b20917f311ecce3d24fba8f /sway/desktop/render.c | |
parent | Added meson option "enable_xwayland" (default: true) to enable/disable xwayla... (diff) | |
download | sway-2bf893248a94c7f70a9557aad4a8228731041eeb.tar.gz sway-2bf893248a94c7f70a9557aad4a8228731041eeb.tar.zst sway-2bf893248a94c7f70a9557aad4a8228731041eeb.zip |
style fixes, exclude sway/desctop/xwayland.c when enable_xwayland: false
Diffstat (limited to 'sway/desktop/render.c')
-rw-r--r-- | sway/desktop/render.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c index 46bfec6b..2e6b6649 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c | |||
@@ -866,12 +866,12 @@ void output_render(struct sway_output *output, struct timespec *when, | |||
866 | } else { | 866 | } else { |
867 | render_view_surfaces(fullscreen_view, output, damage, 1.0f); | 867 | render_view_surfaces(fullscreen_view, output, damage, 1.0f); |
868 | } | 868 | } |
869 | #ifdef HAVE_XWAYLAND | 869 | #ifdef HAVE_XWAYLAND |
870 | if (fullscreen_view->type == SWAY_VIEW_XWAYLAND) { | 870 | if (fullscreen_view->type == SWAY_VIEW_XWAYLAND) { |
871 | render_unmanaged(output, damage, | 871 | render_unmanaged(output, damage, |
872 | &root_container.sway_root->xwayland_unmanaged); | 872 | &root_container.sway_root->xwayland_unmanaged); |
873 | } | 873 | } |
874 | #endif | 874 | #endif |
875 | } else { | 875 | } else { |
876 | float clear_color[] = {0.25f, 0.25f, 0.25f, 1.0f}; | 876 | float clear_color[] = {0.25f, 0.25f, 0.25f, 1.0f}; |
877 | 877 | ||
@@ -889,10 +889,10 @@ void output_render(struct sway_output *output, struct timespec *when, | |||
889 | 889 | ||
890 | render_container(output, damage, workspace, workspace->current.focused); | 890 | render_container(output, damage, workspace, workspace->current.focused); |
891 | render_floating(output, damage); | 891 | render_floating(output, damage); |
892 | #ifdef HAVE_XWAYLAND | 892 | #ifdef HAVE_XWAYLAND |
893 | render_unmanaged(output, damage, | 893 | render_unmanaged(output, damage, |
894 | &root_container.sway_root->xwayland_unmanaged); | 894 | &root_container.sway_root->xwayland_unmanaged); |
895 | #endif | 895 | #endif |
896 | render_layer(output, damage, | 896 | render_layer(output, damage, |
897 | &output->layers[ZWLR_LAYER_SHELL_V1_LAYER_TOP]); | 897 | &output->layers[ZWLR_LAYER_SHELL_V1_LAYER_TOP]); |
898 | } | 898 | } |