fix(wm): limit to a single virtual desktop

An issue was reported in which switching between Windows Virtual
Desktops was causing issues with the layout generation. This was due to
WinEvents being emitted from other Virtual Desktops ending up in the WM
state when they shouldn't.

This commit introduces a check to ensure that the WM will only listen to
events and commands emitted from the Windows Virtual Desktop that it was
started on.

fix #15
This commit is contained in:
LGUG2Z
2021-08-19 07:52:40 -07:00
parent 209cd82892
commit 74811fbe13
6 changed files with 74 additions and 1 deletions
+1 -1
View File
@@ -266,7 +266,7 @@ If `komorebi` ever stops responding, it is most likely either due to either a pa
panic, this will be reported in the log. In the case of a deadlock, there will not be any errors in the log, but the
process and the log will appear frozen.
If you believe you have encountered a deadlock, you can compile `komorebi` with `--feature deadlock_detection` and try
If you believe you have encountered a deadlock, you can compile `komorebi` with `--features deadlock_detection` and try
reproducing the deadlock again. This will check for deadlocks every 5 seconds in the background, and if a deadlock is
found, information about it will appear in the log which can be shared when opening an issu which can be shared when
opening an issue.