Skip to content

Commit f0e843a

Browse files
jmmarananjackpot51
authored andcommitted
fix: do not enable move when fullscreen
1 parent aa2fddf commit f0e843a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/tiling.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class Tiler {
7272
toggle_stacking(ext: Ext) {
7373
ext.auto_tiler?.toggle_stacking(ext);
7474
const win = ext.focus_window();
75-
if (win) this.overlay_watch(ext, win);
75+
if (win && !win.meta.is_fullscreen()) this.overlay_watch(ext, win);
7676
}
7777

7878
rect(ext: Ext, monitor: Rectangle): Rectangle | null {
@@ -194,7 +194,7 @@ export class Tiler {
194194
if (this.queue.length === 2) return;
195195
this.queue.send(() => {
196196
const focused = ext.focus_window();
197-
if (focused) {
197+
if (focused && !focused.meta.is_fullscreen()) {
198198
// The window that the focused window is being moved onto
199199
const move_to = focus();
200200

@@ -700,6 +700,7 @@ export class Tiler {
700700
if (!this.window) {
701701
const win = ext.focus_window();
702702
if (!win) return;
703+
if (win && win.meta.is_fullscreen()) return;
703704

704705
this.window = win.entity;
705706

0 commit comments

Comments
 (0)