Skip to content

Commit 0abed18

Browse files
committed
we can't set 'decorations' too early, as the headerbar may not exist yet
that's OK, because it is already special cased for initialization
1 parent aadf9b0 commit 0abed18

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

html5/js/Window.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -644,13 +644,6 @@ class XpraWindow {
644644
if ("window-type" in metadata) {
645645
this.windowtype = metadata["window-type"];
646646
}
647-
if ("decorations" in metadata) {
648-
this.decorations = Boolean(metadata["decorations"]);
649-
this._set_decorated(this.decorations);
650-
this.updateCSSGeometry();
651-
this.handle_resized();
652-
this.apply_size_constraints();
653-
}
654647
if ("opacity" in metadata) {
655648
let opacity = metadata["opacity"];
656649
opacity = opacity < 0 ? 1 : opacity / 0x1_00_00_00_00;
@@ -773,6 +766,13 @@ class XpraWindow {
773766
if ("maximized" in metadata) {
774767
this.set_maximized(Boolean(metadata["maximized"]));
775768
}
769+
if ("decorations" in metadata) {
770+
this.decorations = Boolean(metadata["decorations"]);
771+
this._set_decorated(this.decorations);
772+
this.updateCSSGeometry();
773+
this.handle_resized();
774+
this.apply_size_constraints();
775+
}
776776
}
777777

778778
/**

0 commit comments

Comments
 (0)