Skip to content

Commit

Permalink
Make daemon console the last to position
Browse files Browse the repository at this point in the history
  • Loading branch information
whme committed Aug 8, 2023
1 parent 3ebfa8b commit bf0b03a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/daemon/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,11 @@ impl Daemon {
// The daemon console can be treated as a client console when it comes
// to figuring out where to put it on the screen.
// TODO: the daemon console should always be on the bottom left
let (x, y, width, height) =
determine_client_spatial_attributes(0, number_of_consoles, &workspace_area);
let (x, y, width, height) = determine_client_spatial_attributes(
number_of_consoles - 1,
number_of_consoles,
&workspace_area,
);
arrange_daemon_console(x, y, width, height);

let _client_console_window_handles = launch_clients(
Expand Down Expand Up @@ -249,7 +252,7 @@ async fn launch_clients(
let process_ids_arc = Arc::clone(&process_ids);
let future = tokio::spawn(async move {
let (x, y, width, height) = determine_client_spatial_attributes(
index as i32 + 1,
index as i32,
number_of_consoles,
&workspace_area,
);
Expand Down

0 comments on commit bf0b03a

Please sign in to comment.