T20: on Wayland the window asks for ext_background_effect_v1 on its surface, through a guest connection on gpui's display; one region wider than any window, which the compositor clips, comes and goes with Blurred; the log names the way blur goes; a wayland-server compositor tests it, and scripts/linux.sh runs the tests on Linux in a container
CI / platforms (windows-latest) (push) Failing after 9s
CI / macos (push) Failing after 8m24s
CI / platforms (ubuntu-24.04) (push) Canceled after 0s

This commit is contained in:
ZacharyZhang-NY committed 2026-10-15 00:42:30 -04:00
1 parent 6523632ade
commit 107069b3c8
8 files changed
+529 -13

No files matched your search

+6 -7
View File
@@ -9,12 +9,11 @@ use ely_gpui_component::{
use gpui::{
Action, App, AppContext, Context, Entity, EntityId, FocusHandle, Focusable, InteractiveElement,
IntoElement, KeyBinding, ParentElement, Render, SharedString, StatefulInteractiveElement,
StyleRefinement, Styled, Subscription, Window, WindowBackgroundAppearance, actions, div,
prelude::FluentBuilder,
StyleRefinement, Styled, Subscription, Window, actions, div, prelude::FluentBuilder,
};
use crate::{
blur,
blur::Blur,
files::Files,
git::panel::{Acted, GitPanel},
sessions::{self, Session},
@@ -86,8 +85,8 @@ pub struct Workspace {
active: usize,
files: Entity<Files>,
git: Entity<GitPanel>,
/// What the window shows of the desktop, as last set.
background: WindowBackgroundAppearance,
/// What the window shows of the desktop, and the blur behind it.
background: Blur,
_settings: Subscription,
_acted: Subscription,
}
@@ -113,9 +112,9 @@ impl Workspace {
active: 0,
files: cx.new(|_| Files::new(launch.cwd.clone())),
git,
background: blur::appearance(SettingsStore::get(cx)),
background: Blur::new(window, SettingsStore::get(cx)),
_settings: cx.observe_global_in::<SettingsStore>(window, |this, window, cx| {
blur::follow(window, &mut this.background, SettingsStore::get(cx));
this.background.follow(window, SettingsStore::get(cx));
cx.notify();
}),
_acted: acted,