1
0
Fork 0
forked from wry/wry

seat: rename get_output to get_cursor_output

This commit is contained in:
khyperia 2025-12-23 14:57:02 +01:00 committed by Julian Orth
parent 2c03dbbaa4
commit a975e3b25a
10 changed files with 23 additions and 22 deletions

View file

@ -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
}

View file

@ -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 {

View file

@ -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