This commit is contained in:
2025-06-24 16:47:45 +03:00
parent 9951211596
commit 951edd95db
3 changed files with 5 additions and 14 deletions

View File

@@ -35,11 +35,6 @@
#include <wayland/xdg-shell.h>
#include <wayland/xdg-toplevel-drag-v1.h>
// Missing Wayland features:
// - Application icon (xdg-toplevel-icon-v1) https://github.com/libsdl-org/SDL/pull/9584
// - Color picker (xdg-desktop-portal?) https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.Screenshot.html
// -
class LinuxDropFilesData : public IGuiData
{
public:

View File

@@ -236,15 +236,10 @@ Float2 SDLPlatform::GetMousePosition()
// use the last known reported position we got from received window events.
return Input::GetMouseScreenPosition();
}
if (UsesX11())
#elif PLATFORM_LINUX || PLATFORM_MAC
{
Float2 pos;
SDL_GetGlobalMouseState(&pos.X, &pos.Y);
return pos;
}
#endif
return Input::GetMouseScreenPosition();
Float2 pos;
SDL_GetGlobalMouseState(&pos.X, &pos.Y);
return pos;
}
void SDLPlatform::SetMousePosition(const Float2& pos)

View File

@@ -48,7 +48,7 @@ namespace Flax.Deps.Dependencies
{
string root = options.IntermediateFolder;
string configuration = "Release";
const bool buildStatic = true;
bool buildStatic = true;
var configs = new string[]
{
"-DSDL_TEST_LIBRARY=OFF",
@@ -94,6 +94,7 @@ namespace Flax.Deps.Dependencies
foreach (var platform in options.Platforms)
{
BuildStarted(platform);
switch (platform)
{
case TargetPlatform.Windows: