Skip to content

Commit

Permalink
Fix issue with desktops using the --use-display flag being shifted 2.…
Browse files Browse the repository at this point in the history
…25px down
  • Loading branch information
CorbinWunderlich committed Dec 3, 2024
1 parent 6272dea commit 3c9dde4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions html5/css/client.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ canvas {
}
.window.desktop {
box-shadow: none;
top: 0px;
}

.window-NORMAL {
Expand Down
2 changes: 1 addition & 1 deletion html5/js/Window.js
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ class XpraWindow {
let y = this.y;
this.debug("geometry", "recenter() x=", x, ", y=", y, ", desktop size: ", this.client.desktop_width, this.client.desktop_height);
x = Math.round((this.client.desktop_width - this.w) / 2);
y = Math.round((this.client.desktop_height - this.h) / 2);
y = Math.round((this.client.desktop_height - this.h) / 2 + 2.25);
if (this.x != x || this.y != y || force_update_geometry) {
this.debug("geometry", "window re-centered to:", x, y);
this.x = x;
Expand Down

0 comments on commit 3c9dde4

Please sign in to comment.