Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

linux/x11: Resize on GTK_EDGE_CONSTRAINTS atom (#13833)

Thorsten Ballc8b106245c7e
diff --git a/crates/gpui/src/platform/linux/x11/window.rs b/crates/gpui/src/platform/linux/x11/window.rs
index 52fccaf272c..6d4dbcf2a17 100644
--- a/crates/gpui/src/platform/linux/x11/window.rs
+++ b/crates/gpui/src/platform/linux/x11/window.rs
@@ -54,6 +54,7 @@ x11rb::atom_manager! {
_MOTIF_WM_HINTS,
_GTK_SHOW_WINDOW_MENU,
_GTK_FRAME_EXTENTS,
+ _GTK_EDGE_CONSTRAINTS,
}
}
@@ -681,7 +682,9 @@ impl X11WindowStatePtr {
pub fn property_notify(&self, event: xproto::PropertyNotifyEvent) {
let mut state = self.state.borrow_mut();
- if event.atom == state.atoms._NET_WM_STATE {
+ if event.atom == state.atoms._NET_WM_STATE
+ || event.atom == state.atoms._GTK_EDGE_CONSTRAINTS
+ {
self.set_wm_properties(state);
}
}