Skip to content

Commit

Permalink
f09bbfd2: linux: fix libxrandr load by using versioned SONAME
Browse files Browse the repository at this point in the history
  • Loading branch information
NicSavichev committed Dec 14, 2024
1 parent 84b6d8a commit a742bec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion prog/engine/drv/drv3d_commonCode/linux/x11.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ struct X11
lastCursorY = 0;
forceQueryCursorPosition = 0;

randrLib = os_dll_load("libXrandr.so");
// as we handle missing entry points, load any viable xrandr there is
randrLib = os_dll_load("libXrandr.so.2");
if (!randrLib)
randrLib = os_dll_load("libXrandr.so.1");
if (randrLib)
{
randr.init(randrLib);
Expand Down

0 comments on commit a742bec

Please sign in to comment.