summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroki Tagato <tagattie@FreeBSD.org>2026-01-15 23:51:20 +0900
committerHiroki Tagato <tagattie@FreeBSD.org>2026-01-16 03:38:51 +0900
commit678fda85d2b8d57fac2df9f784fffa5a2bc5fbc0 (patch)
treeb11bf1ae8a5f63a1ab14a777e6ed50e03fdb3da5
parentb159c9fa70b35d495d92965103ea193a4586a436 (diff)
x11/ashell: Fix disappearance on HDMI display reconnect/power-on
When an HDMI display is reconnected/powered-on after disconnection/power-off, ashell status bar disappears while the process is still running. By changing the event (Created -> InfoUpdate) used for triggering redraw of status bar appears to solve the problem. (cherry picked from commit ff1cf76fa9ee49546cd4d428ee97b120d8dbb0ef)
-rw-r--r--x11/ashell/Makefile1
-rw-r--r--x11/ashell/files/patch-src_app.rs18
2 files changed, 19 insertions, 0 deletions
diff --git a/x11/ashell/Makefile b/x11/ashell/Makefile
index 6b736f034bd8..08e9d615f352 100644
--- a/x11/ashell/Makefile
+++ b/x11/ashell/Makefile
@@ -1,5 +1,6 @@
PORTNAME= ashell
DISTVERSION= 0.7.0
+PORTREVISION= 1
CATEGORIES= x11 wayland
MAINTAINER= tagattie@FreeBSD.org
diff --git a/x11/ashell/files/patch-src_app.rs b/x11/ashell/files/patch-src_app.rs
new file mode 100644
index 000000000000..9160c7ed19ef
--- /dev/null
+++ b/x11/ashell/files/patch-src_app.rs
@@ -0,0 +1,18 @@
+--- src/app.rs.orig 2025-12-22 19:47:14 UTC
++++ src/app.rs
+@@ -378,12 +378,9 @@ impl App {
+ }
+ },
+ Message::OutputEvent((event, wl_output)) => match event {
+- iced::event::wayland::OutputEvent::Created(info) => {
+- info!("Output created: {info:?}");
+- let name = info
+- .as_ref()
+- .and_then(|info| info.description.as_deref())
+- .unwrap_or("");
++ iced::event::wayland::OutputEvent::InfoUpdate(info) => {
++ info!("Output updated: {info:?}");
++ let name = info.description.as_deref().unwrap_or("");
+
+ self.outputs.add(
+ self.theme.bar_style,