1. 13 Oct, 2016 2 commits
    • Michel Dänzer's avatar
      xf86Cursor: Take the input lock in xf86Set/MoveCursor · 9cf0bd4d
      Michel Dänzer authored
      Prevents the HW cursor from intermittently jumping around when the
      cursor image is changed while the cursor is being moved. This is hardly
      noticeable in normal operation but can be quite confusing when stepping
      through these codepaths in a debugger.
      Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
    • Michel Dänzer's avatar
      xf86Cursor: Use PRIME master xf86CursorScreenRec::HotX/Y for slaves · 011ce329
      Michel Dänzer authored
      xf86CursorScreenRec::HotX/Y contain 0 for PRIME slave screens.
      Fixes incorrect HW cursor position on PRIME slave screens.
      Also hoist the hotspot translation out from xf86ScreenSet/MoveCursor to
      xf86Set/MoveCursor, since the hotspot position is a property of the
      cursor, not the screen.
      * Squash patches 1 & 2 of the v1 series, since it's basically the same
      * Use the master screen's xf86CursorScreenRec::HotX/Y instead of
        CursorRec::bits->x/yhot, since CursorRec::bits can be NULL (Hans de
      Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
  2. 10 Oct, 2016 1 commit
  3. 06 Oct, 2016 1 commit
    • Peter Harris's avatar
      Fix id in error when resource does not exist · 97a8353e
      Peter Harris authored
      Always set client->errorValue before returning an error.
      Test program:
      int main(int argc, char *argv[]) {
          int screen = 0;
          xcb_connection_t *c = xcb_connect(NULL, &screen);
          if (!c) {
              printf("Cannot connect\n");
              return 1;
          xcb_void_cookie_t tok = xcb_free_gc_checked(c, BAD_VALUE);
          xcb_g_context_error_t *err = (xcb_g_context_error_t *)xcb_request_check(c, tok);
          if (!err) {
              printf("Unexpected request success\n");
              return 1;
          if (err->bad_value != BAD_VALUE) {
              printf("Error: Got 0x%X, expected 0x%X\n", err->bad_value, BAD_VALUE);
              return 1;
          printf("Success! Got expected bad value of 0x%X\n", BAD_VALUE);
          return 0;
      Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
      Signed-off-by: Peter Harris's avatarPeter Harris <pharris@opentext.com>
  4. 05 Oct, 2016 23 commits
  5. 04 Oct, 2016 1 commit
  6. 30 Sep, 2016 1 commit
  7. 29 Sep, 2016 4 commits
  8. 28 Sep, 2016 7 commits