Use _MOTIF_WM_HINTS to determine if window should be popup

Surely this won't go horribly wrong...
Fixes #155
This commit is contained in:
Shawn Wallace 2025-05-12 23:25:17 -04:00
parent 51300780f8
commit 4671f27282
3 changed files with 201 additions and 59 deletions

View file

@ -657,13 +657,13 @@ impl<C: XConnection> ServerState<C> {
);
}
pub fn set_popup(&mut self, window: x::Window) {
pub fn set_popup(&mut self, window: x::Window, is_popup: bool) {
let Some(win) = self.windows.get_mut(&window) else {
debug!("not setting popup for unknown window {window:?}");
return;
};
win.attrs.is_popup = true;
win.attrs.is_popup = is_popup;
}
pub fn set_win_title(&mut self, window: x::Window, name: WmName) {