summaryrefslogtreecommitdiff
path: root/src/modules
Commit message (Collapse)AuthorAgeFilesLines
* Backport: 3f2e850 :: Big giant Monitor Snapping Fix when we resize or move !! ;)Chris Michael2013-08-012-51/+78
| | | | | | | | | | | | | | | | | | - 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>
* Backport: d2a0e36 :: Add function prototype for returning previous geometry.Chris Michael2013-08-011-0/+1
| | | | | Signed-off-by: Chris Michael <cp.michael@samsung.com> Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* Backport: b0e3605 :: Implement rudamentary monitor snapping after move.Chris Michael2013-08-011-1/+18
| | | | | | | | | | | | | | | | | 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>
* updating desktop filesmaxerba2013-07-3165-91/+606
|
* Backport: 5fecc20 :: When we are re-enabling a monitor, do not free the mode ↵Chris Michael2013-07-291-5/+3
| | | | | | | | | | | 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>
* Adding serbian localization in desktop filesmaxerba2013-07-0850-1/+91
|
* Fixed sorting in desktop filesmaxerba2013-07-0465-785/+789
|
* updating desktop files with esperanto and french translationsmaxerba2013-07-0262-761/+889
|
* Backport: 0537494 :: Fix issue of incorrect x/y position being displayed on ↵Chris Michael2013-06-281-9/+8
| | | | | | | a monitor after snapping. Signed-off-by: Chris Michael <cp.michael@samsung.com> Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* removed requirment for EFL 1.8 since randr code is backparted to ecore 1.7.7+Deon Thomas2013-06-281-16/+0
|
* Backport: fa9104b :: bugfix T86: If an output does not have a crtc, find a ↵Chris Michael2013-06-281-55/+40
| | | | | | | 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>
* Backport: b4f277a :: When we free outputs, set the variable to NULL.Chris Michael2013-06-281-2/+4
| | | | | Signed-off-by: Chris Michael <cp.michael@samsung.com> Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* Backport: bba201a :: If a monitor is disabled by the user, then we need to ↵Chris Michael2013-06-281-2/+7
| | | | | | | | | 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>
* Backport: 0dd2efa :: ensure randr dialog clears its pointer stackMike Blumenkrantz2013-06-281-0/+2
| | | | Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* Backport: ee715e2 :: Fix possible memory leak reported by klockwork.Chris Michael2013-06-281-1/+3
| | | | | Signed-off-by: Chris Michael <cp.michael@samsung.com> Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* Backport: 1b76632 :: Add suport for setting the Primary Output in the randr ↵Chris Michael2013-06-285-10/+87
| | | | | | | dialog....for my German friend ;) Signed-off-by: Chris Michael <devilhorns@comcast.net> Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* Backport: d6a392d :: Preliminary support for Primary Output of XRandRChris Michael2013-06-281-0/+10
| | | | | | | | | | | 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>
* Backport: a019ffb :: Fix another memleak reported by klockwork.Chris Michael2013-06-281-1/+1
| | | | | Signed-off-by: Chris Michael <cp.michael@samsung.com> Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* Backport: 10acf59 :: Fix potential memleaks reported by klockwork.Chris Michael2013-06-282-12/+18
| | | | | Signed-off-by: Chris Michael <cp.michael@samsung.com> Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* Backport: 2babd46 :: printf--Chris Michael2013-06-281-2/+0
| | | | | Signed-off-by: Chris Michael <devilhorns@comcast.net> Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* Backport: dc3c16c :: Fix randr dialog to display monitors that are disabled. ↵Chris Michael2013-06-281-206/+274
| | | | | | | | | 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>
* Backport: 37498d7 :: Add function to find a valid crtc for this monitor if ↵Chris Michael2013-06-281-10/+82
| | | | | | | 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>
* Backport: 31d34db :: Initialize 'orients' variable to rotation 0.Chris Michael2013-06-281-1/+1
| | | | | Signed-off-by: Chris Michael <devilhorns@comcast.net> Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* Backport: 1197cc4 :: Minor formatting fix.Chris Michael2013-06-281-1/+2
| | | | | Signed-off-by: Chris Michael <devilhorns@comcast.net> Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* Backport: 723825e :: If a crtc has no outputs, then skip it.Chris Michael2013-06-281-0/+1
| | | | | | | 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>
* Backport: eca3475 :: Fix incorrect monitor position text on some startup cases.Christopher Michael2013-06-281-0/+6
| | | | | | | | 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>
* Backport: dce3e8f7 :: Skip refresh rate checks during resize.Christopher Michael2013-06-281-2/+2
| | | | | | | | | | | | | | | 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>
* Backport: 8a3cf51 :: Re-enable Restore button for RandR dialog.Christopher Michael2013-06-281-8/+1
| | | | | | | Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84256 Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* Backport: ce6ed08 :: Hook into monitor_resized callback and update adjacent ↵Christopher Michael2013-06-281-9/+103
| | | | | | | | | monitor positions. Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84234 Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* Backport: c3736db :: Add a monitor_resized callback so positions of other ↵Christopher Michael2013-06-281-2/+2
| | | | | | | | | 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>
* Backport: 2ce1533 :: Disable Restore on Startup for now until larger randr ↵Christopher Michael2013-06-281-1/+8
| | | | | | | | | 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>
* Backport: 1860beb :: Add monitor_moved callback and update position (if needed).Christopher Michael2013-06-281-14/+74
| | | | | | | Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84230 Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* Backport: 16abe42 :: Add missing function prototypes.Christopher Michael2013-06-281-0/+2
| | | | | | | Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84229 Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* Backport: 8109e62 :: When we do a current_geometry set, repack the monitor ↵Christopher Michael2013-06-281-15/+72
| | | | | | | | | 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>
* Backport: 8f728d1 :: Add restore checkbox to dialog.Christopher Michael2013-06-281-9/+25
| | | | | | | Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84222 Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* Backport: 686ff23 :: Add some comments.Christopher Michael2013-06-281-0/+3
| | | | | | | Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84219 Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* Backport: f52d507 :: Add missing function prototypes.Christopher Michael2013-06-282-0/+4
| | | | | | | Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84218 Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* Backport: 0ac5ed72 :: Handle apply of monitor changes to X. Reduce position ↵Christopher Michael2013-06-281-31/+222
| | | | | | | | | 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>
* Backport: 1f51f97 :: Add randr_changed function. Add function to apply ↵Christopher Michael2013-06-281-1/+67
| | | | | | | | | 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>
* Backport: c889d84 :: Add hook for randr widget changed.Christopher Michael2013-06-281-3/+25
| | | | | | | Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84215 Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* Backport: b0dff98 :: Simplify changed enum.Christopher Michael2013-06-281-8/+4
| | | | | | | Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84214 Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* Backport: 86b27ba :: Start on monitor Changes.Christopher Michael2013-06-281-0/+14
| | | | | | | Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84213 Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* Backport: 994586d :: Add code to handle when cloning monitors so that the ↵Christopher Michael2013-06-281-2/+37
| | | | | | | | | 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>
* Backport: eec7305 :: Update some comments. Add code to create any clones on ↵Christopher Michael2013-06-281-12/+85
| | | | | | | | | 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>
* Backport: 6739bcf :: Add the clone object as a smart member for monitor. Add ↵Christopher Michael2013-06-281-26/+74
| | | | | | | | | 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>
* Backport: 54f611f :: Add function prototype for monitor clone set.Christopher Michael2013-06-281-0/+2
| | | | | | | Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84208 Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* Backport: fee5a89 :: Add cloning support for monitor. Tie in code for ↵Christopher Michael2013-06-281-30/+269
| | | | | | | | | 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>
* Backport: 5f68828 :: Simplify the monitor rotation code and make sure new ↵Christopher Michael2013-06-281-31/+34
| | | | | | | | | 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>
* Backport: 132719c :: Correctly calculate disabled monitor position(s).Christopher Michael2013-06-281-2/+2
| | | | | | | Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84202 Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
* Backport: 3f283a6 :: Remove useless defines and variables.Christopher Michael2013-06-281-16/+1
| | | | | | | Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84200 Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>