Function get_console_rect
fn get_console_rect(
x: i32,
y: i32,
width: i32,
height: i32,
workspace_area: &WorkspaceArea,
) -> (i32, i32, i32, i32)Expand description
Transform the position and dimensions of a console window based on the workspace area.
To minimize empty space between windows, width and height must be adjusted
by the fixed_frame and size_frame values.
§Arguments
x- Thexcoordinate of the window.y- Theycoordinate of the window.width- Thewidthin pixels of the window.height- Theheightin pixels of the window.workspace_area- The available workspace area on the primary monitor minus the space occupied by the daemon console window.
§Returns
(x, y, width, height)