Skip to content
A java agent that makes lwjgl2 use the correct primary monitor on Linux.
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main/java/lwjgl2
LICENSE
README.md
build.gradle

README.md

LWJGL2 Primary monitor Patch

A java agent that makes lwjgl2 use the correct primary monitor.

Usage

  1. Clone the repo

  2. Build

gradle build 
  1. Get the generated jar from build/libs/lwjgl2-primarymonitor-patch-xrandr.jar

  2. Add javassist to your project's dependencies

	compile "org.javassist:javassist:3.19.0-GA"
  1. Run your project with
-javaagent:/path/of/lwjgl2-primarymonitor-patch-xrandr.jar

eg.

java -javaagent:$PWD/lwjgl2-primarymonitor-patch-xrandr.jar -jar XYZ.jar
You can’t perform that action at this time.