mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-04 19:46:53 +00:00
Never add transient or non-normal windows
A transient window can be NORMAL, at least in wayland.
This commit is contained in:
@@ -1408,14 +1408,15 @@ function disable () {
|
||||
function add_filter(meta_window) {
|
||||
let add = true;
|
||||
|
||||
if (meta_window.window_type != Meta.WindowType.NORMAL) {
|
||||
if (meta_window.get_transient_for()) {
|
||||
add = false;
|
||||
// Note: Some dialog windows doesn't set the transient hint. Simply
|
||||
// treat those as regular windows since it's hard to handle them as
|
||||
// proper dialogs without the hint (eg. gnome-shell extension preference)
|
||||
}
|
||||
if (meta_window.get_transient_for()) {
|
||||
// Never add transient windows
|
||||
add = false;
|
||||
}
|
||||
if (meta_window.window_type !== Meta.WindowType.NORMAL) {
|
||||
// And only add Normal windows
|
||||
add = false;
|
||||
}
|
||||
|
||||
if (meta_window.is_on_all_workspaces()) {
|
||||
add = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user