renderer: add support for floating-titlebars (#4)
Reviewed-on: https://git.kosslan.dev/wry/jay/pulls/4
This commit is contained in:
parent
4d803360dd
commit
6dba659978
13 changed files with 316 additions and 158 deletions
|
|
@ -1057,6 +1057,16 @@ impl ConfigClient {
|
|||
show
|
||||
}
|
||||
|
||||
pub fn set_floating_titles(&self, floating: bool) {
|
||||
self.send(&ClientMessage::SetFloatingTitles { floating });
|
||||
}
|
||||
|
||||
pub fn get_floating_titles(&self) -> bool {
|
||||
let res = self.send_with_response(&ClientMessage::GetFloatingTitles);
|
||||
get_response!(res, false, GetFloatingTitles { floating });
|
||||
floating
|
||||
}
|
||||
|
||||
pub fn set_bar_position(&self, position: BarPosition) {
|
||||
self.send(&ClientMessage::SetBarPosition { position });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -812,6 +812,10 @@ pub enum ClientMessage<'a> {
|
|||
show: bool,
|
||||
},
|
||||
GetShowTitles,
|
||||
SetFloatingTitles {
|
||||
floating: bool,
|
||||
},
|
||||
GetFloatingTitles,
|
||||
GetWorkspaceConnector {
|
||||
workspace: Workspace,
|
||||
},
|
||||
|
|
@ -1114,6 +1118,9 @@ pub enum Response {
|
|||
GetShowTitles {
|
||||
show: bool,
|
||||
},
|
||||
GetFloatingTitles {
|
||||
floating: bool,
|
||||
},
|
||||
GetWorkspaceConnector {
|
||||
connector: Connector,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue