Do not set enabled until after a current mode is set.
Update original size after we set current mode.
Add an original cloned value we can track.
Add code to apply just cloning changes.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 82329
Subject: [E-devel] [e][PATCH] Optimizations v2
Date: Fri, 21 Dec 2012 22:17:32 +0100
Hi,
same patch as before: removed useless nullchecks and
switched some free()'s to E_FREE().
SVN revision: 81592
NB: According to a conversation with T_UNIX, we actually do use the
ecore_x randr functions to apply the config.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81377
crtc.
If the monitor's crtc does not have a current_mode (because it was
previously disabled), then grab the last available mode (typically the
largest) and set the crtc current_mode to that.
Add some debugging for Enable/Disable.
Remove code which was trying to use ecore_x calls to re-enable a
monitor.
Use the randr function for trying to enable an output (if previously
disabled).
NB: Enable/Disable Does work, HOWEVER in my testing I have found that
when you re-enable a monitor, you will need to completely back out of
X and restart it in order for the Monitor to show output again. Unsure
if this is an X bug or something in e_randr or someother weirdness....
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81367
NB: This is needed because apparently the e_randr serialization code
works DIRECTLY on the E_Randr_Info structures (E_Randr_Output_Info,
etc, etc). Sooo, in order to save and restore a randr config, we need
for the monitor to update those structures First before we tell
e_randr to save things else it will save with incorrect values.
NB: This is the START of save/restore configuration work.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81161
When we are uncloning, don't use crtc geometry but rather use the
monitors visual position.
When we show, we need to re-apply any existing rotation (in case
monitor is uncloned).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81113
When we unclone a monitor (on initial startup), if it has not been
manually placed yet, use the crtc geometry for position & size.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81110
Record monitor's current geometry when move starts (so if we unclone
we can restore the position).
Port Raster's mouse pointer changes to new dialog :)
Fix refresh_rate fill function to take the monitor object (needed so
we can raise changed signal).
Add functions for getting the "current" information from the monitor
object (Used during apply).
Fix up swallowing and unswallowing of clones so that they restore
to the original position (before cloning).
Fix up smart move & resize function to not apply map if not visible.
Use a single "map_apply" function (reduce duplicated code).
Hook into radio changed (refresh rate) so we can send the changed
signal.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81102
Ignore resize events on cloned monitors.
Ignore rotate events on cloned monitors.
Don't set the moving flag if this monitor is cloned.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81095
Add preliminary function for handling resize.
Add functions to set resizing flag on start & stop.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81086
Add refresh rate object to monitor structure
Add refresh rate field to store the current rate.
Add start of refresh_rate fill function.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81081
Add field(s) in the smart data structure to store the layout widget reference along with layout geometry and size.
Add code to set the monitor name.
Add code to set the resolution name.
Add code to set enabled/disabled state.
Add code to handle when the layout widget gets moved so we can update the recorded geometry.
Add livethumb background preview.
Add edje signal callbacks for resize, rotate, and indicator.
On monitor deletion, remove the bg_update_handler, and free the list of modes.
Add code to handle manual user moving of monitor.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81077
with the manager pointer... that is bad - at most mess with your own
win pointer.. push and pop that. fix... and use plus pointer for power
led button so it doesnt look like the hand ptr for dragging. :)
SVN revision: 81019
after any user modifications have been applied so that we an reset the
'original' values to the 'currently applied' values. This helps to
keep the Apply button in sync.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 77890
(background set, modes_fill, etc.
Add structure to smart_data so we can store original values and
current values. This allows us to selectively apply changes.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 77870
which matched the existing refresh rate, then search again but do not
take refresh rate into account.
NB: Should fix Raster's "resolution not changing" problem.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 77724
fallback to output->crtc common modes if needed.
No need to drop duplicate resolutions anymore, in fact we should list
them due to different refresh rates.
Add functions to smart monitor object for getting position,
orientation, and mode info.
When searching for a resolution within snapping fuzziness, also try to
find one which matches the current refresh rate.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 77690
e_smart_monitor.c:1036:29: warning: ‘mode’ may be used uninitialized in this function
Signed-off-by: Mike McCormack <mikem@atratus.org>
SVN revision: 77427
resize snapping. Oh, and implement a new feature: Resizing a monitor
While it is rotated in a different position ;)
NB: Next thing is actual Movement snapping, then on to saving config ;)
SVN revision: 77303
a previous rotation when you started a rotate operation. Also, Fix up
a couple of functions to be more accurate (in terms of their name &
purpose).
SVN revision: 77267
monitor gets resized, so that we update the visual layout
appropriately. Also, do not raise "monitor_moved" callback for every
little move, rather wait until the move is finished and raise the
callback once.
NB: The "monitor_moved" callback frequency may change in the future.
SVN revision: 77265
just raise it once when it snaps to the closest resolution.
NB: This may change in the future but for now, let's keep the number
of callbacks down.
SVN revision: 77263
Smart_Data structure. Use an Evas_Map for rotation as the old man
suggested ;)
NB: This will snap to the closest Rotation (within a 45 degree
threshold), after the user has finished rotating.
SVN revision: 77201
NB: Allow free-form resizing. When the user is done resizing, the
monitor object will "snap" to the closest resolution based on the
object size.
SVN revision: 77179
NB: IT IS NOT COMPLETE, DOES NOT APPLY SETTINGS, AND STILL NEEDS LOTS
OF WORK. Don't bother reporting bugs for it just yet, until it is
fully functional. Just adding it to svn in the hopes (hahahaha) that
others may want to jump in and help speed things along.
SVN revision: 77140