Skip to content

Commit

Permalink
Add support for alpha-modifier-v1
Browse files Browse the repository at this point in the history
(cherry picked from commit a0b3606)
  • Loading branch information
emersion committed Sep 29, 2024
1 parent 1311685 commit 872cf45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sway/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <wlr/config.h>
#include <wlr/render/allocator.h>
#include <wlr/render/wlr_renderer.h>
#include <wlr/types/wlr_alpha_modifier_v1.h>
#include <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_content_type_v1.h>
#include <wlr/types/wlr_cursor_shape_v1.h>
Expand Down Expand Up @@ -321,6 +322,7 @@ bool server_init(struct sway_server *server) {
&server->pointer_constraint);

wlr_presentation_create(server->wl_display, server->backend);
wlr_alpha_modifier_v1_create(server->wl_display);

server->output_manager_v1 =
wlr_output_manager_v1_create(server->wl_display);
Expand Down

1 comment on commit 872cf45

@Nefsen402
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a correct implementation of alpha_modifier. output_configure_scene will overwrite the alpha that scene tries to set itself.

Please sign in to comment.