Camilla Löwy
9dbc935afb
X11: Stop reporting support for COMPOUND_TEXT
2017-09-17 13:50:10 +02:00
Camilla Löwy
f7dc6df02c
X11: Add support for reading clipboard via INCR
...
This allows glfwGetClipboardString to retrieve clipboard contents larger
than (typically) 2^18 bytes.
Related to #275 .
2017-09-17 13:50:00 +02:00
Camilla Löwy
0d9e71fe81
Cleanup
2017-08-16 21:03:10 +02:00
Camilla Löwy
b7a0f225ea
Cleanup
...
Don't advertise native functions in public API guides. Don't list
primary selection access as most notable new feature. Don't have
different levels of abstraction among selection helper functions. Don't
forget to take credit.
Related to #1056 .
2017-08-13 21:22:36 +02:00
Kristian Nielsen
29a75ab09d
X11: Add native access to primary selection
...
This adds the native access functions glfwSetX11SelectionString and
glfwGetX11SelectionString under GLFW_EXPOSE_NATIVE_X11. They are
similar to glfwSetClipboardString and glfwGetClipboardString but operate
on the PRIMARY selection.
The primary selection is widely used in X11, and so seems important to
support. Primary selection is mostly an X11-specific thing, hence it's
exposed as an X11 native interface.
Fixes #894 .
Closes #1056 .
Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
2017-08-13 18:52:24 +02:00
Camilla Löwy
213dd2d0d6
Add glfwInitHintString
...
Adds string type init hints. Adds X11 specific init hints for WM_CLASS
components. Documentation work.
Fixes #893 .
2017-07-25 23:53:52 +02:00
Camilla Löwy
82284b86eb
Cleanup
...
Thanks to glfwGetKeyScancode we can now pass only a scancode to the
platform layer for glfwGetKeyName.
2017-07-13 01:26:06 +02:00
Camilla Löwy
186d03b32a
Cleanup
...
Related to #983 .
2017-05-17 22:26:15 +02:00
Denis Bernard
8597002a17
X11: Make glfwGetKeyName return UTF-8 strings
...
Fixes #981 .
Closes #983 .
2017-05-17 22:21:22 +02:00
Camilla Löwy
baa9cd8968
Cleanup
...
Closes #988 .
2017-05-11 20:10:04 +02:00
Felipe Ferreira da Silva
412eb6a611
Add glfwRequestWindowAttention
...
Related to #988 .
2017-05-11 13:36:39 +02:00
Camilla Löwy
4ff66a7818
X11: Fix IM-duplicated key events leaking through
...
Fixes #747 .
Fixes #964 .
2017-03-27 02:00:31 +02:00
Camilla Löwy
62414bff6e
X11: Fix inverted coordinate transform
2017-03-17 14:09:07 +01:00
Camilla Löwy
6a65341e14
X11: Fix multiple issues in XDND support
...
The code blindly expected UTF8_STRING for files. It did not downgrade
based on source protocol version. It did not handle hostnames in
text/uri-list data. It did not specify the source time stamp when
converting the selection. It did not search the XdndTypeList when
necessary. It did not ignore sources that specified invalid versions.
While better, this is still not fully conformant. Hostnames are not
validated and it does not guard against source crashes.
Fixes #968 .
2017-03-16 23:41:06 +01:00
A. Tombs
5ae781586f
X11: Handle Selection* events despite NULL window
...
X11 event processing currently discards events that can not be mapped to
a current GLFW window. However, this breaks clipboard functionality by
failing to respond to SelectionRequest and SelectionClear events.
This commit moves processing of these important clipboard events to
before the NULL window test so that they are always considered.
Fixes #961 .
Closes #963 .
2017-03-07 19:24:31 +01:00
Camilla Löwy
e9560ef021
Add GLFW_OSMESA_CONTEXT_API
...
This allows the creation of OpenGL contexts via OSMesa on existing
platforms. It does not add a compile- or link-time dependency on
OSMesa.
Fixes #281 .
2017-02-28 20:38:10 +01:00
Camilla Löwy
a570d0a129
X11: Use XI_RawMotion for disabled cursor motion
...
Related to #125 .
2017-02-26 18:48:04 +01:00
Camilla Löwy
5352e2caa0
X11: Fix read past top of stack on 64-bit
...
Fixes #951 .
2017-02-23 03:27:23 +01:00
Camilla Löwy
5a74b5008d
Cleanup
...
Related to #842 .
2017-02-06 15:16:27 +01:00
Liam Middlebrook
72ac5badb0
Add GLFW_CENTER_CURSOR
...
Adds a hint for controlling whether the cursor is centered over newly
created full screen windows.
Fixes #749 .
Closes #842 .
2017-02-06 15:16:26 +01:00
Camilla Löwy
ef5a21496c
X11: Fix set not being reset each call to select
2017-02-01 03:16:29 +01:00
Camilla Löwy
67a55efa27
Add null joystick backend
...
This prepares the X11 backend to support other joystick APIs, for
example the FreeBSD libusb one.
2017-02-01 03:07:25 +01:00
Camilla Löwy
bfd564f257
Move internals to shared joystick objects
...
Preparation for gamecontrollerdb support and the gamepad API.
2017-01-30 16:52:49 +01:00
Camilla Löwy
0735250eb1
X11: Fix potential window property data leaks
2017-01-16 17:53:28 +01:00
Camilla Löwy
221451b817
Cleanup
2017-01-10 15:46:00 +01:00
Camilla Löwy
04f559e28d
Restructure monitor enumeration
...
This way is both kinder on event-based enumeration and less work to
unwind allocations for when properly implementing GLFW_OUT_OF_MEMORY.
2017-01-02 06:03:02 +01:00
Camilla Löwy
f656d95339
Documentation work
2016-12-15 20:21:07 +01:00
Camilla Löwy
9e56099edd
Add glfwSetWindowAttrib
...
This function allows updating the GLFW_DECORATED, GLFW_RESIZABLE,
GLFW_FLOATING and GLFW_AUTO_ICONIFY attributes for existing windows.
Fixes #537 .
2016-12-06 15:59:18 +01:00
Camilla Löwy
f4d0c83181
Paperwork done
2016-11-30 14:00:41 +01:00
Camilla Berglund
c156b50e4c
Add glfwSetWindowMaximizeCallback
...
Fixes #778 .
2016-09-29 01:24:56 +02:00
Camilla Berglund
e6a32db7b9
Cleanup
2016-09-07 16:49:29 +02:00
Camilla Berglund
bb3cb8f233
Cleanup
...
Clean up code and documentation for glfwGetKeyScancode and add
implementation for Wayland and Mir.
Related to #830 .
2016-09-07 16:46:48 +02:00
Michael Stocker
e745b0dd47
Add glfwGetKeyScancode
...
Allows retrieval of platform scancode from GLFW_KEY_*. Implemented for
Win32, Cocoa and X11. Stubs for Mir and Wayland.
Closes #830 .
2016-09-07 16:38:22 +02:00
Camilla Berglund
afb6e485b7
X11: Make selection event checks include window
2016-09-07 16:33:41 +02:00
Camilla Berglund
ccfd6dde45
X11: Make clipboard IPC use helper window
2016-09-07 16:33:41 +02:00
Camilla Berglund
706868dad8
X11: Make glfwPostEmptyEvent use helper window
2016-09-07 16:33:41 +02:00
Camilla Berglund
fafe1732b5
Cleanup
2016-09-07 16:33:41 +02:00
Camilla Berglund
5ff7d9505f
Simplify Vulkan extension checks
...
Related to #478 .
2016-09-07 16:31:18 +02:00
Camilla Berglund
53fafad915
Start 3.3
2016-08-18 23:55:49 +02:00
Camilla Berglund
4aafdea5a7
X11: Fix glfw*WindowPos operating on window frame
...
Fixes #800 .
2016-08-17 01:45:41 +02:00
Camilla Berglund
f1c536fe13
X11: Fix BadMatch on XSetInputFocus
...
Input focus was in some cases set before the window was visible (ICCCM
section 4.2.2).
Related to #798 .
Fixes #789 .
2016-08-12 14:01:03 +02:00
Camilla Berglund
ad9233e620
X11: Clean up event wait timeout logic
...
Simplify interface and implement timeout updating.
2016-08-12 13:33:21 +02:00
Camilla Berglund
f88a609000
X11: Only unmaximize visible windows
2016-08-12 13:33:21 +02:00
Camilla Berglund
b581799c9a
Fix comment
2016-08-12 01:46:21 +02:00
Camilla Berglund
067d1d6935
Cleanup
2016-08-12 01:46:21 +02:00
Camilla Berglund
fcdef1d0a0
Fix potential context resource leaks
...
There is a gap between the creation of the context and the call to
_glfwRefreshContextAttribs.
2016-08-05 11:23:05 +02:00
Camilla Berglund
7be62631ae
Cleanup
2016-08-01 23:13:11 +02:00
Camilla Berglund
d2686c8413
Fix comment
2016-08-01 23:13:11 +02:00
Camilla Berglund
cba652e4f3
Cleanup
2016-08-01 23:13:11 +02:00
Camilla Berglund
370cd14b46
Comment work
2016-08-01 23:13:11 +02:00