Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Commit

Permalink
fix: float some utility windows on wayland
Browse files Browse the repository at this point in the history
By using transient propriety, most of utility windows are automatically
made float
  • Loading branch information
TheMachine02 authored and Mikhail Zolotukhin committed Feb 9, 2022
1 parent 5ec62c5 commit 2030767
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/kwinscript/driver/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ export class DriverWindowImpl implements DriverWindow {
this.client.modal ||
!this.client.resizeable ||
(this.config.floatUtility &&
(this.client.dialog || this.client.splash || this.client.utility)) ||
(this.client.dialog ||
this.client.splash ||
this.client.utility ||
this.client.transient)) ||
this.config.floatingClass.indexOf(resourceClass) >= 0 ||
this.config.floatingClass.indexOf(resourceName) >= 0 ||
matchWords(this.client.caption, this.config.floatingTitle) >= 0
Expand Down
6 changes: 6 additions & 0 deletions src/kwinscript/extern/kwin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,12 @@ declare namespace KWin {
*/
readonly specialWindow: boolean;

/**
* Whether the windows is transient to an other windows, i.e. it is a sub window belonging to
* a main window
*/
readonly transient: boolean;

/**
* The desktop this window is on. If the window is on all desktops the property has value -1.
*/
Expand Down

0 comments on commit 2030767

Please sign in to comment.