Mark WM_TRANSIENT_FOR windows as toplevel parents
This commit is contained in:
parent
4671f27282
commit
ec9ff64c1e
4 changed files with 100 additions and 8 deletions
|
|
@ -533,10 +533,14 @@ impl XState {
|
|||
1,
|
||||
|reply: x::GetPropertyReply| reply.value::<x::Window>().first().copied(),
|
||||
)
|
||||
.resolve()?;
|
||||
.resolve()?
|
||||
.flatten();
|
||||
|
||||
let is_popup = self.guess_is_popup(window, motif_hints, transient_for.is_some())?;
|
||||
server_state.set_popup(window, is_popup);
|
||||
if let Some(parent) = transient_for.and_then(|t| (!is_popup).then_some(t)) {
|
||||
server_state.set_transient_for(window, parent);
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue