Commit Graph

15598 Commits

Author SHA1 Message Date
Christopher Michael c9fcef1274 Backport: 1860beb :: Add monitor_moved callback and update position (if needed).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84230
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:52 -04:00
Christopher Michael 98f4caf047 Backport: 16abe42 :: Add missing function prototypes.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84229
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:52 -04:00
Christopher Michael a2f1bc7d0d Backport: 8109e62 :: When we do a current_geometry set, repack the monitor 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>
2013-06-28 03:28:52 -04:00
Christopher Michael e87f09c568 Backport: 8f728d1 :: Add restore checkbox to dialog.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84222
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:52 -04:00
Christopher Michael d96738b2ed Backport: 686ff23 :: Add some comments.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84219
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:52 -04:00
Christopher Michael b9da0c55e0 Backport: f52d507 :: Add missing function prototypes.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84218
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:52 -04:00
Christopher Michael 6809a193b8 Backport: 0ac5ed72 :: Handle apply of monitor changes to X. Reduce position 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>
2013-06-28 03:28:52 -04:00
Christopher Michael 1d2c53712d Backport: 1f51f97 :: Add randr_changed function. Add function to apply 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>
2013-06-28 03:28:51 -04:00
Christopher Michael 732046f172 Backport: c889d84 :: Add hook for randr widget changed.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84215
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:51 -04:00
Christopher Michael dc837d6e12 Backport: b0dff98 :: Simplify changed enum.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84214
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:51 -04:00
Christopher Michael 3b79dfada2 Backport: 86b27ba :: Start on monitor Changes.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84213
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:51 -04:00
Christopher Michael 08d80f1c7d Backport: 994586d :: Add code to handle when cloning monitors so that the 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>
2013-06-28 03:28:51 -04:00
Christopher Michael 4ad30863fd Backport: eec7305 :: Update some comments. 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:51 -04:00
Christopher Michael 7c298cf1df Backport: 6739bcf :: Add the clone object as a smart member for monitor. 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:51 -04:00
Christopher Michael d5c6502ed0 Backport: 54f611f :: Add function prototype for monitor clone set.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84208
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:51 -04:00
Christopher Michael 305c2119cd Backport: fee5a89 :: Add cloning support for monitor. 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:51 -04:00
Christopher Michael f85e50b90e Backport: 5f68828 :: Simplify the monitor rotation code and make sure new 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>
2013-06-28 03:28:51 -04:00
Christopher Michael 0b4d3e059f Backport: 132719c :: Correctly calculate disabled monitor position(s).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84202
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:51 -04:00
Christopher Michael 592f491a71 Backport: 3f283a6 :: Remove useless defines and variables.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84200
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:51 -04:00
Christopher Michael 8b0997959e Backport: a9cd2aa :: Remove unused variable and some dead printfs.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84199
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:51 -04:00
Christopher Michael 42e9ced343 Backport: a9f1783 :: When calculating virtual size, also account for 'possible' outputs. When we are creating the monitors, account for 'possible' outputs also.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84198
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:51 -04:00
Christopher Michael 0658fda5a7 Backport: 1d10a38 :: Actually, allow move/resize/rotate for disabled monitors so things can be adjusted (NB: Will not actually mattery on Apply anyway).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84197
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:51 -04:00
Christopher Michael 3a3cea80b6 Backport: c5254ce :: Set current size and position text when we set current values. 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:51 -04:00
Christopher Michael e6b1f0cbea Backport: c0d5cba :: Add function prototype for setting current geometry. Rename function prototype for grid virtual size set.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84195
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:51 -04:00
Christopher Michael 39ab375a64 Backport: f487724 :: Fix move_stop to use current geometry.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84194
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:51 -04:00
Christopher Michael f30acdc4ee Backport: 2819733 :: Handle setting monitor to enabled/disabled based on crtc mode.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84193
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:50 -04:00
Christopher Michael 92215e3b9d Backport: 87ef25f :: When calculating virtual size, we only need to fetch "screen_current_size_get" if both vw & vh are 0.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84192
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:50 -04:00
Christopher Michael 9ab072cd4e Backport: 2acdd3f :: Add 'current' field values so we can use these durring apply for 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:50 -04:00
Christopher Michael 88110ca30a Backport: aee6393 :: Add code to handle manual monitor movement. 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:50 -04:00
Christopher Michael 138323d6b1 Backport: b33401f :: Add in refresh_rate code for filling refresh rate list and listening 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:50 -04:00
Christopher Michael c1a6c1c6aa Backport: 39bc25b :: Use ecore_x_randr_crtc_info_free function to free returned crtc_info. When comparing refresh rates for mode searches, cast to int.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84187
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:50 -04:00
Christopher Michael bda7510577 Backport: 2e0f4e7 :: Reduce variable usage
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84186
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:50 -04:00
Christopher Michael 4c512aa526 Backport: e02c9fc :: Fix comment. Remove orientation comparison.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84185
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:50 -04:00
Christopher Michael ae9cbd4e9f Backport: af59660 :: Add ROTATE_FUZZ amount. 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:50 -04:00
Christopher Michael 63163546d8 Backport: c2b2be5 :: Add current rotation to smart_data structure. 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:50 -04:00
Christopher Michael ab05ef5335 Backport: 3585513 :: Add inline function to return the degree of rotation based on orientation.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84182
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:50 -04:00
Christopher Michael 85d7ef2fbe Backport: 87daec4 :: Remove Big Fat Fixme warning as it's fixed now :)
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84181
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:50 -04:00
Christopher Michael 853de9c660 Backport: ed84b96 :: Add code to check EFL version. 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:50 -04:00
Christopher Michael 4772dd90e8 Backport: 93ad1fa :: Add current mode and refresh rate to crtc field. 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:50 -04:00
Christopher Michael 48308853d3 Backport: 1ec01f9 :: Add function to get the amount of rotation from a mouse event. Simplify mouse movement check in resize_event and add some better comments.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84178
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:50 -04:00
Christopher Michael d44ba20579 Backport: 3526741c :: Turn 'crtc' field into a structure (mainly for making code easier to read/maintain).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84177
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:50 -04:00
Christopher Michael f53cc4a5f2 Backport: 5b47415 :: Add code to check if rotations for a given crtc are possible, and disable the rotation in edje if not.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84176
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:50 -04:00
Christopher Michael ddc4c39e43 Backport: 9edea3c :: Only get edid (an expensive process) if getting the output name previously has failed.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84175
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael d94e796050 Backport: 7abc8a7 :: Add flag for rotating to structure. Add & delete callbacks for rotation start & stop. Add functions for rotate start & stop. Add start of rotate event code.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84174
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael b2c3ccd676 Backport: 2edc7cf :: Add some comments.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84173
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael 4a4b5c98f5 Backport: 480170d :: Remove all code which tried to maintain aspect ratio of the frame (resize snapping to mode dimensions will handle this anyway).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84172
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael f00692e8c7 Backport: 1f63b0f :: Remove dead comments about layout object. 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael 5fc3d77e62 Backport: bda3e4b :: Change structure to store grid geometry. 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael d56779e775 Backport: 903787a :: Change monitor_grid_set function to also accept the grid geometry (used for virtual-->canvas coordinate functions).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84169
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael f7fa56bdcc Backport: fd0889b :: Add missing LOGFN's where needed. 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00