Commit Graph

4011 Commits

Author SHA1 Message Date
Camilla Berglund
b1fd3c00d0 Removed duplicate window position clearing. 2014-08-26 14:46:02 +02:00
Camilla Berglund
c700978c45 X11 library struct cleanup and comments. 2014-08-22 11:19:02 +02:00
Camilla Berglund
5d525c4a5f Moved display closing into _glfwPlatformTerminate. 2014-08-21 21:18:02 +02:00
Camilla Berglund
e5d890a1aa Made clipboard string member name consistent. 2014-08-21 21:14:29 +02:00
Camilla Berglund
44c899ce70 Added support for GL_KHR_context_flush_control. 2014-08-21 19:29:04 +02:00
Camilla Berglund
cfc47abf0d Made context creation backends more consistent. 2014-08-21 19:29:04 +02:00
Camilla Berglund
77d2a2131d Fixed fallthrough bug in glfwinfo. 2014-08-21 19:29:04 +02:00
Camilla Berglund
9ccb966a3a Added APIENTRY hack to native header. 2014-08-21 19:29:04 +02:00
Camilla Berglund
d5cf713c20 Clarified comment on APIENTRY hack. 2014-08-21 19:29:04 +02:00
Camilla Berglund
10ee8b4e27 Updated extension headers. 2014-08-21 19:28:59 +02:00
Camilla Berglund
a5281df501 Moved RandR gamma probe to init. 2014-08-18 12:58:02 +02:00
Camilla Berglund
59d1aa52f2 Merged gamma files into monitor files. 2014-08-18 12:31:48 +02:00
Camilla Berglund
626dbf6057 Added clearing of global struct on terminate. 2014-08-18 12:17:00 +02:00
Camilla Berglund
452e95d02a CMake path quoting fixes. 2014-08-15 15:16:45 +02:00
Camilla Berglund
4ce884fa52 Added OpenGL Reference pointers. 2014-08-15 15:16:45 +02:00
Camilla Berglund
839721b926 Fixed VC++ warnings. 2014-08-15 13:03:06 +02:00
Camilla Berglund
8cd88ddf61 Cleanup of OS X cursor fixes.
Closes #334.
Fixes #254.
2014-08-13 09:17:14 +02:00
Arseny Kapoulkine
87fb437d76 Fixed changing cursor while it's outside window.
We need to invoke both [NSCursor set] and [NSView addCursorRect].

First call is responsible for changing the cursor if it's inside the
view; second call is responsible for keeping the cursor the same if it's
outside.
2014-08-13 09:17:14 +02:00
Arseny Kapoulkine
e74ebf0be3 Fix cursor behavior on OS X.
Don't implement resetCursorRects: this occasionally hides the cursor
since an empty cursor is assigned to the window rectangle.  Implementing
this method is not required since OS displays the window cursor
correctly by default.

Don't reset cursor mode when window loses focus: once again, OS handles
this correctly, and this means that the window cursor state is restored
when window gains focus again.
2014-08-13 09:17:14 +02:00
Camilla Berglund
26f86ac50a Merge pull request #333 from ricardomv/fix-reopen
wayland: Release input focus when window is destroyed.
2014-08-13 08:59:25 +02:00
Arseny Kapoulkine
b4d4fc8f79 Optimize _glfwInitJoysticks on OS X.
This function used to enumerate all devices and capture all properties
of every device into a dictionary. This takes 180 ms on a MacBook Pro
without external devices and 280 ms with an external keyboard/mouse
attached.

Since we're only interested in a few properties, we can just get them
one by one - this reduces the time to <1 ms.

Note that we still use the dictionary to get the joystick elements.
For unknown reason this is required to get all axes/buttons - without
doing this we don't get any joystick elements in addJoystickElement.

Closes #332.
2014-08-13 08:06:37 +02:00
Camilla Berglund
3b7d34a1d5 Moved XKB header to header variable. 2014-08-11 23:56:05 +02:00
Camilla Berglund
aa4ec94d71 Removed link interface no-op.
Closes #327.
2014-08-11 20:30:21 +02:00
Camilla Berglund
dd043d737f Use CMake threading variable for Wayland. 2014-08-11 20:27:48 +02:00
Camilla Berglund
6e0ea02f17 Quoted all CMake paths with substitution.
Fixes #258.
2014-08-11 20:26:37 +02:00
Camilla Berglund
87490316c8 Fixed video modes not being rotated to match CRTC.
Fixes #284.
2014-08-11 19:48:27 +02:00
Camilla Berglund
036da0fb4e Added RandR header inclusion to native header.
Fixes #222.
2014-07-28 21:19:50 +02:00
Ricardo Vieira
a7c9ca3b43 wayland: Release input focus when window is destroyed
This fixes a seg. fault on the reopen test because events might occur
after the window is destroyed (for example leave events).
2014-07-26 21:55:43 +01:00
Camilla Berglund
c39ebfe1b8 Fixed callback syntax in tutorial. 2014-07-23 23:52:20 +02:00
Camilla Berglund
434d0947e5 Merge pull request #321 from ricardomv/wayland-resize
Add support for resizing windows on Wayland.
2014-07-21 14:45:23 +02:00
Ricardo Vieira
acf6bfb1f6 wayland: Destroy window context before clearing the egl surface 2014-07-10 22:10:15 +01:00
Ricardo Vieira
2c5c6a1ff5 wayland: Add support for resizing windows 2014-07-10 22:07:30 +01:00
Ricardo Vieira
08dccc390d wayland: Remove unused code 2014-07-10 22:05:54 +01:00
Camilla Berglund
70fd348432 Fixed API version in header files. 2014-07-08 13:44:34 +02:00
Camilla Berglund
cd93df4fe0 Made events test monitor callback static. 2014-07-07 23:23:46 +02:00
Camilla Berglund
0364457947 Added custom Doxygen layout file. 2014-07-04 13:27:41 +02:00
Siavash Eliasi
9c545d6a14 Fixed typo. 2014-07-03 10:26:49 +04:30
Camilla Berglund
c015852498 Restored smaller Doxygen code block padding.
This is a revert of db5b089cee.
2014-07-02 18:41:30 +02:00
Camilla Berglund
7135f203f5 Merge pull request #322 from glfw/light-grey-highlight
Using a light grey syntax highlighting theme.
2014-07-02 18:21:49 +02:00
Siavash Eliasi
5a48f3123f Using a light grey syntax highlighting theme. 2014-07-02 20:44:03 +04:30
Camilla Berglund
ef60891c2c Added credit. 2014-07-01 10:49:50 +02:00
Ricardo Vieira
704dc3e34d Fixed crash on Wayland with DRM-backend.
Fixes #319.
Fixes #301.
2014-07-01 10:41:32 +02:00
Ricardo Vieira
3eae79f6e0 Fixed Wayland EGL pkg-config module name.
The wayland-egl module also includes wayland-client.

Fixes #317.
2014-07-01 10:37:41 +02:00
Jonas Ådahl
76f78cf123 Fixed name of xkbcommon pkg-config module. 2014-07-01 10:34:16 +02:00
Jonas Ådahl
2230a68e42 wayland: Follow _glfwInputChar() type change 2014-06-30 09:09:33 +02:00
Camilla Berglund
896d040c68 Merge pull request #316 from jadahl/wayland-input
Wayland input work.
2014-06-29 23:44:35 +02:00
Jonas Ådahl
9ac854b7bb wayland: Add keyboard support
Adds libxkbcommon as a dependency when enabling the Wayland backend.
2014-06-29 23:21:06 +02:00
Jonas Ådahl
2f71bfc152 x11: Move KeySym to unicode converter out of x11 backend
To be used by the Wayland backend.
2014-06-29 23:18:40 +02:00
Jonas Ådahl
819e148510 examples/boing: Add ball-follow-cursor functionality
Make it so that in the boing example, when the user clicks, the ball
follows the mouse cursor.
2014-06-29 23:18:40 +02:00
Jonas Ådahl
7d373477ed wayland: Build with -pthread 2014-06-29 23:18:40 +02:00