Skip to content

Commit 8134f3f

Browse files
committed
Merge pull request godotengine#106394 from vmedea/2025-libdecor
Wayland: Unbreak build with `libdecor=no`
2 parents e066c64 + d213e72 commit 8134f3f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

platform/linuxbsd/wayland/wayland_thread.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,6 +1287,7 @@ void WaylandThread::_xdg_popup_on_configure(void *data, struct xdg_popup *xdg_po
12871287
ERR_FAIL_NULL(parent);
12881288

12891289
Point2i pos = Point2i(x, y);
1290+
#ifdef LIBDECOR_ENABLED
12901291
if (parent->libdecor_frame) {
12911292
int translated_x = x;
12921293
int translated_y = y;
@@ -1295,6 +1296,7 @@ void WaylandThread::_xdg_popup_on_configure(void *data, struct xdg_popup *xdg_po
12951296
pos.x = translated_x;
12961297
pos.y = translated_y;
12971298
}
1299+
#endif
12981300

12991301
// Looks like the position returned here is relative to the parent. We have to
13001302
// accumulate it or there's gonna be a lot of confusion godot-side.

0 commit comments

Comments
 (0)