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
0c09d80685
Backport: 6cf9624
:: Add header function for monitors_create.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84126
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael
1c26ea8b99
Backport: 5216fb0
:: Add initial monitor code.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84125
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael
e7c9315004
Backport: 8a53055
:: Tell randr widget to create monitors.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84124
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael
17fdbee784
Backport: 6521caa
:: Add header function for creating new monitors.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84123
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael
306fcfcb70
Backport: 3fd758f
:: Cleanup compile warnings and include randr object header.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84121
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
e22c359f06
Backport: daa2b49
:: Create the randr widget in _basic_create.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84118
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael
671f459fbc
Backport: 4dfda15
:: Initial rewrite of the monitor object.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84117
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
4f05f2a80c
Backport: 520e479 :: Remove old randr code from dialog creation.
2013-06-28 03:28:46 -04:00
Deon Thomas
458a0ebfe6
Backport: 17dcfd1 :: Remove old randr widget code.
2013-06-28 03:28:46 -04:00
Deon Thomas
b95d6b1394
Removed old code that is based on old ecore randr codes
2013-06-28 03:03:40 -04:00
Deon Thomas
c99e2e61c4
Backport: e33fe5a
:: Remove all references to the old randr config.
...
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:03:32 -04:00
Daniel Willmann
07f04ae508
Backport: 845cc72
:: Remove deleted file e_randr_private.h from EXTRA_DIST
...
Make distcheck happy
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:47:02 -04:00
Christopher Michael
9eb43636ee
Backport: 4c13cd3
:: Remove old randr code from Makefile.am
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84108
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:45:55 -04:00
Chris Michael
0c2bb7260b
Backport: a612fcf
:: Initialize geometry variables (ie: The Shutup you stupid clang commit)
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:36:06 -04:00
Chris Michael
398a6db329
Backport: 16c63ec
:: Remove call to screen_reset (not needed)
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:35:09 -04:00
Chris Michael
2bd7e0aab6
Backport: 99268f5
:: Rework the randr restore code
...
NB: This matches more closely to how xrandr applies settings
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:34:15 -04:00
Chris Michael
710b97f493
Backport: 2a38555
:: Add code to handle setting a larger screen size
...
IF, when applying any saved crtc settings, we find that the current
screen size is too small, then calculate a new screen size and apply it.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:33:26 -04:00
Chris Michael
f9f138277f
Backport: 7ae5da8
:: When we try to restore randr config, skip outputs that are not connected.
...
Fix buffer which was flipping Primary Output when you restart E (ie:
only set Primary Output once).
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:32:47 -04:00
Chris Michael
765921a458
Backport: 98ac01c
:: Remove unused variable (not needed).
...
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:31:29 -04:00
Chris Michael
2d060297f8
Backport: 74a85a1
:: Actually, we cannot set primary first as we may need to re-enable a saved monitor, so move "primary setting" until After we have enabled and sized the monitors.
...
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:30:29 -04:00
Chris Michael
0f067cb391
Backport: 04936b2
:: Set primary output before crtc settings. If the primary output saved in config does not exist, then set primary to the first output.
...
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:29:29 -04:00
Chris Michael
42ebed1598
Backport: 9f95515
:: Record primary output in randr config.
...
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:28:35 -04:00
Chris Michael
ef10745993
Backport: 7bd21a7
:: 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-27 20:20:05 -04:00
Chris Michael
674b6a9998
Backport: dff4df5
:: Fix potential memleak reported by klockwork.
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:15:53 -04:00
Chris Michael
00934e820a
Backport: 012a05e
:: Modes is a zero-based list, so preferred needs to be -1.
...
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:14:39 -04:00
Chris Michael
7fa2c66d74
Backport: 9e605eb
:: Fix randr plug-n-play for cedric because he asked nicely ;)
...
- Add config timestamping to our randr config.
- remove property_notify handler as we never use it.
- Unify some code to remove duplication
- Add a lot of debugging output.
Yes, e_randr is going to be noisy for a little while until I can
verify that it works for others also.
- Too many other changes to list.
Suffice to say, this makes e_randr plug-n-play work (here anyway).
NB: Right now, this just clones. It Could be changed to extend new
monitors tho
NB: This works here, on my laptop at home. If you find it does not
work for you, please supply the output of E's startup/restart when you
plug AND unplug monitors.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:12:50 -04:00
Chris Michael
5bb2aaf6b0
Backport: 1edb77e
:: Add config_timestamp to e_randr_cfg.
...
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:11:33 -04:00
Christopher Michael
6a9d354d2d
Backport: 1c15009
:: Remove commented fixme (no time to optimize this routine right now).
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84255
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:10:40 -04:00
Christopher Michael
99bcb2ccb9
Backport: b03c099
:: Add exists field to crtc and output.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84231
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:09:49 -04:00
Christopher Michael
c17ffb43b3
Backport: bc23ef5
:: Remove poller code for now (broken, does not work as expected, etc, etc).
...
Add exists field for crtc and output.
Fix output clones and connection status get to use the correct output.
Add some notes and printfs.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84227
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:09:04 -04:00
Christopher Michael
7bd21a70a2
Backport: bf6d1d4
:: Start on poller code.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84226
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:07:11 -04:00
Christopher Michael
128d82a0d8
Backport: 3ff49b2
:: Add poll_interval to e_randr_cfg.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84225
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:06:01 -04:00
Christopher Michael
a309af7689
Backport: 985ff5a
:: Add poll_interval field to config.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84224
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:05:00 -04:00
Christopher Michael
1918c5ae8f
Backport: 059a019
:: When we get randr events, check for actual config differences.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84223
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:03:40 -04:00
Christopher Michael
ce4d086048
Backport: 74b419f
:: Add connected flag for outputs, and add a restore config option.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84221
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:02:36 -04:00
Christopher Michael
49573c4d72
Backport: 6c8bafb
:: When we get an output changed event, check for matching crtc id and also set changed flag if anything in the crtc has changed.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84220
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:00:11 -04:00
Christopher Michael
aa726e1be9
Backport: dc509dd
:: Add support for an outputs clones in e_randr and e_randr config.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84206
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 19:59:14 -04:00
Christopher Michael
a75407c538
Backport: b12e6c9
:: Add note about screen_reset.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84154
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 19:58:06 -04:00
Christopher Michael
20ab70d7b0
Backport: 4af4743 :: Add a blank line to separate comments.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84145
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 19:56:44 -04:00
Christopher Michael
b0467b2bda
Backport: 84481e1
:: Remove randr versions (in header now). Set default output policy.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84112
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 19:52:01 -04:00
Christopher Michael
29315808a1
Backport: 499504b
:: Remove timestamps from config (not needed). Add randr versions to header.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84111
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 19:50:20 -04:00
Christopher Michael
89f80239fb
Backport: f5f7d72
:: Add start of new e_randr code.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84110
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 14:28:38 -04:00
Christopher Michael
eb5d9e226f
Backport: 734e841
:: Add new randr header file.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84109
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 14:08:30 -04:00
Deon Thomas
fe1f530dbe
Backport: a6a159b
:: Remove all Old Randr Code.
2013-06-27 14:05:16 -04:00
Deon Thomas
3b7ef95299
Fixed zmike forgot to define BD_CHANGED
2013-06-26 10:28:23 -04:00
maxerba
3dd5a50ac9
updating esperanto translation
2013-06-20 21:14:22 +02:00