From 44c8bce65bf3bd9656eb41137763bbe20f91d3e8 Mon Sep 17 00:00:00 2001 From: Leonhard <106322251+leolost2605@users.noreply.github.com> Date: Thu, 30 May 2024 04:06:49 +0200 Subject: [PATCH] DesktopIntegration: Switch to correct workspace when focusing window (#1939) --- src/DesktopIntegration.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DesktopIntegration.vala b/src/DesktopIntegration.vala index ed26d253..a6013474 100644 --- a/src/DesktopIntegration.vala +++ b/src/DesktopIntegration.vala @@ -105,7 +105,7 @@ public class Gala.DesktopIntegration : GLib.Object { foreach (unowned var app in apps) { foreach (weak Meta.Window window in app.get_windows ()) { if (window.get_id () == uid) { - window.activate (wm.get_display ().get_current_time ()); + window.get_workspace ().activate_with_focus (window, wm.get_display ().get_current_time ()); } } }