Skip to content

Commit e7d78d3

Browse files
committed
(#17) Also remove border from width and height
1 parent 674b7cb commit e7d78d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/linux/window_manager.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ MMRect getWindowRect(const WindowHandle windowHandle) {
7171
uint32_t width, height, border_width, border_height;
7272
Status getXGeometryResult = XGetGeometry(xServer, windowHandle, &rootWindow, &x, &y, &width, &height, &border_width, &border_height);
7373
if (getXGeometryResult > 0) {
74-
windowRect = MMRectMake(x, y, width + border_width, height + border_height);
74+
windowRect = MMRectMake(x, y, width, height);
7575
}
7676
disconnectFromX(xServer);
7777
}

0 commit comments

Comments
 (0)