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
Add code to create any clones on initial startup.
Add function to find a monitor object based on crtc.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84211
Add 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
Tie in code for 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
visual indication.
NB: Someone may want to tweak the color used here ;)
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84205
When we are creating the monitors, account for 'possible' outputs also.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84198
Add function for setting current geometry.
If a monitor is disabled, do not allow rotate, resize, move events.
Fix resize start/stop functions to use current geometry.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84196
comparison to old values.
Fix move, resize, rotate code to use "current" values.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84191
Fix up coordinate functions to not need doubles.
Update monitor position text when moving.
Fix up rotation code to allow rotating when mouse is outside the frame
(thank you Daniel) ;)
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84190
for changes.
Break map_apply function into frame_map_apply and thumb_map_apply for
rotating just the wallpaper.
Fix resize code to work with a rotated monitor.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84188
Add inline function to get orientation based on rotation amount.
Add function to apply an evas_map for rotation.
If we are rotating, we don't need to set livethumb size.
When we start rotating, set initial rotation amount to 0.
When rotation stops, update the map and monitor position where needed.
Apply map during rotation.
NB: This commit also adds a debugging red rectangle behind the
monitor. This will be removed when debugging is complete
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84184
Fill in current rotation on crtc set.
Update current rotation when we get a rotation event.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84183
If we are using a newer version, then we can use the new
ecore_x_randr_crtc_info_get() function which will save us a lot of X
round-trips.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84180
Add function prototype for getting a mode refresh rate.
Add Big Fat FIXME for crtc_set function.
Get the crtc current mode & refresh rate when crtc is set.
Simplify monitor_mode_find function.
Add function for getting a mode refresh rate.
Start on rotation event code.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84179
Simplify mouse movement check in resize_event and add some better
comments.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84178
Add grid object to structure.
Add callbacks to handle when grid gets moved or resized so we can
update the monitor's copy of the grid geometry.
Update calls to monitor_grid_set to pass in geometry now.
Add monitor_virtual_size_set call.
Add code to deal with grid getting moved & resized.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84171
Change grid_set function to accept grid geometry.
Add monitor_virtual_size_set function.
Only update livethumb preview size if we are not manually resizing.
Don't need to set the resolution text during smart_resize.
Add functions to convert coordinates to/from virtual to canvas.
Add function to find the closest randr mode to a given size.
Add function to handle user manual resizing.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84170
Add mouse_move callback on frame.
Delete mouse_move callback when we delete the frame.
Add code in frame moouse_move function to call appropriate event based
on current action.
Start of actual resize event code.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84168
Add start of resize coordinates to structure.
If we are manually resizing the object, update the text.
When resize starts, record the current mouse position and size.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84167
Add code to delete edje callbacks from frame when object is deleted.
Add start of code for resize_start & resize_stop frame events.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84166