From e9f78f5a3ead12b06744de102c7fe809b714e5e6 Mon Sep 17 00:00:00 2001 From: Kaushik B <79521626+screem02@users.noreply.github.com> Date: Mon, 5 Jan 2026 02:14:53 +0530 Subject: [PATCH] Fix OSD fading out when updated during hide animation Fixes the issue of pressing a key during osd fade out and the content updating but the window still disappears, removed transition and set opacity to 255 at each show() call to handle that. --- js/ui/osdWindow.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/ui/osdWindow.js b/js/ui/osdWindow.js index 3329ee8b23..4906b5839e 100644 --- a/js/ui/osdWindow.js +++ b/js/ui/osdWindow.js @@ -110,6 +110,8 @@ class OsdWindow extends Clutter.Actor { if (!this._icon.gicon) return; + this.remove_transition('opacity'); + if (!this.visible) { Meta.disable_unredirect_for_display(global.display); super.show(); @@ -121,6 +123,8 @@ class OsdWindow extends Clutter.Actor { duration: FADE_TIME, mode: Clutter.AnimationMode.EASE_OUT_QUAD, }); + } else { + this.opacity = 255; } if (this._hideTimeoutId)