diff options
author | Michal Srb <msrb@suse.com> | 2013-10-30 13:33:50 +0200 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-10-30 08:09:27 -0700 |
commit | a9ca93dcf9a711b3d60fbad31cbd44e0c82b6f42 (patch) | |
tree | c7a853df714b162ce9b708ba8c9d451b90753a99 /randr/rrcrtc.c | |
parent | 4b39ea8a918fe6117bf34dc1cba67a4e56d0d1fb (diff) |
randr: send RRResourceChangeNotify event
Send RRResourceChangeNotify event when provider, output or crtc was created or
destroyed. I.e. when the list of resources returned by RRGetScreenResources and
RRGetProviders changes.
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Michal Srb <msrb@suse.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'randr/rrcrtc.c')
-rw-r--r-- | randr/rrcrtc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c index 2f76b62be..99b3dca08 100644 --- a/randr/rrcrtc.c +++ b/randr/rrcrtc.c @@ -102,6 +102,8 @@ RRCrtcCreate(ScreenPtr pScreen, void *devPrivate) crtc->pScreen = pScreen; pScrPriv->crtcs[pScrPriv->numCrtcs++] = crtc; + RRResourcesChanged(pScreen); + return crtc; } @@ -669,6 +671,8 @@ RRCrtcDestroyResource(pointer value, XID pid) break; } } + + RRResourcesChanged(pScreen); } if (crtc->scanout_pixmap) |