Skip to content

Commit 98537b2

Browse files
committed
Wayland: Fix error condition in window_get_current_screen
Leftover from when the Wayland backend was single-window only.
1 parent c6d130a commit 98537b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/linuxbsd/wayland/display_server_wayland.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ void DisplayServerWayland::window_set_drop_files_callback(const Callable &p_call
10491049
}
10501050

10511051
int DisplayServerWayland::window_get_current_screen(DisplayServer::WindowID p_window_id) const {
1052-
ERR_FAIL_COND_V(p_window_id != MAIN_WINDOW_ID, INVALID_SCREEN);
1052+
ERR_FAIL_COND_V(!windows.has(p_window_id), INVALID_SCREEN);
10531053
// Standard Wayland APIs don't support getting the screen of a window.
10541054
return 0;
10551055
}

0 commit comments

Comments
 (0)