1. 17 Jan, 2020 2 commits
  2. 14 Jan, 2020 1 commit
    • Camilla Löwy's avatar
      X11: Fix parent window handle initialization · fbe8ae99
      Camilla Löwy authored
      This should have been initialized to the screen root, not None.  This
      issue was introduced by fe57e3c2921a1901390534e1e51053df70b5644b.
      
      Fixes #1620.
      
      (cherry picked from commit 9372ba95faabd1bb45280d201d6ccdae77bf872e)
      fbe8ae99
  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. 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
  5. 31 Dec, 2019 7 commits
    • Camilla Löwy's avatar
      X11: Fix IC event mask not being added to our window · e8d4cc32
      Camilla Löwy authored
      (cherry picked from commit a3d28ef52cec2fb69941bbce8a7ed7a2a22a8c41)
      e8d4cc32
    • Camilla Löwy's avatar
      X11: Cleanup · 7f775302
      Camilla Löwy authored
      We can use C99 now and also we will need the event mask below.
      
      (cherry picked from commit 8149a5fc00e63ff1e94228f338f1a27de374c68b)
      7f775302
    • Luflosi's avatar
      Use the correct type in a for loop · cb49e182
      Luflosi authored
      The `sizeof()` operator has the type `size_t`, so the `for` loop
      iterating over it should use the same type.
      
      Closes #1614.
      
      (cherry picked from commit 74a46dfa0cca79e871b24dbbb9e595b4fe65e0f6)
      cb49e182
    • 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: Simulate vsync for occluded windows · bb8ed627
      Camilla Löwy authored
      This only supports a swap interval of zero or one, as that is all NSGL
      supports.
      
      (cherry picked from commit c3ca88055f7c2c8b02b38cb90fc1989990552977)
      bb8ed627
    • Camilla Löwy's avatar
      NSGL: Remove problematic swap interval workaround · ccb54c3e
      Camilla Löwy authored
      Fixes #1483.
      
      (cherry picked from commit 54e8e0b0928400a9da7ebb9d27ad686ee756686e)
      ccb54c3e
    • Camilla Löwy's avatar
      Cocoa: Only create per-monitor display link once · 7c9d0081
      Camilla Löwy authored
      The display link query is not specific to any particular display mode
      and so only needs to be done once.
      
      The next step is to replace the display link altogether by querying
      IOKit directly, which is what the display link does.
      
      (cherry picked from commit b4a8eb9b197caebcec1304cd3d55cd56e3869376)
      7c9d0081
  6. 19 Dec, 2019 21 commits
  7. 03 Dec, 2019 3 commits
    • Camilla Löwy's avatar
      Wayland: Fix pointing hand cursor shape · df4bda44
      Camilla Löwy authored
      Related to #1432.
      
      (cherry picked from commit 80fde12fdade85a39c5c1300d0a29200691fdc23)
      df4bda44
    • Emmanuel Gil Peyrot's avatar
      Wayland: Don’t update cursor position in the frame · 50218fbf
      Emmanuel Gil Peyrot authored
      That way the application only sees the cursor moving when it is inside
      of its area, it won’t go back to the top or left side when trying to
      resize the window or just hovering the fallback decorations.
      
      (cherry picked from commit a80788c17f3376177b45d52f983d4d98f1175af2)
      50218fbf
    • Emmanuel Gil Peyrot's avatar
      Wayland: Don’t reload the cursor on every pointer motion · 3a2c0aaa
      Emmanuel Gil Peyrot authored
      Previously, any pointer motion in the window decorations when using the
      fallback implementation would obtain the wl_cursor again, and do the
      attach danse for no benefit.
      
      This will ultimately allow animated cursors to not reset to the first
      frame on motion, once these will be implemented.
      
      (cherry picked from commit a9f674e719cd663560418de2a7fa1147ce6c6c9b)
      3a2c0aaa
  8. 14 Nov, 2019 4 commits
    • Camilla Löwy's avatar
      X11: Assume 96 DPI if RandR monitor size is zero · 7c33fb22
      Camilla Löwy authored
      This falls back to calculating the monitor physical size from the
      current resolution and the default X11 DPI when the physical size
      returned by RandR is zero.
      
      (cherry picked from commit e96dc5d2199032d565b55c4177820ab28b1d67c9)
      7c33fb22
    • Camilla Löwy's avatar
      Cocoa: Fix full screen window iconification · 52b77030
      Camilla Löwy authored
      Iconification (miniaturization) of undecorated windows stopped working
      unless the window has the NSWindowStyleMaskMiniaturizable style.
      
      (cherry picked from commit 2c519709be0dacc7af2908982a7ab80b889a8126)
      52b77030
    • Camilla Löwy's avatar
      Cocoa: Cleanup · e6624921
      Camilla Löwy authored
      Readability fix, does not affect generated code.
      
      (cherry picked from commit bd452016be99e10d7fa8282cd75b1c53e0d5a8cc)
      e6624921
    • Camilla Löwy's avatar
      Cocoa: Fix multiple methods warning · b3c2023e
      Camilla Löwy authored
      This fixes a warning due to us using bare ids and
      NSCollectionLayoutAnchor having a message with the same name.
      
      (cherry picked from commit bac15f94493938eded7161a7a0ab8827584e3db1)
      b3c2023e