Skip to content

Commit

Permalink
Move keyboard focus when foregrounding windows on X11 (#13071)
Browse files Browse the repository at this point in the history
Release Notes:

- N/A
  • Loading branch information
ConradIrwin authored Jun 14, 2024
1 parent 831f7db commit 411ee7a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/gpui/src/platform/linux/x11/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,14 @@ impl PlatformWindow for X11Window {
.xcb_connection
.configure_window(self.0.x_window, &win_aux)
.log_err();
self.0
.xcb_connection
.set_input_focus(
xproto::InputFocus::POINTER_ROOT,
self.0.x_window,
xproto::Time::CURRENT_TIME,
)
.log_err();
}

fn is_active(&self) -> bool {
Expand Down

0 comments on commit 411ee7a

Please sign in to comment.