Skip to content
New issue

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

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

Already on GitHub? # to your account

Invalid JSON in window query output (literal newlines) #533

Closed
smackesey opened this issue May 21, 2020 · 1 comment
Closed

Invalid JSON in window query output (literal newlines) #533

smackesey opened this issue May 21, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@smackesey
Copy link

Chrome window titles have a newline in them if the search (cmd-f) function is being used and the window is focused. This newline is not converted to "\n" in the output from yabai -m query --windows. Example (look at "title" field):

{
	"id":91959,
	"pid":12942,
	"app":"Google Chrome",
	"title":"Find in page
    Nvim documentation: api",
	"frame":{
		"x":0.0000,
		"y":23.0000,
		"w":1120.0000,
		"h":1394.0000
	},
	"level":0,
	"role":"AXWindow",
	"subrole":"AXStandardWindow",
	"movable":1,
	"resizable":1,
	"display":1,
	"space":1,
	"visible":1,
	"focused":1,
	"split":"none",
	"floating":0,
	"sticky":0,
	"minimized":0,
	"topmost":0,
	"shadow":1,
	"zoom-parent":0,
	"zoom-fullscreen":0,
	"native-fullscreen":0
}
@smackesey smackesey changed the title Invalid JSON in window query output (literal newilnes) Invalid JSON in window query output (literal newlines) May 21, 2020
@koekeishiya koekeishiya added the bug Something isn't working label May 22, 2020
@koekeishiya koekeishiya added the addressed on master; not released Fixed upstream, but not yet released label May 22, 2020
@koekeishiya
Copy link
Owner

Fixed in the latest release.

@koekeishiya koekeishiya removed the addressed on master; not released Fixed upstream, but not yet released label May 22, 2020
unrevre pushed a commit to unrevre/yabai that referenced this issue Jan 26, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants