1. 20 Jan, 2022 1 commit
  2. 19 Jan, 2022 1 commit
  3. 18 Jan, 2022 1 commit
    • Olivier Fourdan's avatar
      xwayland: Raise the FD limit to the max · d1f26c3e
      Olivier Fourdan authored
      
      
      Xwayland may open a fair amount of file descriptors for passing Wayland
      buffers, even more so when using the `wl_shm` either for the pointer
      cursors or for when GLAMOR is not usable.
      
      As a result, Xwayland may hit the (soft) limit of file descriptors
      leading to a Wayland protocol error and the termination of Xwayland.
      
      To mitigate that risk, raise the limit to the maximum (hard) limit of
      file descriptors (unless of course the limit was set explicitly from the
      command line with "-lf").
      
      Note that for completeness, the Wayland compositor may have to do the
      same, otherwise the limit might get reached on the compositor side as
      well.
      
      Signed-off-by: Olivier Fourdan's avatarOlivier Fourdan <ofourdan@redhat.com>
      Suggested-by: Simon Ser's avatarSimon Ser <contact@emersion.fr>
      Acked-by: Michel Dänzer's avatarMichel Dänzer <mdaenzer@redhat.com>
      Closes: xorg/xserver#1283
      d1f26c3e
  4. 14 Jan, 2022 1 commit
  5. 24 Dec, 2021 1 commit
  6. 20 Dec, 2021 2 commits
  7. 19 Dec, 2021 3 commits
  8. 17 Dec, 2021 1 commit
  9. 16 Dec, 2021 1 commit
  10. 14 Dec, 2021 5 commits
  11. 10 Dec, 2021 1 commit
  12. 08 Dec, 2021 1 commit
  13. 07 Dec, 2021 4 commits
  14. 06 Dec, 2021 1 commit
  15. 05 Dec, 2021 1 commit
  16. 04 Dec, 2021 2 commits
  17. 03 Dec, 2021 3 commits
    • Povilas Kanapickas's avatar
      meson: Correctly set DDXOSVERRORF and DDXBEFORERESET on xwin · 04c93b98
      Povilas Kanapickas authored
      
      
      This worked with autotools, but not meson build system.
      
      Signed-off-by: Povilas Kanapickas's avatarPovilas Kanapickas <povilas@radix.lt>
      04c93b98
    • Jonathan Gray's avatar
      glamor: fix free of uninitialised pointers · 5ac63197
      Jonathan Gray authored
      Attempting to run fvwm on a x61/965gm with xserver 1.21.1 with the
      modesetting driver on OpenBSD/amd64 would cause the xserver to
      reliably crash.
      
      I tracked this down to the free() calls introduced in
      2906ee5e
      (d1ca47e1 in branch).
      
      clang also warns about this:
      glamor_program.c:296:13: warning: variable 'vs_prog_string' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
      glamor_program.c:290:9: warning: variable 'vs_prog_string' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
      glamor_program.c:288:9: warning: variable 'vs_prog_string' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
      glamor_program.c:277:13: warning: variable 'vs_prog_string' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
      glamor_program.c:296:13: warning: variable 'fs_prog_string' is used uninitialized whe...
      5ac63197
    • Peter Hutterer's avatar
      xkb: fix XkbSetMap check for the keytypes count · be16bd85
      Peter Hutterer authored
      The previous if/else condition resulted in us always setting the key
      type count to the current number of key types. Split this up correctly.
      
      Regression introduced in de940e06
      
      
      
      Fixes #1249
      
      Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
      be16bd85
  18. 02 Dec, 2021 2 commits
    • Olivier Fourdan's avatar
      xwayland/eglstream: Prefer EGLstream if available · 6dd9709b
      Olivier Fourdan authored and Olivier Fourdan's avatar Olivier Fourdan committed
      
      
      Currently, when given the choice, Xwayland will pick the GBM backend
      over the EGLstream backend if both are available, unless the command
      line option “-eglstream” is specified.
      
      The NVIDIA proprietary driver had no support for GBM until driver series
      495, but starting with the driver series 495, both can be used.
      
      But there are other requirements with the rest of the stack, typically
      Mesa, egl-wayland, libglvnd as documented in the NVIDIA driver.
      
      So if the NVIDIA driver series 495 gets installed, Xwayland will pick
      the GBM backend even if EGLstream is available and may fail to render
      properly.
      
      To avoid that issue, prefer EGLstream if EGLstream and all the Wayland
      interfaces are available, and fallback to GBM automatically unless
      “-eglstream” was specified.
      
      With this, the compositor, given the choice, can decide which actual
      backend Xwayland would use by advertising (or not) the Wayland
      "wl_eglstream_controller" interface.
      
      This change has no impact on compositors which do not have support for
      EGLstream in the first place.
      
      Signed-off-by: Olivier Fourdan's avatarOlivier Fourdan <ofourdan@redhat.com>
      Acked-by: Michel Dänzer's avatarMichel Dänzer <mdaenzer@redhat.com>
      6dd9709b
    • Olivier Fourdan's avatar
      xwayland/glamor: Log backend selected for debug · c5d1fed9
      Olivier Fourdan authored and Olivier Fourdan's avatar Olivier Fourdan committed
      
      
      Add (verbose) statements to trace the actual backend used with glamor.
      
      That can be useful for debugging.
      
      Signed-off-by: Olivier Fourdan's avatarOlivier Fourdan <ofourdan@redhat.com>
      Reviewed-by: Michel Dänzer's avatarMichel Dänzer <mdaenzer@redhat.com>
      c5d1fed9
  19. 01 Dec, 2021 2 commits
  20. 22 Nov, 2021 2 commits
  21. 16 Nov, 2021 1 commit
    • Povilas Kanapickas's avatar
      Revert "hw/xfree86: Propagate physical dimensions from DRM connector" · 35af1299
      Povilas Kanapickas authored
      Quite a lot of applications currently expect the screen DPI exposed by
      the X server to be 96 even when the real display DPI is different.
      Additionally, currently Xwayland completely ignores any hardware
      information and sets the DPI to 96. Accordingly the new behavior, even
      if it fixes a bug, should not be enabled automatically to all users.
      
      A better solution would be to make the default DPI stay as is and enable
      the correct behavior with a command line option (maybe -dpi auto, or
      similar). For now let's just revert the bug fix.
      
      This reverts commit 05b3c681
      
      .
      
      Signed-off-by: Povilas Kanapickas's avatarPovilas Kanapickas <povilas@radix.lt>
      35af1299
  22. 10 Nov, 2021 1 commit
  23. 08 Nov, 2021 1 commit
  24. 06 Nov, 2021 1 commit