fixed a formating error in the json output
This commit is contained in:
@@ -777,7 +777,7 @@ fn run_activewindow_client(config: &Config) {
|
|||||||
match event {
|
match event {
|
||||||
HyprlandEvent::ActiveWindowV2 { window_address } => {
|
HyprlandEvent::ActiveWindowV2 { window_address } => {
|
||||||
if let Some(client) = clients.get(&format!("0x{}", window_address)) {
|
if let Some(client) = clients.get(&format!("0x{}", window_address)) {
|
||||||
println!("{:#?}", serde_json::to_string(&client).unwrap());
|
println!("{}", serde_json::to_string(&client).unwrap());
|
||||||
} else {
|
} else {
|
||||||
clients = query_socket(QueryModes::Clients);
|
clients = query_socket(QueryModes::Clients);
|
||||||
if let Some(client) = clients.get(&format!("0x{}", window_address)) {
|
if let Some(client) = clients.get(&format!("0x{}", window_address)) {
|
||||||
|
Reference in New Issue
Block a user