Skip to content

Commit de8db12

Browse files
committed
Merge remote-tracking branch 'upstream/main' into feat/blur
2 parents ff14615 + f30db16 commit de8db12

4 files changed

Lines changed: 5 additions & 37 deletions

File tree

docs/wiki/FAQ.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ hotkey-overlay {
4545
To run X11 apps, you can use [xwayland-satellite](https://github.com/Supreeeme/xwayland-satellite).
4646
Check [the Xwayland wiki page](./Xwayland.md) for instructions.
4747

48-
Keep in mind that you can run many Electron apps such as VSCode natively on Wayland by passing the right flags, e.g. `code --ozone-platform-hint=auto`
48+
Keep in mind that you can run many Electron apps such as VSCode or Discord natively on Wayland by passing the right flags, as described [here](./Application-Issues.md#electron-applications).
4949

5050
### Why doesn't niri integrate Xwayland like other compositors?
5151

src/layer/mod.rs

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub mod mapped;
77
pub use mapped::MappedLayer;
88

99
/// Rules fully resolved for a layer-shell surface.
10-
#[derive(Debug, PartialEq)]
10+
#[derive(Debug, Default, PartialEq)]
1111
pub struct ResolvedLayerRules {
1212
/// Extra opacity to draw this layer surface with.
1313
pub opacity: Option<f32>,
@@ -37,42 +37,10 @@ pub struct ResolvedLayerRules {
3737
}
3838

3939
impl ResolvedLayerRules {
40-
pub const fn empty() -> Self {
41-
Self {
42-
opacity: None,
43-
block_out_from: None,
44-
shadow: ShadowRule {
45-
off: false,
46-
on: false,
47-
offset: None,
48-
softness: None,
49-
spread: None,
50-
draw_behind_window: None,
51-
color: None,
52-
inactive_color: None,
53-
struts: None,
54-
},
55-
blur: BlurRule {
56-
off: false,
57-
on: false,
58-
passes: None,
59-
radius: None,
60-
noise: None,
61-
ignore_alpha: None,
62-
blur_when_keyboard_focused: None,
63-
},
64-
geometry_corner_radius: None,
65-
place_within_backdrop: false,
66-
baba_is_float: false,
67-
transparent_block: None,
68-
exponent: None,
69-
}
70-
}
71-
7240
pub fn compute(rules: &[LayerRule], surface: &LayerSurface, is_at_startup: bool) -> Self {
7341
let _span = tracy_client::span!("ResolvedLayerRules::compute");
7442

75-
let mut resolved = ResolvedLayerRules::empty();
43+
let mut resolved = ResolvedLayerRules::default();
7644

7745
for rule in rules {
7846
let matches = |m: &Match| {

src/layout/tile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ impl<W: LayoutElement> Tile<W> {
10871087
let location = location + self.bob_offset();
10881088

10891089
let window_loc = self.window_loc();
1090-
let window_size = self.window_size().to_f64();
1090+
let window_size = self.window_size();
10911091
let animated_window_size = self.animated_window_size();
10921092
let window_render_loc = location + window_loc;
10931093
let area = Rectangle::new(window_render_loc, animated_window_size);

src/screencasting/pw_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ impl PipeWire {
776776
pod::Value::Choice(ChoiceValue::Int(Choice(
777777
ChoiceFlags::empty(),
778778
ChoiceEnum::Range {
779-
default: 16,
779+
default: 8,
780780
min: 2,
781781
max: 16
782782
}

0 commit comments

Comments
 (0)