Compare commits
2 Commits
v0.1.1
...
6571672df8
| Author | SHA1 | Date | |
|---|---|---|---|
|
6571672df8
|
|||
|
20363b498c
|
Generated
+1
-1
@@ -473,7 +473,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "gpupaper"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"bytemuck",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "gpupaper"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
edition = "2021"
|
||||
|
||||
[[bin]]
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
# Maintainer: Bendik Aagaard Lynghaug <bendik.lynghaug@gmail.com>
|
||||
pkgname=gpupaper
|
||||
pkgver=0.1.1
|
||||
pkgver=0.1.2
|
||||
pkgrel=1
|
||||
pkgdesc="Wayland layer-surface wallpaper runner powered by GLSL/WGSL fragment shaders (wgpu)"
|
||||
arch=('x86_64' 'aarch64')
|
||||
|
||||
+10
-7
@@ -168,14 +168,11 @@ pub fn run(
|
||||
let is_all = target_output == "all" || target_output == "*";
|
||||
|
||||
if is_all {
|
||||
let wl_outputs: Vec<_> = state.output_state.outputs().collect();
|
||||
if wl_outputs.is_empty() {
|
||||
// No outputs reported yet; let the compositor assign.
|
||||
// OutputHandler::new_output already attached one layer per existing
|
||||
// output during the roundtrip above. Only fall back to a compositor-
|
||||
// assigned surface if none arrived.
|
||||
if state.outputs.is_empty() {
|
||||
state.attach_output(&qh, None);
|
||||
} else {
|
||||
for wl_out in &wl_outputs {
|
||||
state.attach_output(&qh, Some(wl_out));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
let wl_out = find_output(&state.output_state, &target_output);
|
||||
@@ -343,6 +340,12 @@ impl OutputHandler for AppState {
|
||||
output: wl_output::WlOutput,
|
||||
) {
|
||||
if self.target_output == "all" || self.target_output == "*" {
|
||||
let name = self
|
||||
.output_state
|
||||
.info(&output)
|
||||
.and_then(|i| i.name)
|
||||
.unwrap_or_else(|| "<unnamed>".into());
|
||||
log::info!("attaching output: {}", name);
|
||||
self.attach_output(qh, Some(&output));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user