From 099528ddb91cafaac93defc1846b2ba4f5b91fa8 Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Fri, 31 Jan 2025 12:45:55 -0500 Subject: [PATCH] Fix theme.get_border_image() is null --- src/taskbar.js | 1 + src/transparency.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/taskbar.js b/src/taskbar.js index 30ba96d..b4d0ea3 100644 --- a/src/taskbar.js +++ b/src/taskbar.js @@ -68,6 +68,7 @@ let donateDummyApp = { get_id: () => 'dtp_donate', get_windows: () => [], can_open_new_window: () => false, + is_window_backed: () => false, launch_action: function (action) { action == 'opts' ? this.activate() : null }, diff --git a/src/transparency.js b/src/transparency.js index 622552a..17b1059 100644 --- a/src/transparency.js +++ b/src/transparency.js @@ -248,7 +248,7 @@ export const DynamicTransparency = class { try { let imageFile = - theme.get_background_image() || theme.get_border_image().get_file() + theme.get_background_image() || theme.get_border_image()?.get_file() if (imageFile) { let imageBuf = GdkPixbuf.Pixbuf.new_from_file(imageFile.get_path())