x11: Fix window menu not showing (#15328)

Fixes
https://github.com/zed-industries/zed/issues/15245#issuecomment-2252790889

Release Notes:

- Linux: Fixed window menu not showing on X11
This commit is contained in:
apricotbucket28 2024-07-27 16:29:48 -03:00 committed by GitHub
parent 3a44a59f8e
commit 04e25525bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 23 additions and 14 deletions

View file

@ -1230,6 +1230,14 @@ impl PlatformWindow for X11Window {
fn show_window_menu(&self, position: Point<Pixels>) {
let state = self.0.state.borrow();
self.0
.xcb_connection
.ungrab_pointer(x11rb::CURRENT_TIME)
.unwrap()
.check()
.unwrap();
let coords = self.get_root_position(position);
let message = ClientMessageEvent::new(
32,