From 678fda85d2b8d57fac2df9f784fffa5a2bc5fbc0 Mon Sep 17 00:00:00 2001 From: Hiroki Tagato Date: Thu, 15 Jan 2026 23:51:20 +0900 Subject: 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) --- x11/ashell/Makefile | 1 + x11/ashell/files/patch-src_app.rs | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 x11/ashell/files/patch-src_app.rs 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, -- cgit v1.2.3