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
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
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
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
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
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
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
65b0455109
Backport: b5f6ae6
:: Fix comment.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84163
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael
684b8bf06b
Backport: 353df08
:: Also pass in crtc geometry to the monitor when we set crtc (because we have previously fetched this geometry anyway).
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84160
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael
4eebdb484f
Backport: ad6d691
:: Pack the monitor into the grid first, then do setup. Add function call to setup initial background preview.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84155
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael
0137ff7e1f
Backport: 6ca0528
:: Remove function call to monitor_virtual_size_set.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84152
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael
aa05275768
Backport: 70380b6
:: Add base & grid object to randr widget. Use ecore_x_randr functions to get crtcs & outputs (Fixes problem of running Screen Setup dialog in Xephyr) Add code for min_size_get function. Remove code which used e_layout widget. Add code to create new randr widget based on evas_object_grid.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84150
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael
b1919817a9
Backport: c508e28
:: Add LOGFN to functions. Append newly created monitor(s) to our list.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84142
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael
7f3f30ff44
Backport: db40616
:: Add prototype and code for virtual_size_calc function.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84139
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael
1fd4212846
Backport: 8fecfa5
:: Use proper width/height variables from crtc_config.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84136
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael
6f0dfdad6c
Backport: 87a3d1d
:: Move and resize the monitor after packing to it's proper position.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84135
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael
29da423051
Backport: 6747bad
:: Pack the created monitor into the layout widget.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84134
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael
d1d8dc4124
Backport: 69b1266
:: Start code for monitors create - Create monitor smart object - Set crtc and output config for monitor.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84131
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael
862c8dcfe3
Backport: 6b1168b
:: Add list of monitors to smart_data structure. Add code to delete the monitors when randr gets deleted.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84128
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael
ac9ed0f98e
Backport: 468998f
:: Add initial start of code to create monitors.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84127
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael
a0cbdec5c2
Backport: 6b96e9c
:: Add code to handle the layout object.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84119
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael
652db147ca
Backport: fbb5bae
:: Initial rewrite of randr widget.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84116
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Deon Thomas
458a0ebfe6
Backport: 17dcfd1 :: Remove old randr widget code.
2013-06-28 03:28:46 -04:00
Mike Blumenkrantz
9d83e1feeb
backport all randr config dialog updates
...
SVN revision: 83207
2013-01-24 08:23:26 +00:00
Mike Blumenkrantz
580b884d41
fix uninitialized var in randr config dialog which potentially broke initial monitor layout
...
SVN revision: 81593
2012-12-21 21:35:17 +00:00
Christopher Michael
829558db50
Fix randr widget applying settings as per discussion with T_UNIX.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81376
2012-12-19 15:39:47 +00:00
Christopher Michael
be20b9d15d
Add some debugging for disabled monitors.
...
If we are trying to add a disabled monitor, check for possible outputs.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81368
2012-12-19 14:21:50 +00:00
Christopher Michael
7829e00b45
Comment out some debugging printfs.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81351
2012-12-19 11:04:35 +00:00
Christopher Michael
58ef1a0190
Remove root window as function parameter for apply function (not used
...
anymore).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81263
2012-12-18 15:16:49 +00:00
Christopher Michael
817207bad1
Be more proactive when we create monitors:
...
If during the process of monitor creation, we reach one that is
cloned into a parent monitor, but the parent monitor has not been
created yet, then add it to a deferred list so we can create it (and
swallow it) into the parent monitor.
Make use of the existing e randr serialization to save/restore settings.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81255
2012-12-18 14:16:12 +00:00
Carsten Haitzler
92380c140d
nth from eina list returns data. .not list node...
...
SVN revision: 81153
2012-12-17 15:31:36 +00:00
Christopher Michael
30484c09cf
Fix TODO note for recent Enable/Disable commit.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81149
2012-12-17 14:29:02 +00:00
Christopher Michael
507e6a25fb
Fetch all current monitor values once (rather than a fetch for each
...
change).
Add code to apply Disabled/Enabled state.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81140
2012-12-17 13:42:15 +00:00
Christopher Michael
059d1139fe
Provide method to compute a proper layout size (needed for case of
...
blank config).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81135
2012-12-17 12:55:35 +00:00
Christopher Michael
e49d7dcad2
Remove blank line.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81132
2012-12-17 12:55:27 +00:00
Christopher Michael
54267c8ad8
Remove dead comment.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81131
2012-12-17 12:55:22 +00:00
Christopher Michael
91ddccec87
Fix monitor clone position for the case of "initial blank setup"
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81114
2012-12-17 10:22:01 +00:00
Christopher Michael
9ec140a681
Add code to start working with no previous config and nothing
...
specified in xorg (ie: blank setup). We will detect (manually) what is
cloned and setup accordingly. (NB: Still needs work).
Add function to find a monitor based on crtc id (used for blank setup
clones).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81111
2012-12-17 09:21:08 +00:00
Christopher Michael
a3cf759911
Add function to randr widget to return the best layout size.
...
Modify widget creation to use randr layout size function:
NB: Needed because we cannot rely on E_RANDR_12->current_size to
provide us with something usable.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81108
2012-12-17 09:20:59 +00:00
Christopher Michael
99d170a6a9
Comment out some debugging printfs.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81107
2012-12-17 09:20:56 +00:00
Christopher Michael
fa0264ef5c
Add function to return the list of monitors.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81106
2012-12-17 09:20:53 +00:00
Christopher Michael
2a4d3cb73e
Add smart callback hook for monitor changed.
...
Add functions to return randr widget changed state.
Add function to randr widget so we can apply changes.
Add single randr_changed_set function (reduce duplicated code).
Use E_INSIDE to determine cloning.
Remove some printfs.
Call randr_changed_set where needed.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81105
2012-12-17 09:20:49 +00:00
Christopher Michael
a23ebcd608
Introduce new RandR dialog which fixes issues that the past one had.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81094
2012-12-17 09:20:07 +00:00
Christopher Michael
467da0c1a5
Add some debugging (will be removed after testing).
...
Add function to handle packing a monitor into the layout.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81078
2012-12-17 09:19:22 +00:00
Christopher Michael
1fce126fe4
Start of new randr dialog & monitor widget.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81075
2012-12-17 09:19:13 +00:00
Christopher Michael
3b74f38de2
Remove old randr code.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81071
2012-12-17 09:18:59 +00:00
Christopher Michael
00fb03ce4c
E (RandR): Remove unused function & prototype.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 78188
2012-10-18 13:00:48 +00:00
Christopher Michael
4a09315601
E (RandR): Better monitor movement/snapping.
...
NB: Still not 100%. There are some corner cases where things fall
through :( If someone wants to jump in and help finish this off, that
would be great :) It's very close to being done.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 78186
2012-10-18 12:59:32 +00:00
Christopher Michael
c59e752325
E (RandR): Add function to get if randr widget changed.
...
Rework the "changed" code so that now Apply will enable/disable
correctly based on what changes are in the monitors.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 77873
2012-10-11 12:42:37 +00:00