1. 01 Jan, 2020 1 commit
    • 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
  2. 23 Sep, 2019 1 commit
    • Camilla Löwy's avatar
      Unify key name string handling · 79f4ec68
      Camilla Löwy authored
      This makes key names per-key static strings for all supported platforms.
      
      Fixes #1200.
      
      (cherry picked from commit 56ca0cb3b30ecb1310752360e9c875fc1b2bab5e)
      79f4ec68
  3. 16 Jul, 2019 2 commits
    • Denis Bernard's avatar
      X11: Query and keep track of Xkb group index · b3eb6dd3
      Denis Bernard authored
      For users with multiple keyboard layouts configured, glfwGetKeyName
      works fine only with the primary layout.  Switching layouts results in
      changing the group index.  This commit querries the current group index
      when initializing keyboard input and keeps track of any change to it.
      
      As a result the scancode -> keyname mapping may change while the program
      is running (needs to be documented).
      
      Fixes #1462.
      Closes #1528.
      
      (cherry picked from commit 36f90800d8d490b27d4dc2109c07a95a12007327)
      b3eb6dd3
    • Camilla Löwy's avatar
      X11: Clean up EWMH feature detection · e276f673
      Camilla Löwy authored
      The EWMH feature detection atoms are now named and loaded the same way
      as other X11 atoms.  Detection is now performed after all
      non-conditional atoms have been loaded.  The EWMH detection now has
      hopefully more readable comments.
      
      (cherry picked from commit fad9896d38922222cdd28608cfc27c3761b3d90b)
      e276f673
  4. 15 Apr, 2019 1 commit
  5. 05 Mar, 2019 2 commits
    • Camilla Löwy's avatar
      X11: Fix implementation of work area retrieval · 3a2a97f1
      Camilla Löwy authored
      This intersects the global work area from _NET_WORKAREA with the monitor
      viewport.  The monitor viewport falls back to the core display
      dimensions where working RandR is missing.  The _NET_WORKAREA query is
      now checked for success.  The _NET_WORKAREA extent array is now indexed
      by _NET_CURRENT_DESKTOP.  The _NET_WORKAREA atom is now checked for
      availability.
      
      Related to #1322.
      3a2a97f1
    • Felipe Ferreira da Silva's avatar
      Add glfwGetMonitorWorkarea · be295ccb
      Felipe Ferreira da Silva authored
      This function retrieves the work area rectangle of the specified
      monitor.
      
      Related to #920.
      Closes #989.
      be295ccb
  6. 07 Feb, 2018 1 commit
    • Camilla Löwy's avatar
      Cleanup · 1d75b205
      Camilla Löwy authored
      Allow window creation despite video mode setting failure.
      
      Video mode setting failure is ignored the rest of the time and the
      desired video mode has never been a hard constraint anyway.
      1d75b205
  7. 15 Nov, 2017 1 commit
  8. 26 Oct, 2017 1 commit
    • Camilla Löwy's avatar
      Add content scale queries · 16bf8721
      Camilla Löwy authored
      This adds glfwGetWindowContentScale and glfwGetMonitorContentScale for
      querying the recommended drawing scale factor for DPI-aware rendering.
      
      Parts of this patch are based on code by @ferreiradaselva.
      
      Fixes #235.
      Fixes #439.
      Fixes #677.
      Fixes #845.
      Fixes #898.
      16bf8721
  9. 27 Sep, 2017 2 commits
    • Camilla Löwy's avatar
      Add GLFW_TRANSPARENT attribute and documentation · 32e78aeb
      Camilla Löwy authored
      This completes support for window framebuffer transparency on Windows,
      macOS and X11.  Note that the hint/attribute may be renamed before
      release to clarify its relationship to GLFW_OPACITY.
      
      Fixes #197.
      Closes #1079.
      Related to #663.
      Related to #715.
      Related to #723.
      Related to #1078.
      32e78aeb
    • Wolfgang Draxinger's avatar
      Add GLFW_TRANSPARENT and X11 implementation · 019609b6
      Wolfgang Draxinger authored
      This is a squashed extract of several commits, minimally edited to
      ensure it compiles.
      
      Related to #197.
      Related to #715.
      019609b6
  10. 17 Sep, 2017 1 commit
  11. 16 Aug, 2017 4 commits
  12. 13 Aug, 2017 1 commit
    • Kristian Nielsen's avatar
      X11: Add native access to primary selection · 29a75ab0
      Kristian Nielsen authored
      
      
      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: default avatarKristian Nielsen <knielsen@knielsen-hq.org>
      29a75ab0
  13. 08 Jun, 2017 1 commit
  14. 25 May, 2017 1 commit
    • Camilla Löwy's avatar
      Remove internal header inclusion guards · 372e9086
      Camilla Löwy authored
      Inclusion of internal headers is already both centralized and follows
      strict rules.  Inclusion guards are both an unneccessary maintenance
      burden and may hide inclusion order bugs.
      372e9086
  15. 17 May, 2017 1 commit
  16. 11 May, 2017 1 commit
  17. 27 Mar, 2017 1 commit
  18. 16 Mar, 2017 1 commit
    • Camilla Löwy's avatar
      X11: Fix multiple issues in XDND support · 6a65341e
      Camilla Löwy authored
      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.
      6a65341e
  19. 28 Feb, 2017 1 commit
    • Camilla Löwy's avatar
      Add GLFW_OSMESA_CONTEXT_API · e9560ef0
      Camilla Löwy authored
      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.
      e9560ef0
  20. 26 Feb, 2017 1 commit
  21. 01 Feb, 2017 1 commit
  22. 02 Jan, 2017 1 commit
    • Camilla Löwy's avatar
      Restructure monitor enumeration · 04f559e2
      Camilla Löwy authored
      This way is both kinder on event-based enumeration and less work to
      unwind allocations for when properly implementing GLFW_OUT_OF_MEMORY.
      04f559e2
  23. 11 Dec, 2016 1 commit
  24. 08 Dec, 2016 1 commit
    • Camilla Löwy's avatar
      Move to Vulkan style function typedefs · 32eb50b7
      Camilla Löwy authored
      PFN_FunctionName is more readable than SCREAMSOUP_T.
      
      Context creation API function typedefs are kept as-is where the original
      header provided them, for compatibility and familiarity reasons.
      32eb50b7
  25. 30 Nov, 2016 1 commit
  26. 29 Sep, 2016 1 commit
  27. 07 Sep, 2016 4 commits
  28. 18 Aug, 2016 1 commit
  29. 12 Aug, 2016 1 commit
  30. 15 Jun, 2016 1 commit
  31. 01 Jun, 2016 1 commit