Skip to content

moveWindowToSpace and command-w makes focused index not found #60

Open
@QuarterHeaven

Description

@QuarterHeaven

Hi I have some problems while using moveWindowToSpace function and close a window. While I use moveWindowToSpace, it opens the mission control, then the pointer is moved to the left upper corner, and the focused window is not managed. Here is the log:

2024-12-19 11:38:07: 11:38:07 MissionCon:         moving window *welcome* to space 2
2024-12-19 11:38:08: 11:38:08                     looking for window with title: *welcome*
2024-12-19 11:38:08: 11:38:08 ERROR:   LuaSkin: hs.hotkey callback: ...id/.hammerspoon/Spoons/PaperWM.spoon/mission_control.lua:223: attempt to index a nil value (field 'AXTitle')
stack traceback:
	...id/.hammerspoon/Spoons/PaperWM.spoon/mission_control.lua:223: in method 'moveWindowToSpace'
	/Users/takaobsid/.hammerspoon/Spoons/PaperWM.spoon/init.lua:1091: in function 'PaperWM.moveWindowToSpace'
	(...tail calls...)

and if I use focus_* functions on it, HS reports:

2024-12-19 11:54:05: 11:54:05 ERROR:   PaperWM: focused index not found
2024-12-19 11:54:06: 11:54:06 ERROR:   PaperWM: focused index not found
2024-12-19 11:54:06: 11:54:06 ERROR:   PaperWM: focused index not found
2024-12-19 11:59:27: 11:59:27 ERROR:   PaperWM: anchor index not found
2024-12-19 11:59:29: 11:59:29 ERROR:   PaperWM: focused index not found

and it also happens while I use command-w closing a window. The window is closed but it still focused on the application, and it looks like the window is still on the screen. It seems like the space is split by the closed window, I can still use focus_* to find it, but can't move out from it because PaperWM: focused index not found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions