1. 01 Sep, 2021 2 commits
  2. 31 Aug, 2021 1 commit
    • Jon Turney's avatar
      Fix compilation with windows.h from latest w32api · d68b50ec
      Jon Turney authored
      misc.h has complex logic (checking MAXSHORT is undefined etc.)
      controlling if it includes assert.h or not.
      Including windows.h from w32api 9.0.0 now trips over that, causing
      assert.h to not be included, causing various errors, e.g.
      In file included from ../include/cursor.h:53,
                       from ../include/dix.h:54,
                       from ../os/osdep.h:139,
                       from ../hw/xwin/winauth.c:40:
      ../include/privates.h: In function ‘dixGetPrivateAddr’:
      ../include/privates.h:121:5: error: implicit declaration of function ‘assert’ [-Werror=implicit-function-declaration]
      Fix this by IWYU in privates.h
  3. 27 Aug, 2021 1 commit
    • Mario Kleiner's avatar
      modesetting: Fix VRR window property handling. · ab86be0e
      Mario Kleiner authored
      A misplaced error check can cause this failure scenario, and does
      so reliably as tested on Ubuntu 21.04 with KDE Plasma 5 desktop
      within the first few seconds of login session startup, rendering
      VRR under modesetting-ddx unusable:
      1. Some X11 client application changes some window property.
      2. ms_change_property() is called as part of the property change
         handling call chain (client->requestVector[X_ChangeProperty]).
         It removes itself temporarily from the call chain - or so it
         thinks, hooking up saved_change_property instead.
      3. ret = saved_change_property(client) is called and fails
         temporarily for some non-critical reason.
      4. The misplaced error check returns early (error abort), without
         first restoring ms_change_property() as initial X_ChangeProperty
         handler in the call chain again.
      -> Now ms_change_property() has removed itself permanently from the
         property handler call chain for the remainder of the X session
         and VRR property changes on windows are no longer handled, ie.
         VRR no longer gets enabled/disabled in response to window VRR
         property changes.
      Place the error check at the proper place, just as it is correctly
      done by amdgpu-ddx, and in modesetting-ddx ms_delete_property()
      Verified to fix VRR handling with an AMD gpu under KDE desktop
      Please consider merging before branching the server 1.21 branch.
      Signed-off-by: Mario Kleiner's avatarMario Kleiner <mario.kleiner.de@gmail.com>
  4. 20 Aug, 2021 2 commits
  5. 17 Aug, 2021 4 commits
    • Adam Jackson's avatar
      dmx: Fix some redeclaration warnings from gcc 11 · 1f720dc9
      Adam Jackson authored
      Of the form:
          ../hw/dmx/config/xdmxconfig.c:68:26: warning: redundant redeclaration of ‘dmxConfigEntry’ [-Wredundant-decls]
             68 | extern DMXConfigEntryPtr dmxConfigEntry;
                |                          ^~~~~~~~~~~~~~
    • Adam Jackson's avatar
      xkb: Silence a warning from gcc 11 · b49f0f9b
      Adam Jackson authored
      I get this:
          In function ‘TryCopyStr’,
              inlined from ‘CopyISOLockArgs’ at ../xkb/xkbtext.c:875:9:
          ../xkb/xkbtext.c:720:13: warning: ‘tbuf’ may be used uninitialized [-Wmaybe-uninitialized]
            720 |             strcat(to, from);
                |             ^~~~~~~~~~~~~~~~
          ../xkb/xkbtext.c: In function ‘CopyISOLockArgs’:
          <built-in>: note: by argument 1 of type ‘const char *’ to ‘__builtin_strlen’ declared here
          ../xkb/xkbtext.c:871:10: note: ‘tbuf’ declared here
            871 |     char tbuf[64];
                |          ^~~~
      Just initialize tbuf so it definitely works.
    • Adam Jackson's avatar
      xinput: Silence a warning from gcc 11 · c1138d8e
      Adam Jackson authored
      [45/388] Compiling C object Xi/liblibxserver_xi.a.p/xichangehierarchy.c.o
      ../Xi/xichangehierarchy.c:61:32: warning: argument 1 of type ‘int[256]’ with mismatched bound [-Warray-parameter=]
         61 | XISendDeviceHierarchyEvent(int flags[MAXDEVICES])
            |                            ~~~~^~~~~~~~~~~~~~~~~
      In file included from ../Xi/xichangehierarchy.c:54:
      ../Xi/xichangehierarchy.h:42:37: note: previously declared as ‘int[]’
         42 | void XISendDeviceHierarchyEvent(int flags[]);
            |                                 ~~~~^~~~~~~
    • Adam Jackson's avatar
      selinux: Stop using security_context_t · f3a98334
      Adam Jackson authored
      This is apparently deprecated now and is and was always just char *.
  6. 12 Aug, 2021 1 commit
  7. 08 Aug, 2021 1 commit
  8. 07 Aug, 2021 1 commit
  9. 06 Aug, 2021 7 commits
  10. 31 Jul, 2021 1 commit
  11. 30 Jul, 2021 4 commits
  12. 29 Jul, 2021 1 commit
    • Boris-Barboris's avatar
      Don't hardcode fps for fake screen · 16571b89
      Boris-Barboris authored
      Currently, when main hardware screen is powered-off,
      X server initializes fake screen's timer with
      1 second update interval.
      Streaming software like Nomachine or Vnc, as well as
      desktop input automation suffers from it, since it
      will forever be stuck on 1 fps until the display is
      turned back on.
      This commit adds command line option -fakescreenfps <int>
      that allows the user to change the default fake screen
      Signed-off-by: Boris-Barboris's avatarBaranin Alexander <ismailsiege@gmail.com>
  13. 22 Jul, 2021 1 commit
  14. 20 Jul, 2021 1 commit
  15. 09 Jul, 2021 12 commits