Chris Michael
ee44bcda90
Backport: 0537494
:: Fix issue of incorrect x/y position being displayed on a monitor after snapping.
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 11:24:51 -04:00
Chris Michael
5e9323bf7d
Backport: 7955818
:: Add randr theme support for primary outputs
...
NB: Someone may want to retheme this....
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:54 -04:00
Christopher Michael
d7d914cb72
Backport: 23a8170
:: Fix cloning box to now be over the indicator event rect.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84209
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:54 -04:00
Christopher Michael
2ac021ae1c
Backport: f7defbd
:: Color the clip of the frame when monitor is disabled to provide more visual indication.
...
NB: Someone may want to tweak the color used here ;)
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84205
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:53 -04:00
Christopher Michael
c95298713b
Backport: 8f0367d
:: Rename monitor name style
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84204
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:53 -04:00
Christopher Michael
d47839c9d0
Backport: aa74a39
:: Fix grid offset
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84189
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:53 -04:00
Christopher Michael
7dbd8b4177
Backport: 3920734
:: Create new randr widget group (for the main randr widget) and give it an "inset" look like the wallpaper preview widget.
...
NB: This probably could have been aliased to the wallpaper preview
widget but is separate right now in case the boss wants to change it ;)
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84144
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:53 -04:00
Christopher Michael
24603c1ee0
Backport: f47f526
:: Add monitor position text for the monitor object.
...
NB: Raster, You may want to recolor or retheme this
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 82886
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:53 -04:00
Christopher Michael
ef6583b7bc
Backport: a654fac
:: Add position text to monitor.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 82885
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:53 -04:00
Deon Thomas
e5164aa076
removed requirment for EFL 1.8 since randr code is backparted to ecore 1.7.7+
2013-06-28 03:28:53 -04:00
Chris Michael
b80fd54f7f
Backport: fa9104b
:: bugfix T86: If an output does not have a crtc, find a 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>
2013-06-28 03:28:53 -04:00
Chris Michael
1482c7e7e8
Backport: b4f277a
:: When we free outputs, set the variable to NULL.
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:53 -04:00
Chris Michael
a3990e5108
Backport: bba201a
:: If a monitor is disabled by the user, then we need to 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>
2013-06-28 03:28:53 -04:00
Mike Blumenkrantz
9170ac74dc
Backport: 0dd2efa
:: ensure randr dialog clears its pointer stack
...
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:53 -04:00
Chris Michael
e2dc213609
Backport: ee715e2
:: Fix possible memory leak reported by klockwork.
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:53 -04:00
Chris Michael
c45ebc84c9
Backport: 1b76632
:: Add suport for setting the Primary Output in the randr dialog....for my German friend ;)
...
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:53 -04:00
Chris Michael
5c49020e46
Backport: d6a392d
:: Preliminary support for Primary Output of XRandR
...
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>
2013-06-28 03:28:53 -04:00
Chris Michael
42c22c8c6a
Backport: a019ffb
:: Fix another memleak reported by klockwork.
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:53 -04:00
Chris Michael
162c86ce55
Backport: 10acf59
:: Fix potential memleaks reported by klockwork.
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:53 -04:00
Chris Michael
60da535deb
Backport: 2babd46
:: printf--
...
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:53 -04:00
Chris Michael
d8a1f8f933
Backport: dc3c16c
:: Fix randr dialog to display monitors that are disabled. 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>
2013-06-28 03:28:52 -04:00
Chris Michael
83063049cf
Backport: 37498d7
:: Add function to find a valid crtc for this monitor if 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>
2013-06-28 03:28:52 -04:00
Chris Michael
eaf0a927e4
Backport: 31d34db
:: Initialize 'orients' variable to rotation 0.
...
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:52 -04:00
Chris Michael
8559262f63
Backport: 1197cc4
:: Minor formatting fix.
...
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:52 -04:00
Chris Michael
76d317c5d0
Backport: 723825e
:: If a crtc has no outputs, then skip it.
...
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>
2013-06-28 03:28:52 -04:00
Christopher Michael
14a8acad61
Backport: eca3475
:: Fix incorrect monitor position text on some startup cases.
...
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>
2013-06-28 03:28:52 -04:00
Christopher Michael
fb124fe454
Backport: dce3e8f7
:: Skip refresh rate checks during resize.
...
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>
2013-06-28 03:28:52 -04:00
Christopher Michael
ba1c77fde0
Backport: 8a3cf51
:: Re-enable Restore button for RandR dialog.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84256
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:52 -04:00
Christopher Michael
fca3d397c0
Backport: ce6ed08
:: Hook into monitor_resized callback and update adjacent monitor positions.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84234
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:52 -04:00
Christopher Michael
0bcf3180f6
Backport: c3736db
:: Add a monitor_resized callback so positions of other 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>
2013-06-28 03:28:52 -04:00
Christopher Michael
abee7d357d
Backport: 2ce1533
:: Disable Restore on Startup for now until larger randr 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>
2013-06-28 03:28:52 -04:00
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