mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 05:00:16 +00:00
Move keyboard focus when foregrounding windows on X11 (#13071)
Release Notes: - N/A
This commit is contained in:
parent
831f7dbbc0
commit
411ee7a47c
1 changed files with 8 additions and 0 deletions
|
@ -770,6 +770,14 @@ impl PlatformWindow for X11Window {
|
||||||
.xcb_connection
|
.xcb_connection
|
||||||
.configure_window(self.0.x_window, &win_aux)
|
.configure_window(self.0.x_window, &win_aux)
|
||||||
.log_err();
|
.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 {
|
fn is_active(&self) -> bool {
|
||||||
|
|
Loading…
Reference in a new issue