| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Add previous monitor geometry to smart data structure.
- When we set the crtc, also set the monitor current geometry.
- Add function to return the previous monitor geometry.
- On a mouse up, check for monitor location difference versus previous
geometry, if nothing changed then we have no 'move' to do.
- When we start a resize, record the previous geometry and raise the
monitor.
- When a monitor is moved/resized we call the position_update function
which already loops all monitors, so no need to loop them twice.
- Fix position_update function to allow some Snapping Fuzziness so
that on a move/resize any adjoining monitors (within tolerance) will
more reliably snap to each other.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
| |
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
After a monitor has been moved, snap it to the closest monitor.
NB: This should fix cases where a monitor could not be positioned next
to another monitor which had a resolution of 1368. Previously, the
second monitor could only move to 1366 due to a rounding issue when
converting coordinates to virtual. Now, the second monitor (when
finished moving) will Snap to the proper position.
NB: (Currently) In order for the snapping to work, either the
monitors' X axis or Y axis must be equal. Ideally, this should be
fixed to allow for some percentage of position flexibility.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
info from the smart data's list of modes. This will get freed when the dialog closes.
Fix some formatting for 80 columns.
NB: Should fix etrunko crash ;)
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
a monitor after snapping.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
| |
|
|
|
|
|
|
|
| |
possible one. If it has no mode set yet, then we try to get the preferred mode. If that fails we will try the crtc size, if That fails we will fallback to a safe 640x480. When getting preferred size, if the output does not specifiy a preferred mode (but does list availabe modes), then we will assume the largest size.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
| |
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
|
|
| |
set number of outputs to zero, and free any allocated outputs before trying to apply settings.
Also, check for valid mode (not 0) before trying to fetch mode_info.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
| |
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
| |
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
| |
dialog....for my German friend ;)
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
| |
NB: If you have more than one output, XRandR has the option/support to
set a specific monitor as the primary output. These changes allow some
distinction in the dialog between which output is primary (a faint
glow around the monitor). This is just the "display" portion of
Primary Output support ... next is a method to Change that.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
| |
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
| |
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
| |
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
|
|
| |
Add function to get a monitor's preferred mode size. Add function to find any clones of a monitor. Add function to find a valid crtc for an output
NB: Raster, this should fix your reported problem ;)
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
| |
none is set. If a monitor gets re-enabled and no current mode is set (which is typically the case), then find a mode based on size.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
| |
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
| |
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
| |
This fixes an issue where "monitors" would be created with only a stand.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
|
| |
When we call "grid_set" (as a result of the grid object moving or
resizing), we should update the monitor position text.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some people have reported that resizing is difficult, or that they
could not get to the max resolution of their monitor(s). Skipping the
refresh rate check during resolution finding fixes that ... With a big
fat Gotcha !!! because now after changing resolutions, the refresh
rate May not match what was previously selected....
So, as a word of CAUTION: After you set a resolution you should now
Verify your Refresh Rate before Applying, else you may be getting an
undesirable rate :/
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
| |
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84256
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
|
|
| |
monitor positions.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84234
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
|
|
| |
monitors can be updated.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84233
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
|
|
| |
event issues are worked out.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84232
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
| |
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84230
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
| |
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84229
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
|
|
| |
to the updated geometry. Add a geometry_get function for monitor. Fix up cloning code to work properly with different size parents/children. Add a monitor_clone_parent_get function. When applying changes, also use crtc_clone_set function. Add smart callback for monitor_moved to tell randr widget it may need to shuffle things around. Use output mouse position, not canvas position.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84228
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
| |
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84222
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
| |
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84219
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
| |
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84218
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
|
|
| |
text set calls and just do it on smart_move. Add a changes_apply function. Add code to record changes to a monitor.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84217
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
|
|
| |
changes. Add callback hook for monitor(s) changed.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84216
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
| |
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84215
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
| |
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84214
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
| |
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84213
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
|
|
| |
size, mode and orient of each will match (NB: This is required by XRandR in order for cloning to be successful).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84212
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
|
|
| |
initial startup. Add function to find a monitor object based on crtc.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84211
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
|
|
| |
some comments. Update position and resolution text when we unclone. Repack the monitor into the grid when we unclone. Set virtual thumb size correctly. Emit disabled signal (if needed) when we unclone. Also record x/y coordinates when doing move/resize/rotate.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84210
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
| |
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84208
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
|
|
| |
indicator toggle (enable/disable). Add function to return a monitor's crtc id (used in randr widget).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84207
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
|
|
| |
positions are within grid virtual space.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84203
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
| |
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84202
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|
|
|
|
|
|
|
| |
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84200
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
|