summaryrefslogtreecommitdiff
path: root/randr/randrstr.h
diff options
context:
space:
mode:
authorMichal Srb <msrb@suse.com>2013-10-30 13:33:50 +0200
committerKeith Packard <keithp@keithp.com>2013-10-30 08:09:27 -0700
commita9ca93dcf9a711b3d60fbad31cbd44e0c82b6f42 (patch)
treec7a853df714b162ce9b708ba8c9d451b90753a99 /randr/randrstr.h
parent4b39ea8a918fe6117bf34dc1cba67a4e56d0d1fb (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/randrstr.h')
-rw-r--r--randr/randrstr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/randr/randrstr.h b/randr/randrstr.h
index c93334938..15299fd6d 100644
--- a/randr/randrstr.h
+++ b/randr/randrstr.h
@@ -301,6 +301,7 @@ typedef struct _rrScrPriv {
Bool changed; /* some config changed */
Bool configChanged; /* configuration changed */
Bool layoutChanged; /* screen layout changed */
+ Bool resourcesChanged; /* screen resources change */
CARD16 minWidth, minHeight;
CARD16 maxWidth, maxHeight;
@@ -486,6 +487,9 @@ extern _X_EXPORT int
extern _X_EXPORT void
RRDeliverScreenEvent(ClientPtr client, WindowPtr pWin, ScreenPtr pScreen);
+extern _X_EXPORT void
+ RRResourcesChanged(ScreenPtr pScreen);
+
/* randr.c */
/* set a screen change on the primary screen */
extern _X_EXPORT void