Motif popup fix (#370)
Add resize check also since that is not something that popup should have. Closes #365
This commit is contained in:
parent
e6dd3c05c0
commit
86f5bd5d86
2 changed files with 27 additions and 3 deletions
|
|
@ -723,9 +723,12 @@ impl XState {
|
|||
wmhint_popup = motif_popup
|
||||
&& wm_hints.is_some_and(|h| !h.acquire_input_via_wm)
|
||||
&& !hints.functions.as_ref().is_some_and(|f| {
|
||||
f.contains(motif::Functions::Minimize)
|
||||
|| f.contains(motif::Functions::Maximize)
|
||||
|| f.contains(motif::Functions::All)
|
||||
f.intersects(
|
||||
motif::Functions::Minimize
|
||||
| motif::Functions::Maximize
|
||||
| motif::Functions::Resize
|
||||
| motif::Functions::All,
|
||||
)
|
||||
});
|
||||
// If the motif hints indicate the user shouldn't be able to do anything
|
||||
// to the window at all, it stands to reason it's probably a popup.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue