Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Focus commands not working when invoked through IPC #414

Closed
silvarc141 opened this issue Sep 24, 2023 · 2 comments · Fixed by #463
Closed

Focus commands not working when invoked through IPC #414

silvarc141 opened this issue Sep 24, 2023 · 2 comments · Fixed by #463

Comments

@silvarc141
Copy link
Contributor

Problem

Focus commands not working properly when executed through IPC from command-line. Glaze behaves as if it changed focus while in reality it did not.

Repro example:

  1. Have Glaze running, a focused window (for example console) and another to the left
  2. Execute glazewm command \"""focus left\"""
    // Notice the window to the left should be focused but is not (typing still enters characters in the right window)
  3. Execute glazewm command \"""close\"""
    // The window to the left is correctly closed
@wis
Copy link
Contributor

wis commented Nov 20, 2023

Do any IPC command work for you? none are having any effect for me, neither does glazewm.exe command '"focus left"' and neither does glazewm.exe command '"focus workspace 1"'

glazewm outputs the following when an IPC command is received, but nothing happens:

11/20/2023 02:47:39[IpcMessageHandler] IPC message received: command "focus workspace 2".
11/20/2023 02:47:39[Bus] Command FocusWorkspaceCommand invoked.
11/20/2023 02:47:39[FocusWorkspaceHandler] WorkspaceToFocus: 2
11/20/2023 02:47:39[Bus] Command SetFocusedDescendantCommand invoked.

also glazewm --version outputs

GlazeWM 1.0.0
Failed to parse startup arguments: CommandLine.VersionRequestedError.

although I have downloaded v2.0.3 from releases (latest as of right now), but it outputs 1.0.0

@silvarc141
Copy link
Contributor Author

Did a re-check on develop, 454bc05
OS: Windows 11

Commands that do not involve modifying/refreshing existing windows such as close, exec etc work correctly.

Commands that change windows but do not require focus (toggle floating, toggle maximized), do work, but the result is visible only after touching/moving the window manually, it does not refresh on its own.

Focus-related commands do not work through IPC.
GlazeWM state changes correctly, for example, workspace widget on status bar changes correctly when calling glazewm command \"""focus workspace #\""", but other than that the command does nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants