diff options
author | Keith Packard <keithp@guitar.keithp.com> | 2006-12-12 22:59:03 -0800 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-12-15 18:32:18 +1100 |
commit | 628c7daeb12713d28e85e6b49fa037a7748dff83 (patch) | |
tree | 13f7168a314fdb9ba508766816962f624217b730 /randr/randrstr.h | |
parent | d742025f435f3eb7458cf8284d59300bc9a850aa (diff) |
RandR: config time updates when hardware config changes.
The config time in the RandR protocol reflects when the hardware state has
changed. It was getting changed anytime the driver changed the usage
of the hardware as well.
(cherry picked from 98d18a6578130adb411ca4bcc776fcb7e07f189f commit)
Diffstat (limited to 'randr/randrstr.h')
-rw-r--r-- | randr/randrstr.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/randr/randrstr.h b/randr/randrstr.h index 27ede9226..88f7588ae 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -216,11 +216,14 @@ typedef struct _rrScrPriv { TimeStamp lastSetTime; /* last changed by client */ TimeStamp lastConfigTime; /* possible configs changed */ RRCloseScreenProcPtr CloseScreen; + Bool changed; /* some config changed */ + Bool configChanged; /* configuration changed */ + Bool layoutChanged; /* screen layout changed */ + CARD16 minWidth, minHeight; CARD16 maxWidth, maxHeight; CARD16 width, height; /* last known screen size */ - Bool layoutChanged; /* screen layout changed */ int numOutputs; RROutputPtr *outputs; @@ -619,10 +622,13 @@ ProcRRDeleteOutputMode (ClientPtr client); /* rroutput.c */ /* - * Notify the output of some change + * Notify the output of some change. configChanged indicates whether + * any external configuration (mode list, clones, connected status) + * has changed, or whether the change was strictly internal + * (which crtc is in use) */ void -RROutputChanged (RROutputPtr output); +RROutputChanged (RROutputPtr output, Bool configChanged); /* * Create an output |