1. 17 Jan, 2020 5 commits
    • Camilla Löwy's avatar
      Win32: Fix scancode when key message only had VK · e5353801
      Camilla Löwy authored
      Some synthetic key messages come with a scancode of zero, causing them
      to be translate to GLFW_KEY_UNKNOWN.  This fills in the missing scancode
      by translating the provided virtual key.
      
      Rather than further complicate a single-use function, its body is merged
      into the key message handler.
      
      Fixes #1623.
      
      (cherry picked from commit 789a2bcb3985a882944f3ae8dc6aa8aa22a23494)
      e5353801
    • Camilla Löwy's avatar
      Check scancode before use in glfwGetKeyName · ec286969
      Camilla Löwy authored
      (cherry picked from commit 5f1631cb0e6f3544e9d13e7deb60ff3473a8a3f3)
      ec286969
    • Camilla Löwy's avatar
      Win32: Fix no Super key release event after Win+V · 8552152f
      Camilla Löwy authored
      The Win+V hotkey brings up a clipboard history IME that consumes the key
      release.  This adds left and right Super to the modifier keys manually
      polled for undetected release during event processing.
      
      Fixes #1622.
      
      (cherry picked from commit 562c17d131bd99d92f1166e2a8a42d7af023d122)
      8552152f
    • Camilla Löwy's avatar
      Cocoa: Add fully dynamic loading of Vulkan loader · 85172703
      Camilla Löwy authored
      If the application is not linked against the Vulkan loader and relies on
      a third-party loader library or glfwGetInstanceProcAddress, then our
      call to dlopen will fail without a custom dyld environment variable.
      
      This adds a fallback of looking in the directory of the main executable,
      which matches the bundle structure recommended by the Vulkan SDK, making
      that finally work out of the box for fully dynamic loading.
      
      (cherry picked from commit 7da87aaae7039cbdc132f8f563a2603c5e3c73a1)
      85172703
    • Camilla Löwy's avatar
      Cocoa: Select Vulkan surface extension at runtime · d3308444
      Camilla Löwy authored
      This mostly just follows the pattern established by X11.
      
      Related to #1619.
      
      (cherry picked from commit 15d91801b7ac3d52779ec7330f2a1c0128fb57df)
      d3308444
  2. 14 Jan, 2020 1 commit
  3. 12 Jan, 2020 1 commit
    • Camilla Löwy's avatar
      X11: Fix BadMatch focusing a window on non-EWMH WM · 487e0419
      Camilla Löwy authored
      When the WM does not support EWMH or there is no WM running, GLFW falls
      back to XSetInputFocus, which will emit BadMatch if the window is not
      viewable, which will terminate the program.
      
      Bug spotted on IRC.
      
      (cherry picked from commit aa5e31356178de43d42f43f48914a62c25033f4b)
      487e0419
  4. 05 Jan, 2020 1 commit
  5. 01 Jan, 2020 2 commits
    • Camilla Löwy's avatar
      X11: Fix no window position events during resize · ecda86fa
      Camilla Löwy authored
      A window resize action that also resulting in the window being moved did
      not emit any window positions events, as the position of real
      ConfigureNotify events was ignored.  The real events use parent
      coordinates instead of root coordinates so this adds parent tracking and
      conditional translation.
      
      Fixes #1613.
      
      (cherry picked from commit fe57e3c2921a1901390534e1e51053df70b5644b)
      ecda86fa
    • Camilla Löwy's avatar
      Update changelog and add credit · 359f0e10
      Camilla Löwy authored
      (cherry picked from commit bf292f0083df14e0c8e0bf10c599681d460c9179)
      359f0e10
  6. 31 Dec, 2019 2 commits
    • Camilla Löwy's avatar
      Cocoa: Replace display link with IOKit query · 9fc5fd13
      Camilla Löwy authored
      This removes the final dependency on CoreVideo, using a display link to
      get the refresh rate of monitors where Core Graphics report a refresh
      rate of zero.  Instead we now query the I/O registry directly, similarly
      to what the display link does at creation.
      
      Thanks to @OneSadCookie for pointers to this solution.
      
      (cherry picked from commit 4ec7daf3e92440efab8dac7c1f4c60707d990ed0)
      9fc5fd13
    • Camilla Löwy's avatar
      NSGL: Remove problematic swap interval workaround · ccb54c3e
      Camilla Löwy authored
      Fixes #1483.
      
      (cherry picked from commit 54e8e0b0928400a9da7ebb9d27ad686ee756686e)
      ccb54c3e
  7. 19 Dec, 2019 8 commits
    • Camilla Löwy's avatar
      X11: Fix updating GLFW_FLOATING on a hidden window · 94bb2a13
      Camilla Löwy authored
      (cherry picked from commit 9db156421f038e5a269a63d59e509f4fb1e2392b)
      94bb2a13
    • Camilla Löwy's avatar
      X11: Fix invalid read when clearing GLFW_FLOATING · 85a27e9f
      Camilla Löwy authored
      (cherry picked from commit 0b652a44d2afe593d6eca8a0d586c20555a0497c)
      85a27e9f
    • Camilla Löwy's avatar
      X11: Fix maximization of hidden windows · 8dd40f1c
      Camilla Löwy authored
      This fixes glfwMaximizeWindow having no effect on hidden windows by
      manually appending the maximization states to the EWMH state property.
      
      (cherry picked from commit 4837b78ffe48aa9fab7a9657347b77cba104979a)
      8dd40f1c
    • Camilla Löwy's avatar
      Fix typo · 2b1e2d2e
      Camilla Löwy authored
      (cherry picked from commit 7e03bce1387696918bef4a7022cb5cc3db39e2ea)
      2b1e2d2e
    • Luflosi's avatar
      Fix typo · 39c5e90d
      Luflosi authored
      Fixes #1601.
      
      (cherry picked from commit ac30ef3e0c6cac8bbd54b142eadfedd8dd3fe91b)
      39c5e90d
    • Camilla Löwy's avatar
      Add dependency name hints to CMake error messages · 365321a9
      Camilla Löwy authored
      Fixes #1605.
      
      (cherry picked from commit a43f54567773c38ee9dda4ab6b6a65fd58a67080)
      365321a9
    • Camilla Löwy's avatar
      NSGL: Fix disabling of Retina resolution · e135210c
      Camilla Löwy authored
      It appears the default is now YES.
      
      Fixes #1442.
      
      (cherry picked from commit fa602692455d87e11c9ff5a5fb0681ca6403772a)
      e135210c
    • Camilla Löwy's avatar
      Cocoa: Fix pre-window-creation event processing · 2da4adce
      Camilla Löwy authored
      Polling the event queue before NSApp had been allowed to finish
      launching, in our case by starting our self-terminating run loop,
      triggered an assertion inside NSApplication.
      
      This fix, which makes all event processing functions capable of starting
      it, makes that assertion less likely.
      
      A more Cocoa-friendly fix would be to finish launching NSApp during
      glfwInit and let people annoyed by the menu bar disabled it with
      GLFW_COCOA_MENUBAR.  That may not be suitable for 3.3-stable, though.
      
      Fixes #1543.
      
      (cherry picked from commit 6e6805000ac7ddf39c8c5f6be3e877770cba5083)
      2da4adce
  8. 03 Dec, 2019 1 commit
  9. 14 Nov, 2019 1 commit
    • Camilla Löwy's avatar
      Cocoa: Process events after window destruction · 129a5ccb
      Camilla Löwy authored
      On macOS a destroyed window remained on screen until the next time
      events were processed.  This makes the behavior more consistent with
      other platforms.
      
      Fixes #1412.
      
      (cherry picked from commit c819f27ce3e6639b4d4b432c0e5191e5c26a9d31)
      129a5ccb
  10. 05 Nov, 2019 8 commits
    • Camilla Löwy's avatar
      X11: Fix content scale fallback value on KDE · 399c0820
      Camilla Löwy authored
      KDE sometimes removes the Xft.dpi resource when it would be set to the
      X11 default value of 96, causing GLFW to fall back to a value calculated
      from the core display sizes in pixels and mm in a desktop environment
      that supports Xft.dpi.
      
      This moves to a hardcoded fallback value of 96 on the assumption that
      there are more people running KDE with 96 DPI than there are people
      running desktop environments that do not support Xft.dpi.
      
      All of this is terrible please send help.
      
      Fixes #1578.
      
      (cherry picked from commit 75294462b354d147aa5914c30e3005551cc04e4a)
      399c0820
    • Camilla Löwy's avatar
      X11: Fix decoration enabling after window creation · 1bf892f6
      Camilla Löwy authored
      This fixes the enabling of window decorations after creation.  Instead
      of removing the _MOTIF_WM_HINTS property, we now set or unset the
      MWM_DECOR_ALL bit of the decorations field.
      
      Fixes #1566.
      
      (cherry picked from commit 5fc4c01302b0729fd9f39e8c504e28cf7347153c)
      1bf892f6
    • Camilla Löwy's avatar
      Cleanup · 91c6a542
      Camilla Löwy authored
      Related to #1585.
      
      (cherry picked from commit 04f7f55f077bcb61081d8249ac0515b1453eedfb)
      91c6a542
    • Pablo Prietz's avatar
      Fix CMake 3.0 - 3.6 support regression · 411d4dd5
      Pablo Prietz authored
      Replaces `VERSION_GREATER_EQUAL` with `VERSION_EQUAL OR
      VERSION_GREATER`.  `VERSION_GREATER_EQUAL` was only added in CMake 3.7.
      
      Fixes #1584.
      Closes #1585.
      
      (cherry picked from commit 4d0ae4ffa74f71f91a807a08e9f09324862f1ffc)
      411d4dd5
    • Camilla Löwy's avatar
      Update changelog · 161e9e12
      Camilla Löwy authored
      (cherry picked from commit 36c547875c3db6bea9e1e7d5ed8a633771dde774)
      161e9e12
    • Corentin Wallez's avatar
      Fix -Wextra-semi warnings · afcefcb5
      Corentin Wallez authored
      Closes #1440.
      
      (cherry picked from commit 3a37a089982ba66f69d3b8e15ec8c769621f7f12)
      afcefcb5
    • Camilla Löwy's avatar
      Use HTTPS for Discourse forum · 85795141
      Camilla Löwy authored
      (cherry picked from commit 1e20218b3da47691ab5589592f41ce50856f7273)
      85795141
    • Camilla Löwy's avatar
      Add credit · 17f1cceb
      Camilla Löwy authored
      Related to #1576.
      
      (cherry picked from commit 545f4095921273e9c3ea562b95f331f77f2202b2)
      17f1cceb
  11. 23 Sep, 2019 4 commits
    • Camilla Löwy's avatar
      Cocoa: Fix glfwSetWindowSize anchor point · a1b65e85
      Camilla Löwy authored
      This makes glfwSetWindowSize use the top-left corner as anchor point
      instead of the bottom-left corner.
      
      Fixes #1553.
      
      (cherry picked from commit 7f02898264d6077738f0e8032f027eb7e252c90e)
      a1b65e85
    • Camilla Löwy's avatar
      Update changelog and add credit · 934f0e9f
      Camilla Löwy authored
      Related to #1556.
      
      (cherry picked from commit 26aac53e1d07ad9996cde7a341c7713eaa1955b5)
      934f0e9f
    • Camilla Löwy's avatar
      Win32: Fix GLFW_MAXIMIZED not maximizing window · 30e67357
      Camilla Löwy authored
      The window rect adjustment for content scale broke the initial, correct
      maximization performed when creating the window with WS_MAXIMIZE.  This
      switches to updating the restored rect instead of the current rect.
      
      Fixes #1499.
      Closes #1503.
      
      (cherry picked from commit 711b9694a133ef338482ae75ada724e3a9915d91)
      30e67357
    • Camilla Löwy's avatar
      Fix Vulkan triangle test segfault on resize · 1e8dc836
      Camilla Löwy authored
      The command buffer handle was not reset after being freed on window
      resize, leading to a segfault when the stale handle was used.
      
      (cherry picked from commit 65748fb8f316384cda39583a489c39ae80124305)
      1e8dc836
  12. 22 Jul, 2019 1 commit
    • Camilla Löwy's avatar
      Add credit · b1309dd4
      Camilla Löwy authored
      (cherry picked from commit b0692d73ddb66461549cda0a009f867dab9de0fd)
      b1309dd4
  13. 16 Jul, 2019 5 commits
    • Camilla Löwy's avatar
      Documentation work · 8e923e59
      Camilla Löwy authored
      [ci skip]
      
      (cherry picked from commit a4d910b4a72f3a85d7be42ea2f91162cdfd28375)
      8e923e59
    • Leon Linhart's avatar
      Win32: Fix cursor enter/position event order · 9fc035a5
      Leon Linhart authored
      This fixes the cursor enter event being emitted after the first cursor
      position event on Windows.
      
      Closes #1490.
      
      (cherry picked from commit 4f0b8b0ddaada126cd257f2e5b06450e932ad5f6)
      9fc035a5
    • Camilla Löwy's avatar
      Add credits · ce7cd3e2
      Camilla Löwy authored
      (cherry picked from commit 7bd0af3089e39de0dbed11e42463ecf84e5df769)
      ce7cd3e2
    • Camilla Löwy's avatar
      Win32: Fix symbol redefinition warnings · 248e8276
      Camilla Löwy authored
      When both GLFW_INCLUDE_VULKAN and VK_USE_PLATFORM_WIN32_KHR were
      defined, the GLFW header would define replacement versions of APIENTRY
      and WINGDIAPI /before/ including the Vulkan header, which would include
      windows.h, which (justifiably) defines APIENTRY and WINGDIAPI blindly.
      
      Fixes #1524.
      
      (cherry picked from commit 773f4495f005004ea17fbc4a96b6b1ce758e79d6)
      248e8276
    • Camilla Löwy's avatar
      Update changelog · 95e7ad7e
      Camilla Löwy authored
      Related to #1528.
      
      (cherry picked from commit 5bea122211a4c537e461f7f473a8d9afbc98af6f)
      95e7ad7e