File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -367,6 +367,7 @@ impl I3Connection {
367
367
reply:: Output {
368
368
name : o. find ( "name" ) . unwrap ( ) . as_string ( ) . unwrap ( ) . to_owned ( ) ,
369
369
active : o. find ( "active" ) . unwrap ( ) . as_boolean ( ) . unwrap ( ) ,
370
+ primary : o. find ( "primary" ) . unwrap ( ) . as_boolean ( ) . unwrap ( ) ,
370
371
current_workspace : match o. find ( "current_workspace" ) . unwrap ( ) . clone ( ) {
371
372
json:: Value :: String ( c_w) => Some ( c_w) ,
372
373
json:: Value :: Null => None ,
Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ pub struct Output {
63
63
pub name : String ,
64
64
/// Whether the output is currently active (has a valid mode).
65
65
pub active : bool ,
66
+ /// Whether the output is currently the primary output.
67
+ pub primary : bool ,
66
68
/// The name of the current workspace that is visible on this output. None if the output is
67
69
/// not active.
68
70
pub current_workspace : Option < String > ,
You can’t perform that action at this time.
0 commit comments