diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2024-01-18 10:04:26 -0500 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2024-01-18 18:36:54 +0300 |
commit | 9a579666068d62b9354a39941e1ac8c1f4a58093 (patch) | |
tree | 79d5d36f27b43f1d68969242211a0e01395c6bfc /sway/desktop/render.c | |
parent | scene_graph: Port seatop_move_tiling indicators (diff) | |
download | sway-9a579666068d62b9354a39941e1ac8c1f4a58093.tar.gz sway-9a579666068d62b9354a39941e1ac8c1f4a58093.tar.zst sway-9a579666068d62b9354a39941e1ac8c1f4a58093.zip |
scene_graph: Port ext_session_v1
Diffstat (limited to 'sway/desktop/render.c')
-rw-r--r-- | sway/desktop/render.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c index 735dddb8..60431d79 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c | |||
@@ -1012,43 +1012,6 @@ void output_render(struct render_context *ctx) { | |||
1012 | pixman_region32_copy(&transformed_damage, damage); | 1012 | pixman_region32_copy(&transformed_damage, damage); |
1013 | transform_output_damage(&transformed_damage, wlr_output); | 1013 | transform_output_damage(&transformed_damage, wlr_output); |
1014 | 1014 | ||
1015 | if (server.session_lock.locked) { | ||
1016 | struct wlr_render_color clear_color = { | ||
1017 | .a = 1.0f | ||
1018 | }; | ||
1019 | if (server.session_lock.lock == NULL) { | ||
1020 | // abandoned lock -> red BG | ||
1021 | clear_color.r = 1.f; | ||
1022 | } | ||
1023 | |||
1024 | wlr_render_pass_add_rect(ctx->pass, &(struct wlr_render_rect_options){ | ||
1025 | .box = { .width = wlr_output->width, .height = wlr_output->height }, | ||
1026 | .color = clear_color, | ||
1027 | .clip = &transformed_damage, | ||
1028 | }); | ||
1029 | |||
1030 | if (server.session_lock.lock != NULL) { | ||
1031 | struct render_data data = { | ||
1032 | .alpha = 1.0f, | ||
1033 | .ctx = ctx, | ||
1034 | }; | ||
1035 | |||
1036 | struct wlr_session_lock_surface_v1 *lock_surface; | ||
1037 | wl_list_for_each(lock_surface, &server.session_lock.lock->surfaces, link) { | ||
1038 | if (lock_surface->output != wlr_output) { | ||
1039 | continue; | ||
1040 | } | ||
1041 | if (!lock_surface->surface->mapped) { | ||
1042 | continue; | ||
1043 | } | ||
1044 | |||
1045 | output_surface_for_each_surface(output, lock_surface->surface, | ||
1046 | 0.0, 0.0, render_surface_iterator, &data); | ||
1047 | } | ||
1048 | } | ||
1049 | goto renderer_end; | ||
1050 | } | ||
1051 | |||
1052 | if (output_has_opaque_overlay_layer_surface(output)) { | 1015 | if (output_has_opaque_overlay_layer_surface(output)) { |
1053 | goto render_overlay; | 1016 | goto render_overlay; |
1054 | } | 1017 | } |
@@ -1122,8 +1085,6 @@ render_overlay: | |||
1122 | &output->shell_layers[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY]); | 1085 | &output->shell_layers[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY]); |
1123 | render_layer_popups(ctx, | 1086 | render_layer_popups(ctx, |
1124 | &output->shell_layers[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY]); | 1087 | &output->shell_layers[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY]); |
1125 | |||
1126 | renderer_end: | ||
1127 | pixman_region32_fini(&transformed_damage); | 1088 | pixman_region32_fini(&transformed_damage); |
1128 | wlr_output_add_software_cursors_to_render_pass(wlr_output, ctx->pass, damage); | 1089 | wlr_output_add_software_cursors_to_render_pass(wlr_output, ctx->pass, damage); |
1129 | } | 1090 | } |