Skip to content

Commit 7f3509c

Browse files
committed
Fixed effects not being applied to subsurfaces
Apparently Firefox is a subsurface...
1 parent 7402d6c commit 7f3509c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sway/desktop/output.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <wlr/types/wlr_presentation_time.h>
1818
#include <wlr/types/wlr_compositor.h>
1919
#include <wlr/types/wlr_xdg_shell.h>
20+
#include <wlr/types/wlr_subcompositor.h>
2021
#include <wlr/util/region.h>
2122
#include <wlr/util/transform.h>
2223
#include "config.h"
@@ -248,7 +249,8 @@ static void output_configure_scene(struct sway_output *output, struct wlr_scene_
248249
// text buffer and saved views
249250
struct wlr_layer_surface_v1 *layer_surface = NULL;
250251
if (wlr_xdg_surface_try_from_wlr_surface(surface->surface)
251-
|| wlr_xwayland_surface_try_from_wlr_surface(surface->surface)) {
252+
|| wlr_xwayland_surface_try_from_wlr_surface(surface->surface)
253+
|| wlr_subsurface_try_from_wlr_surface(surface->surface)) {
252254
wlr_scene_buffer_set_corner_radius(buffer,
253255
container_has_corner_radius(closest_con) ? corner_radius : 0,
254256
has_titlebar ? CORNER_LOCATION_BOTTOM : CORNER_LOCATION_ALL);

0 commit comments

Comments
 (0)