mirror of
https://github.com/esjeon/krohnkite.git
synced 2024-10-03 23:07:13 +03:00
match resource names for auot-float/ignore (#121)
This commit is contained in:
parent
789ad72d1a
commit
fc8ccc0668
@ -36,11 +36,13 @@ class KWinWindow implements IDriverWindow {
|
||||
|
||||
public get shouldIgnore(): boolean {
|
||||
const resourceClass = String(this.client.resourceClass);
|
||||
const resourceName = String(this.client.resourceName);
|
||||
const windowRole = String(this.client.windowRole);
|
||||
return (
|
||||
this.client.specialWindow
|
||||
|| resourceClass === "plasmashell"
|
||||
|| (KWINCONFIG.ignoreClass.indexOf(resourceClass) >= 0)
|
||||
|| (KWINCONFIG.ignoreClass.indexOf(resourceName) >= 0)
|
||||
|| (matchWords(this.client.caption, KWINCONFIG.ignoreTitle) >= 0)
|
||||
|| (KWINCONFIG.ignoreRole.indexOf(windowRole) >= 0)
|
||||
);
|
||||
@ -48,12 +50,14 @@ class KWinWindow implements IDriverWindow {
|
||||
|
||||
public get shouldFloat(): boolean {
|
||||
const resourceClass = String(this.client.resourceClass);
|
||||
const resourceName = String(this.client.resourceName);
|
||||
return (
|
||||
this.client.modal
|
||||
|| (!this.client.resizeable)
|
||||
|| (KWINCONFIG.floatUtility
|
||||
&& (this.client.dialog || this.client.splash || this.client.utility))
|
||||
|| (KWINCONFIG.floatingClass.indexOf(resourceClass) >= 0)
|
||||
|| (KWINCONFIG.floatingClass.indexOf(resourceName) >= 0)
|
||||
|| (matchWords(this.client.caption, KWINCONFIG.floatingTitle) >= 0)
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user