summaryrefslogtreecommitdiff
path: root/randr/rroutput.c
AgeCommit message (Collapse)AuthorFilesLines
2009-01-30RandR SetOutputPrimary should work with or without a crtc connectedKeith Packard1-5/+0
The test was inverted from the protocol spec, and besides, the test is bogus anyways. Signed-off-by: Keith Packard <keithp@keithp.com> (cherry picked from commit c1f2be1f3fd0c80cb4c85b98140b98aa9311242b)
2008-12-16randr: clear primaryOutput when the output is deletedAdam Jackson1-0/+3
(cherry picked from commit 86c64ddf21763972aa7fc8c5770259123c9907b3)
2008-12-16randr: Add [GS]etOutputPrimaryAdam Jackson1-1/+108
(cherry picked from commit 9d58d2a319059989ccdfa758f586149ccdc16df6)
2007-10-15registry: Add some missing #include's.Eamon Walsh1-0/+1
2007-10-11dix: Add a new "registry" mechanism for registering string names of things.Eamon Walsh1-3/+1
Supports protocol requests, events, and errors, and resource names. Modify XRES extension to use it.
2007-09-15Initialize output->pendingProperties.Tilman Sauerbeck1-0/+1
2007-08-07Decrement mode count when removing RandR output mode.Keith Packard1-0/+1
Removing an output mode without decrementing the mode count scrambles the output mode array badly.
2007-07-23Set the crtc before the output change is notifiedGustavo Pichorim Boiko1-9/+0
Set the new randr crtc of the output before the output change notification is delivered to the clients. Remove RROutputSetCrtc as it is not really necessary. All we have to do is set the output's crtc on RRCrtcNotify
2007-03-24Make pending properties force mode set. And, remove AttachScreen calls.Keith Packard1-29/+20
Yes, two changes in one commit. Sorry 'bout that. The first change ensures that when pending property values have been changed, a mode set to the current mode will actually do something, rather than being identified as a no-op. In addition, the driver no longer needs to manage the migration of pending to current values, that is handled both within the xf86 mode setting code (to deal with non-RandR changes) as well as within the RandR extension itself. The second change eliminates the two-call Create/AttachScreen stuff that was done in a failed attempt to create RandR resources before the screen structures were allocated. Merging these back into the Create function is cleaner. (cherry picked from commit 57e87e0d006cbf1f5b175fe02eeb981f741d92f0) Conflicts: randr/randrstr.h randr/rrcrtc.c I think master and server-1.3-branch are more in sync now.
2007-03-17Correct ref counting of RRMode structuresKeith Packard1-1/+4
RRModes are referenced by the resource db, RROutput and RRCrtc structures. Ensure that the mode reference count is decremented each time a reference is lost from one of these sources. The missing destroys were in RRCrtcDestroyResource and RROutputDestroyResource, which only happen at server reset time, so modes would be unavailable in subsequent server generations.
2007-03-17Add support for user-defined modelines in RandR.Keith Packard1-7/+91
The RandR protocol spec has several requests in support of user-defined modes, but the implementation was stubbed out inside the X server. Fill out the DIX portion and start on the xf86 DDX portion. It might be necessary to add more code to the DDX to insert the user-defined modes into the output mode list. (cherry picked from commit 63cc2a51ef87130c632a874672a8c9167f14314e) Conflicts: randr/randrstr.h Updated code to work in master with recent security API changes.
2007-03-05Bugzilla #7145: fix build with gcc 2.95Jens Granseuer1-1/+1
Bugzilla #7145: <http://bugs.freedesktop.org/show_bug.cgi?id=7145> Patch #8987: <http://bugs.freedesktop.org/attachment.cgi?id=8987>
2006-12-15RandR: config time updates when hardware config changes.Keith Packard1-9/+11
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)
2006-12-14Naming change: Security*Access -> Dix*AccessEamon Walsh1-1/+1
2006-12-02Destroying RandR crtc or output overwrites memory.Keith Packard1-1/+1
RRCrtcDestroyResource and RROutputDestroyResource had matching bugs that would overwrite memory past the end of the storage of the crtc or output arrays. Oops. (cherry picked from 4202b23ed86405a4cebfdcf239df1b023c1d10ca commit)
2006-11-28Ensure RandR resource types are registered before resources are created.Keith Packard1-0/+2
Now that resources can be created during server initialization, make sure the crtc, output and mode resource types are created before attempting to create associated resources. (cherry picked from commit ec83d674167e7045d5317b179c9998e3172a26dc)
2006-11-16Remove RandR output options.Keith Packard1-29/+0
RandR output options are now expected to be handled by properties instead. (cherry picked from commit 8b2a7e94a1dc2776ab2cfaaebb309be02502602a)
2006-11-08Add RRInit function to create resource types for RR objects.Keith Packard1-12/+18
To allow RandR objects to be created before the screen object exists, the resource types must be registered with the resource database. A driver wishing to create RandR objects must call RRInit before doing so. Also, fix a segfault when setting Output data before it is associated with a screen.
2006-11-08Allow RandR objects to be created before the associated ScreenRec.Keith Packard1-17/+27
xf86 drivers need to create RandR object in the PreInit stage, before the ScreenRec is allocated. Changing the RandR DIX code to permit this required the addition of functions that later associate the objects with the related screen. An additional change is that modes are now global, and no longer associated with a specific screen. This change actually makes mode management cleaner as there is no more per-screen list of modes to deal with. This changes the RandR 1.2 ABI/API for drivers.
2006-11-01Move physical size from mode to output.Keith Packard1-0/+23
Modes can be shared across different sized monitors this way. Also caught some missing byteswapping and an incorrect return type.
2006-10-13Limit pointer to valid crtc areas. Add event swapping. Fix change tracking.Keith Packard1-10/+51
Add function to keep pointer within valid crtc areas. Finish event delivery and swapping code. Separate configuration from layout changes to send correct events.
2006-10-05Add preferred modes for each output. Round vrefresh. Deliver crtc events.Keith Packard1-3/+6
2006-10-03Add mode origins and output options. Fix memmoves in resource free funcs.Keith Packard1-7/+36
Output options and mode origins both affected driver ABI. memmove mistakes were causing 'Freeing resource which isn't there' messages. Prune unused non-user defined modes from available list now.
2006-09-20typoKeith Packard1-1/+1
2006-09-20When setting output state, leave output unchanged when setting to current.Keith Packard1-0/+43
2006-09-20Avoid calling xalloc(0). Change rrScreenSizeSet to rrScreenSetSize.Keith Packard1-13/+33
2006-09-19Split out 1.0-style info and new property routines to their own files.Keith Packard1-1/+95
2006-09-19RRGetScreenResources and RRGetOutputInfo are working now.Keith Packard1-0/+9
Removed separate id field in RRModeRec. Pull screen subpixel order from Render extension. Implement RGetScreenResources and RRGetOutputInfo
2006-09-18RandR working with old clients and old API.Keith Packard1-0/+18
2006-09-17Split out RandR dispatch code from randr.c to rr*dispatch.c.Keith Packard1-5/+143
More disassembly to ease ongoing development.
2006-09-17Split RandR implementation into separate files.Keith Packard1-0/+56
RandR is getting too big to live in one file; split into one file per object type (crtc, mode, screen), leaving the rest of the code in randr.c. Code is slowly approaching the point where it will drop-in as a replacement for the old 1.0 implementation.