Smit Barmase
ebad5ca50e
linux: Fix buttons clicks wouldn’t work on startup until clicked on center pane (#34590)
Closes #31805
This is an issue with Linux currently that `window.focus` is `None` upon
startup in both X11 and Wayland. Specifically, the order in which
[this](https://github.com/zed-industries/zed/blob/8d05a3d389b6a1caa80bb18f26c3dac0c26debcb/crates/gpui/src/window.rs#L3116)
and
[this](https://github.com/zed-industries/zed/blob/8d05a3d389b6a1caa80bb18f26c3dac0c26debcb/crates/gpui/src/app.rs#L956)
are executed varies between Linux and macOS. That is, one tries to
remove (blur) focus from a window, while other checks window focus to
put that focus id to a frame. In macOS, blur happens afterwards setting
focus on a frame, but in Linux, the inverse of it happens, leading to
`window.focus` to `None`.
For the time being, we handle all visible buttons to take care of this
**focus can be `None`** case, and make it work anyway. But, we should
look at the deeper issue mentioned above with GPUI. Created new issue to
track that https://github.com/zed-industries/zed/issues/34591.
Release Notes:
- Fixed an issue where button clicks wouldn’t work on startup until
clicked on the center pane on Linux.
2025-07-17 06:36:02 +05:30
..
2025-05-26 23:04:31 -04:00
2025-07-17 06:36:02 +05:30
2025-04-11 21:34:51 +00:00
2025-06-12 22:12:14 +00:00
2025-04-21 20:13:26 +05:30
2025-05-20 23:06:07 +00:00
2025-06-06 16:56:27 -04:00
2025-07-15 18:41:45 +03:00
2025-05-26 11:48:50 -04:00
2025-03-31 20:55:27 +02:00
2025-04-28 09:21:27 +00:00
2025-07-12 11:48:19 -03:00
2025-07-01 15:43:58 -04:00
2025-07-02 21:14:33 -04:00
2025-06-06 06:23:09 +00:00
2025-05-05 22:28:35 -03:00
2025-06-04 17:40:35 +00:00
2025-07-16 01:47:40 +05:30