Skip to content

Commit d213e72

Browse files
committed
wayland: Unbreak build with libdecor=no
In godotengine#101774, some libdecor-specific code was added, but without adding the guards. This broke the build with `libdecor=no`. Add `#ifdef` guard as necessary.
1 parent 09fcbb8 commit d213e72

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)