Skip to content

Commit 5506f35

Browse files
mmstickjackpot51
authored andcommitted
fix: Float fullscreen windows by default
1 parent a2c0381 commit 5506f35

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/window.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ export class ShellWindow {
9494

9595
this.known_workspace = this.workspace_id()
9696

97+
// Float fullscreen windows by default, such as Kodi.
98+
if (this.meta.is_fullscreen()) {
99+
ext.add_tag(entity, Tags.Floating)
100+
}
101+
97102
if (this.may_decorate()) {
98103
if (!window.is_client_decorated()) {
99104
if (ext.settings.show_title()) {
@@ -308,7 +313,7 @@ export class ShellWindow {
308313
// Transient windows are most likely dialogs
309314
&& !this.is_transient()
310315
// If a window lacks a class, it's probably a web browser dialog
311-
&& wm_class !== null;
316+
&& wm_class !== null
312317
};
313318

314319
return !ext.contains_tag(this.entity, Tags.Floating)

0 commit comments

Comments
 (0)