Commit Graph

449 Commits

Author SHA1 Message Date
Elias Naur 8b0b1b8b63 Added platform specific getJNIVersion implementations 2008-04-30 14:58:47 +00:00
Elias Naur be0fbdf13b Applet focus fixes 2008-04-13 18:43:27 +00:00
Elias Naur 228f1f0520 Linux: Moved X error handling to java 2008-04-13 08:34:39 +00:00
Elias Naur 261d453a3e Linux: Removed change set code again 2008-04-12 23:09:47 +00:00
Elias Naur 6ac8101392 Linux: Removed library destructor, because lwjgl doesn't fiddle with the global repeat control anymore 2008-04-12 21:49:57 +00:00
Elias Naur 11f25424e2 Linux: Added support for XFixesChangeSaveSet to increase robustness of parented mode 2008-04-12 20:40:27 +00:00
Elias Naur a015dc4558 Linux: Rewrote focus handling to cope with the weird focus behaviour when running in an XEmbed enabled jvm (applet mode) 2008-04-12 20:07:23 +00:00
Elias Naur e50dc04191 Removed AWTInputAdapter, since Display.setParent() works much betterdiff 2008-04-10 20:25:54 +00:00
Elias Naur 450634c49c Linux: Removed grab/ungrabServer logic and replace it with catching of any X errors occruing because of a XSetInputFocus race 2008-04-09 23:40:18 +00:00
Elias Naur b5c893d207 Linux: When parented, take focus on click 2008-04-09 18:09:15 +00:00
Elias Naur 61a71ea912 Let the Display resize itself to match its parent, if non null 2008-04-07 19:21:40 +00:00
Brian Matzon 175642d593 updated and added license where needed 2008-04-07 18:42:36 +00:00
Elias Naur e2596d8efa Linux: Use icon mask as monochrome to please some xorg versions 2008-04-07 09:23:27 +00:00
Elias Naur bf25259325 Linux: Attempt to avoid race condition when tracking Display parent focus 2008-04-06 21:34:22 +00:00
Elias Naur c499f33bcf Added experimental Display.setParent to allow Display to be embedded in an AWT Canvas. Added basic linux implementation and test. 2008-04-06 20:56:52 +00:00
Elias Naur 395cf797cb Linux: Added alpha mask support to Display.setIcon 2008-04-01 19:46:20 +00:00
Elias Naur 8e2233167d Linux: Fixed test for XkbSetDetectableAutoRepeat success 2008-01-19 08:57:20 +00:00
Elias Naur 8f677f1585 Linux: use XkbSetDetectableAutoRepeat to detect repeated key events more reliably 2008-01-07 18:29:04 +00:00
Elias Naur b19f24ec61 openal: Don't free native path too early (duh) 2007-11-14 11:07:22 +00:00
Elias Naur 74ab4f7fa4 openal: Improved error reporting from native library load 2007-11-14 10:45:07 +00:00
Elias Naur d616f8439a Linux: use throwFormattedException in extgl_Open instead of custom message formatting 2007-10-30 18:34:38 +00:00
Elias Naur eef220a10f Use event timestamp to detect key repeat events in KeyboardEventQueue 2007-05-13 21:11:53 +00:00
Elias Naur 55a889d053 Use jawt_md.h instead of jawt.h since that is apparently the official way of using JAWT (from the example in jawt.h) and is required for lwjgl to compile with the ibm 1.5 jdk 2007-03-13 08:18:00 +00:00
Elias Naur 4bf4a385f3 Linux: When creating a window don't loop waiting for the MapNotify event. Instead, make sure we don't immediately go from fullscreen to minimized by checking if the window has been focused at least once before minimizing (and resetting display mode). 2007-02-23 10:14:18 +00:00
Elias Naur a5c8a3d6af Linux: Don't call XSetInputFocus when creating a window. XSetInputFocus can fail if the window is not mapped when calling it, and it seems that it's rude to call XSetInputFocus according to the ICCCM when the application doesn't already have the focus in one of its subwindows. 2007-02-23 08:31:59 +00:00
Elias Naur 12eb552aba Linux: Don't use XClearWindow to clear the window, but rely on the OpenGL clearing instead. Also, remove redundant attributes in XCreateWindow 2007-02-23 08:21:02 +00:00
Elias Naur 4b13bb10d3 Linux: Fixed wrong return type in LinuxEvent.nGetKeyAddress 2007-01-17 08:16:16 +00:00
Elias Naur a211f088ac Linux: Make sure a newly created window get the focus, if possible, to avoid a fullscreen window immediately getting minimized 2006-12-11 20:38:21 +00:00
Elias Naur 4aed85c5bb Linux: Don't double free the Display connection in the switchDisplayMode error path 2006-12-02 22:21:32 +00:00
Elias Naur 3674d843c2 Added org.lwjgl.opengl.AWTInputAdapter which enabled use of Mouse and
Keyboard with AWTGLCanvases. Programs can now avoid implementing AWT input processing and access the mouse grabbing features from both Display and AWTGLCanvas. See org.lwjgl.test.opengl.awt.AWTInputAdapterTest for an example.

Note: This commit is the linux and generic AWT imlementation and can still
change a lot while implementing windows and mac os x.
2006-10-26 20:19:40 +00:00
Elias Naur 541ac859b1 Linux: Made cursor handles longs instead of ByteBuffers 2006-10-26 12:14:37 +00:00
Elias Naur e23825c3e5 Linux: Moved more event handling logic to java 2006-10-24 09:52:12 +00:00
Elias Naur cb6a6ff2a2 Linux: Removed redundant include statements 2006-10-24 08:33:09 +00:00
Elias Naur 1f5f8687bb Linux: Moved current_win to java 2006-10-23 20:40:48 +00:00
Elias Naur 61e7c9e081 Linux: Moved screen from native to java 2006-10-23 20:14:45 +00:00
Elias Naur 8296ae06cb Linux: Moved the pointer warp X11 atom from native to java 2006-10-23 19:51:22 +00:00
Elias Naur 5dba786574 Linux: Moved another Display instance to java 2006-10-23 14:22:27 +00:00
Elias Naur 1a83741b89 Linux: Moved another Display instance to java 2006-10-23 14:16:40 +00:00
Elias Naur dd76a4b0d8 Linux: Moved Display pointer from native to java 2006-10-23 13:58:33 +00:00
Elias Naur 8698cf68f3 Linux: Don't use the SUN specific getScreenFromDevice in LinuxAWTCanvasPeerInfo. This avoids garbage creation per frame and avoids one bit of SUN JRE dependency. 2006-10-20 11:51:34 +00:00
Elias Naur 55f67e68cb Linux: Fix crash when LinuxCanvasImplementation.getScreenFromDevice fails 2006-09-28 21:53:18 +00:00
Elias Naur 6be8bc806e Linux: Fixed fetch of a boolean field with GetIntField JNI 2006-07-10 15:29:29 +00:00
Elias Naur af9e73ed11 Linux: Made most fields in LinuxDisplay non-static 2006-07-08 22:17:09 +00:00
Elias Naur cb8f098e17 Linux: Remove Makefiles 2006-07-07 14:06:46 +00:00
Elias Naur 4e68c787b3 Added Keyboard.getEventNanoseconds() and Mouse.getEventNanoseconds() 2006-07-04 17:07:13 +00:00
Elias Naur a417b8f15c Linux: Moved Display state booleans to java side 2006-07-03 18:33:25 +00:00
Elias Naur cbe41294a5 Linux: Moved most input related stuff from native to java 2006-07-03 18:07:44 +00:00
Elias Naur 322351b216 Linux: native code cleanup 2006-06-30 19:28:00 +00:00
Elias Naur 48cf79e55f Linux: Fixed Display.setIcon memory leak. 2006-06-30 18:56:37 +00:00
Elias Naur 9e1280d281 Linux: Made the native destructor my_fini static 2006-06-30 16:47:46 +00:00
Elias Naur 9c4ce2845b Windows implementation of floating point pixel formats 2006-06-12 13:28:56 +00:00
Elias Naur c1e65970a2 Added floating point format to PixelFormat. Linux implementation 2006-06-12 13:01:05 +00:00
Elias Naur 05111c300f Linux: Added Xfixes to the list of libraries liblwjgl.so statically links to 2006-05-29 19:03:02 +00:00
Elias Naur 24bef50437 Linux: Apparently, some the Mesa GLX 1.3 glxChooseFBConfig don't like the GLX_STEREO attribute, even when set to False. So we'll only specify GLX_STEREO in case a stereo context is actually requested 2006-05-15 19:37:29 +00:00
Elias Naur ec67322e64 Linux: Fixed accum color bits when accum_bpp = 0 2006-05-13 10:03:19 +00:00
Elias Naur d492cbde20 Linux: Removed the glXIsDirect test to determine whether a context is accelerated or not. This is specifically not the case for Xgl and friends that accelerates indireect rendering. Unfortunately, I'm not sure what to replace the test with, so there is currently no way to know from LWJGL whether we're software rendered or not (other than measuring FPS). In fact, I'm not even sure that we can come up with a good test, because some (DRI) drivers use software MESA rendering for some parts of GL, while other parts are hardware accelerated 2006-02-23 19:29:49 +00:00
Elias Naur 3b8b751935 Linux: Fixed resetDisplayMode in case XRandr is used and the first reported mode is not the initial mode 2006-01-31 12:31:41 +00:00
Elias Naur c26ebafa62 OpenAL: Split platform dependent code from extal.c into platform subdirs. Made nCreate take a path instead of an array of paths. 2006-01-16 15:54:50 +00:00
Elias Naur e636ab9671 Linux: Made Xxf86vm dynamically linked when compiling to amd64 2006-01-13 14:37:16 +00:00
Elias Naur 7e53e81103 Linux: don't throw exception if Xrandr or XF86VM extension query fails 2006-01-04 12:52:25 +00:00
Elias Naur 196471a968 Linux: Re-added RTLD_GLOBAL to dlopen() with a comment since DRI drivers need it. 2006-01-02 13:16:16 +00:00
Elias Naur 5faf661f04 Added setSwapInterval to Display and AWTGLCanvas 2006-01-01 19:50:06 +00:00
Elias Naur 69356ac9ea Linux: Added lwjgl.map to specify symbol visibility. Only Java_ symbols will be exported from the liblwjgl.so library now 2005-12-20 09:23:14 +00:00
Elias Naur 16f78b39c6 Linux: Removed the unnecessary RTLD_GLOBAL flag from the dynamic loading of libGL.so 2005-12-20 08:47:40 +00:00
Brian Matzon 3dbf76621b experimental amd64 buildfile 2005-12-17 21:14:42 +00:00
Elias Naur 17c01716ab Linux: use the correct KEYBOARD_SIZE 2005-11-23 17:08:17 +00:00
Elias Naur bbab370e8c Linux: Removed unused vsync_enabled from Display.c 2005-11-23 15:56:57 +00:00
Elias Naur f21a31e595 Linux: Removed redundant initEventQueue from Mouse.c 2005-11-23 15:36:21 +00:00
Elias Naur 3f128ca204 Linux: Removed redundant global variables from Display.c 2005-11-23 15:30:53 +00:00
Elias Naur 1ff7a0af4f Linux: Made setIcon in Display.c static since it is not called elsewhere 2005-11-23 15:18:34 +00:00
Elias Naur 4c68fc2ecf Linux: Added -lm and -std=c99 to fix the warning abount round(). Removed some unnecessary headers 2005-11-23 15:10:05 +00:00
Elias Naur 3c83a92a64 Linux: Ignore events from old windows 2005-11-22 14:30:00 +00:00
Elias Naur d6ae5e2d45 Converted some static local variables to stack localvariables 2005-11-22 14:03:52 +00:00
Elias Naur 2bc0988c98 Linux: More native code refactoring 2005-11-22 13:53:13 +00:00
Elias Naur 7469d59dbf Linux: Removed current_* mode cache from display.c 2005-11-22 11:23:37 +00:00
Elias Naur f548d581ce Linux: Fixed a mouse cursor position issue in grabbed mode 2005-11-22 11:06:21 +00:00
Elias Naur 9a64711cea Linux: removed getWindowWidth/Height from native side 2005-11-22 10:32:17 +00:00
Elias Naur 026f64a8e5 Linux: Removed getScreenModeWidth/Height from display.c 2005-11-22 09:32:15 +00:00
Elias Naur 936ae90290 Linux: fixed an issue with Xrandr timestamps 2005-11-21 22:37:14 +00:00
Elias Naur e2ee957f0b Linux: let exceptions from display.c propagate to LinuxDisplay.java 2005-11-21 22:21:29 +00:00
Elias Naur b6dd18fc7d Linux: Moved saved display mode from C to LinuxDisplay.java 2005-11-21 21:59:11 +00:00
Elias Naur b3fd19cf01 Linux: Moved some JNI functions 2005-11-21 18:25:30 +00:00
Elias Naur 61bfceaaed Linux: Moved a display connection to java 2005-11-21 16:50:11 +00:00
Elias Naur debaaf6538 Linux: Move gamma ramps to java code 2005-11-21 16:32:34 +00:00
Elias Naur c9669d20c9 Linux: Folded three ramp arrays into one, to avoid multiple allocations 2005-11-21 13:43:49 +00:00
Elias Naur 6e5ed9d1ff Linux: Moved a display connection creation to java 2005-11-21 13:32:52 +00:00
Elias Naur 5af5828dc6 Linux: Moved display mode extension and window state handling up into java code 2005-11-21 13:22:52 +00:00
Elias Naur fe915b8d1c Linux: Removed superfluous check from display.c 2005-11-21 10:55:49 +00:00
Elias Naur 3099244b4f Linux: Added zero size check to display.c 2005-11-21 10:45:59 +00:00
Elias Naur 314d353aea Linux: renamed _glX* function pointers to lwjgl_glX* to avoid symbol clash problems discovered in mustang 2005-11-20 13:20:40 +00:00
Elias Naur b669751c73 Linux: renamed _glX* function pointers to lwjgl_glX* to avoid symbol clash problems discovered in mustang 2005-11-20 13:19:39 +00:00
Elias Naur 56a56503d6 Linux: Don't assume JAWT Lock()/Unlock() are re-entrant, fixing a hang with GCJ 4 2005-10-23 19:41:09 +00:00
Elias Naur 9af9ed4320 OpenAL: Fixed native headers, now that altypes.h and alctypes are gone 2005-10-10 12:50:10 +00:00
Elias Naur 94f39655a5 Linux: Fix Mouse.setCursorPosition() 2005-10-10 09:11:24 +00:00
Elias Naur df2bc7d7e0 Moved generated files to seperate directories 2005-09-29 17:13:38 +00:00
Elias Naur 5d139f4585 Linux: Added support for LWJGL_DISABLE_XRANDR environment variable to override Xrandr support on broken window managers 2005-09-13 06:56:14 +00:00
Elias Naur 545ac5ac95 Linux: Drop out of Xrandr loop after a set amount of iterations 2005-09-12 13:05:54 +00:00
Elias Naur c1350ff363 Linux: Made the XRRSetScreenConfigAndRate retry loop more robust in order to avoid endless loops 2005-08-21 20:27:20 +00:00
Kevin Glass 2147b530b3 Added Linux native code for window icon setting. 2005-07-06 19:46:35 +00:00
Kevin Glass 0208d5b6d5 Added empty implementation of the window icon setting code in preperation for adding the Linux version. 2005-07-05 21:46:27 +00:00