Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

fix: redraw and assign focus after ipc commands (#463)

lars-bergerb033f221c5ca
diff --git a/GlazeWM.App.IpcServer/IpcMessageHandler.cs b/GlazeWM.App.IpcServer/IpcMessageHandler.cs
index 10bc009c..5d2587cb 100644
--- a/GlazeWM.App.IpcServer/IpcMessageHandler.cs
+++ b/GlazeWM.App.IpcServer/IpcMessageHandler.cs
@@ -14,6 +14,7 @@ using GlazeWM.App.IpcServer.ClientMessages;
using GlazeWM.App.IpcServer.ServerMessages;
using GlazeWM.Domain.Common;
using GlazeWM.Domain.Containers;
+using GlazeWM.Domain.Containers.Commands;
using GlazeWM.Domain.Monitors;
using GlazeWM.Domain.UserConfigs;
using GlazeWM.Domain.Windows;
@@ -248,6 +249,8 @@ namespace GlazeWM.App.IpcServer
);
_bus.Invoke((dynamic)command);
+ _bus.Invoke(new RedrawContainersCommand());
+ _bus.Invoke(new SyncNativeFocusCommand());
return new { contextContainerId = contextContainer.Id };
}