Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 31st, 2012  |  syntax: None  |  size: 1.73 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff --git a/spectrwm.c b/spectrwm.c
  2. index 7d2d1a8..ce322bd 100644
  3. --- a/spectrwm.c
  4. +++ b/spectrwm.c
  5. @@ -7721,8 +7721,8 @@ scan_xrandr(int i)
  6.  #endif /* SWM_XRR_HAS_CRTC */
  7.         struct swm_region                               *r;
  8.         int                                             num_screens;
  9. -       xcb_randr_get_screen_resources_current_cookie_t src;
  10. -       xcb_randr_get_screen_resources_current_reply_t  *srr;
  11. +       xcb_randr_get_screen_resources_cookie_t         src;
  12. +       xcb_randr_get_screen_resources_reply_t          *srr;
  13.         xcb_randr_get_crtc_info_cookie_t                cic;
  14.         xcb_randr_get_crtc_info_reply_t                 *cir = NULL;
  15.         xcb_randr_crtc_t                                *crtc;
  16. @@ -7747,9 +7747,9 @@ scan_xrandr(int i)
  17.         /* map virtual screens onto physical screens */
  18.  #ifdef SWM_XRR_HAS_CRTC
  19.         if (xrandr_support) {
  20. -               src = xcb_randr_get_screen_resources_current(conn,
  21. +               src = xcb_randr_get_screen_resources(conn,
  22.                     screens[i].root);
  23. -               srr = xcb_randr_get_screen_resources_current_reply(conn, src,
  24. +               srr = xcb_randr_get_screen_resources_reply(conn, src,
  25.                     NULL);
  26.                 if (srr == NULL) {
  27.                         new_region(&screens[i], 0, 0,
  28. @@ -7759,7 +7759,7 @@ scan_xrandr(int i)
  29.                 } else
  30.                         ncrtc = srr->num_crtcs;
  31.  
  32. -               crtc = xcb_randr_get_screen_resources_current_crtcs(srr);
  33. +               crtc = xcb_randr_get_screen_resources_crtcs(srr);
  34.                 for (c = 0; c < ncrtc; c++) {
  35.                         cic = xcb_randr_get_crtc_info(conn, crtc[c],
  36.                             XCB_CURRENT_TIME);