From: pakaoraki <pakaoraki@gmx.com>
Date: Sat, 18 Feb 2023 14:43:01 +0100
Subject: Fix bad call of _toggleWorkspace()

(cherry picked from commit 244b6edfb7bacc4c28ff6dd3458e555c6fb9386f)

Origin: upstream, 45, commit:244b6edfb7bacc4c28ff6dd3458e555c6fb9386f
---
 caffeine@patapon.info/extension.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/caffeine@patapon.info/extension.js b/caffeine@patapon.info/extension.js
index 56e4f42..05993df 100644
--- a/caffeine@patapon.info/extension.js
+++ b/caffeine@patapon.info/extension.js
@@ -896,7 +896,7 @@ class Caffeine extends QuickSettings.SystemIndicator {
             if(type === 0) {
                 // Add 100 ms delay to handle window detection
                 this._timeWorkspaceAdd = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 100, () => {
-                    this._toggleWorkspace.bind(this);
+                    this._toggleWorkspace();
                     this._timeWorkspaceAdd = null;
                     return GLib.SOURCE_REMOVE;
                 });
@@ -909,7 +909,7 @@ class Caffeine extends QuickSettings.SystemIndicator {
             if(type === 0) {
                 // Add 100 ms delay to handle window detection
                 this._timeWorkspaceRemove = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 100, () => {
-                    this._toggleWorkspace.bind(this);
+                    this._toggleWorkspace();
                     this._timeWorkspaceRemove = null;
                     return GLib.SOURCE_REMOVE;
                 });
