seat: rename get_output to get_cursor_output
This commit is contained in:
parent
2c03dbbaa4
commit
a975e3b25a
10 changed files with 23 additions and 22 deletions
|
|
@ -551,9 +551,9 @@ impl ConfigClient {
|
|||
connector
|
||||
}
|
||||
|
||||
pub fn get_seat_workspace(&self, seat: Seat) -> Workspace {
|
||||
let res = self.send_with_response(&ClientMessage::GetSeatWorkspace { seat });
|
||||
get_response!(res, Workspace(0), GetSeatWorkspace { workspace });
|
||||
pub fn get_seat_cursor_workspace(&self, seat: Seat) -> Workspace {
|
||||
let res = self.send_with_response(&ClientMessage::GetSeatCursorWorkspace { seat });
|
||||
get_response!(res, Workspace(0), GetSeatCursorWorkspace { workspace });
|
||||
workspace
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -372,7 +372,7 @@ pub enum ClientMessage<'a> {
|
|||
MakeRenderDevice {
|
||||
device: DrmDevice,
|
||||
},
|
||||
GetSeatWorkspace {
|
||||
GetSeatCursorWorkspace {
|
||||
seat: Seat,
|
||||
},
|
||||
SetDefaultWorkspaceCapture {
|
||||
|
|
@ -925,7 +925,7 @@ pub enum Response {
|
|||
width: i32,
|
||||
height: i32,
|
||||
},
|
||||
GetSeatWorkspace {
|
||||
GetSeatCursorWorkspace {
|
||||
workspace: Workspace,
|
||||
},
|
||||
GetDefaultWorkspaceCapture {
|
||||
|
|
|
|||
|
|
@ -420,7 +420,7 @@ impl Seat {
|
|||
///
|
||||
/// If no such workspace exists, `exists` returns `false` for the returned workspace.
|
||||
pub fn get_workspace(self) -> Workspace {
|
||||
get!(Workspace(0)).get_seat_workspace(self)
|
||||
get!(Workspace(0)).get_seat_cursor_workspace(self)
|
||||
}
|
||||
|
||||
/// Returns the workspace that is currently active on the output that contains the seat's
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue