Commit Graph

3689 Commits

Author SHA1 Message Date
Doug Binks
825e31d0dd Cocoa fix for _glfwPlatformGetMonitorWorkarea 2018-09-08 18:49:19 +02:00
Doug Binks
e4ec9500cf Merge branch 'master' into pr-989 2018-09-08 18:27:19 +02:00
Doug Binks
3a8c2ffb37 Added Wayland _glfwPlatformGetMonitorWorkarea implementation using full monitor position and size. 2018-09-08 18:01:28 +02:00
Doug Binks
61e2d23502 Added cocoa NULL argument checks and fixed height/width issue. 2018-09-08 18:00:44 +02:00
Doug Binks
51a8667fcb Added X11 NULL argument checks. 2018-09-08 18:00:19 +02:00
Doug Binks
1a1ad508ab Added documentation for work area size. 2018-09-08 17:24:57 +02:00
Doug Binks
992e5da96a Incremented version number. 2018-09-08 17:24:20 +02:00
Doug Binks
196a7cf7d2 Fixed zeroing of height argument. 2018-09-08 17:18:24 +02:00
Doug Binks
875cbdf46d Added size to documentation. 2018-09-08 17:18:05 +02:00
Doug Binks
147b0f5e83 Added width and height to glfwGetMonitorWorkarea documentation. 2018-09-08 17:16:07 +02:00
Doug Binks
af43c42c93 Fix for _glfwPlatformGetMonitorWorkarea with NULL inputs. 2018-09-08 17:14:57 +02:00
Doug Binks
921d9833b2 Fixed and simplified _glfwPlatformGetMonitorWorkarea on win32 2018-09-08 17:09:43 +02:00
Doug Binks
a484f0d8dd Moved glfwGetMonitorWorkarea function usuage example to monitors.c test. 2018-09-08 16:38:43 +02:00
Camilla Löwy
eeac43c3f7 Win32: Fix symbol definition detection
Related to #1320.
2018-09-05 22:45:06 +02:00
Camilla Löwy
089ea9af22 Add GLFW_SCALE_TO_MONITOR
This adds the GLFW_SCALE_TO_MONITOR window hint for automatically
resizing the content area of a window to the requested size times the
monitor content scale each time it is placed on a new monitor.  This
only applies to windowed mode windows and includes the initial placement
at window creation.

This hint only has an effect on platforms where screen coordinates and
pixels always map 1:1 such as Windows and X11.  Platforms like macOS
instead change the resolution of the framebuffer independently of the
window size.

Related to #676.
Related to #1115.
2018-09-03 23:12:39 +02:00
Camilla Löwy
5294439595 Win32: Add support for Per-Monitor V2 awareness
This adds basic support for the Per-Monitor V2 level of DPI awareness
in Windows 10, which allows for automatic DPI scaling of window
decorations.

This commit does not include resizing the window content area to match
the new window content scale.

Related to #1115.
Fixes #1294.
2018-09-03 23:12:39 +02:00
Camilla Löwy
b3efdcb38a Update Nuklear to 4.00.1 2018-09-03 23:12:29 +02:00
Camilla Löwy
3238f2291f Update changelog
Related to #1316.
2018-08-30 13:47:54 +02:00
Doug Binks
ed12a54afd Win32: Fix keypad equals key reported as unknown
Fixes #1315.
Closes #1316.
2018-08-30 13:47:54 +02:00
Camilla Löwy
338afe3c6d X11: Clean up cursor shape translation 2018-08-30 13:47:54 +02:00
Camilla Löwy
b1b21292b9 X11: Clean up context lookup 2018-08-30 13:47:54 +02:00
Camilla Löwy
a67d8afbd4 Win32: Clean up DWM detection 2018-08-24 15:06:39 +02:00
Camilla Löwy
d4cbe451fc Win32: Clean up cursor shape translation 2018-08-24 15:06:39 +02:00
Camilla Löwy
096ace5a68 Clarify comment 2018-08-24 15:06:39 +02:00
Emmanuel Gil Peyrot
8d3595fb4d Remove redundant redundancy 2018-08-23 09:51:01 +02:00
Camilla Löwy
018ab7229b Add credit 2018-08-09 19:03:57 +02:00
Coşku Baş
f4764f7288 Accidentally a word
Related to #1310.
2018-08-09 19:03:51 +02:00
Coşku Baş
ccef385f02 Fix content scale callback func name
Related to #1310.
2018-08-09 19:03:42 +02:00
Camilla Löwy
e1495c013d Fix missing API reference thread safety section
Fixes #1312.
2018-08-09 13:57:10 +02:00
Camilla Löwy
f82a8f09eb Win32: Disable mouse trails for full screen
When mouse trails are enabled, the cursor becomes invisible when the
OpenGL ICD detects a full screen window and switches to page flipping.

Mouse trails are now disabled as long as any full screen windows are
visible.

Fixes #1263.
2018-08-02 00:01:26 +02:00
Doug Binks
0be4f3f75a Add GLFW_FOCUS_ON_SHOW window hint and attribute
This adds a window hint and attribute for controlling whether
glfwShowWindow gives the specified window input focus in addition to
making it visible.

Fixes #1189.
Closes #1275.
2018-05-29 15:51:36 +02:00
Camilla Löwy
bf6551a3ca Cocoa: Fix FindVulkan.cmake paths for LunarG SDK
Fixes #1278.
2018-05-28 17:30:14 +02:00
Emmanuel Gil Peyrot
617a322bd8 Documentation work 2018-05-19 20:19:23 +02:00
Camilla Löwy
fdfb5ab466 Fix tpyo 2018-05-18 15:22:48 +02:00
Camilla Löwy
a9a5a0b016 Replace use of ctype function that caused warning 2018-05-18 11:30:14 +02:00
Camilla Löwy
8d1a64c831 X11: Make event polling more robust
This makes X11 event polling less likely to block if the application
uses the display via native access.

Fixes #1225.
2018-05-17 14:41:16 +02:00
Camilla Löwy
15d89bdff6 Win32: Allow compile-time override of class name
To use, define _GLFW_WNDCLASSNAME to any sane wide string.

Fixes #1120.
2018-05-16 17:15:02 +02:00
Camilla Löwy
2167bee551 Documentation work 2018-05-11 14:40:33 +02:00
Camilla Löwy
7ef34eb06d X11: Add support for Cygwin/X sonames 2018-04-25 21:50:51 +02:00
Camilla Löwy
c443b02472 Cleanup 2018-04-25 21:50:51 +02:00
Andreas Noever
fcc244ea6d Win32: Fix windows build with WINVER >= Vista
In 32e78aeb2 the definition of DWM_BLURBEHIND in win32_platform.h was
moved behind a WINVER < 0x0600 preprocessor check (< Vista). This broke
the build for WINVER >= 0x0600 since DWM_BLURBEHIND is not defined.

Starting with Vista DWM_BLURBEHIND is available in Dwmapi.h.
So we can just include the header directly on Vista and above.

Closes #1253.
2018-04-25 21:50:51 +02:00
Camilla Löwy
8b9221d845 X11: Fix missing dlclose calls for X extensions 2018-04-25 21:49:41 +02:00
Camilla Löwy
50eccd298a Fix cursor mode application for unfocused windows
Fixes #1239.
Fixes #1247.
2018-04-25 21:49:26 +02:00
Camilla Löwy
819a2205e5 Cleanup 2018-04-12 03:27:06 +02:00
Camilla Löwy
5d8b04a7ac Fix missing call to glfwTerminate 2018-04-10 17:53:25 +02:00
Camilla Löwy
d222a40046 Documentation work 2018-04-10 17:53:25 +02:00
Camilla Löwy
23dfeee4cb Add semver link to documentation 2018-04-09 00:05:59 +02:00
Camilla Löwy
474fa73e6c Update minimum required CMake version to 3.0
Fixes #1244.
2018-04-09 00:04:29 +02:00
Greg V
0a3c4f5d80 Add support for Wayland on FreeBSD and other OSes 2018-03-27 22:03:37 +02:00
Camilla Löwy
2884915000 Cocoa: Set CAMetalLayer contents scale from window
Fixes #1229.
2018-03-20 19:58:39 +01:00