Skip to content

Commit bb40c9a

Browse files
jmmarananmmstick
authored andcommitted
fix: handle grab hint border when stacked
1 parent 74faff3 commit bb40c9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/window.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ export class ShellWindow {
532532
if (stack) {
533533
let stack_tab_height = stack.tabs_height;
534534

535-
if (borderSize === 0 || this.grab === null) { // not in max screen state
535+
if (borderSize === 0 || this.grab) { // not in max screen state
536536
stack_tab_height = 0;
537537
}
538538

@@ -559,12 +559,12 @@ export class ShellWindow {
559559

560560
if (workspace === null) return;
561561

562-
const screen = workspace.get_work_area_for_monitor(this.meta.get_monitor())
562+
/*const screen = workspace.get_work_area_for_monitor(this.meta.get_monitor())
563563
564564
if (screen) {
565565
width = Math.min(width, screen.x + screen.width)
566566
height = Math.min(height, screen.y + screen.height)
567-
}
567+
}*/
568568

569569
border.set_position(x, y)
570570
border.set_size(width, height)

0 commit comments

Comments
 (0)