Commit Graph

13638 Commits

Author SHA1 Message Date
Chris Michael 0fc304eae5 Handle mouse up and down events from the surface.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:54:59 +01:00
Chris Michael 58d2d77977 Add support for mouse up and down events.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:54:59 +01:00
Chris Michael a4d26ee3a8 Add support for the e_surface smart object.
Add code to listen for the callbacks from e_surface and pass events
along to the wayland client.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:54:59 +01:00
Chris Michael 47b6628927 Add function to support setting e_border input area
Add code to handle null input areas (wrt pass_events on the image).
Add mouse movement callbacks (in, out, move).
Place the input rectangle below the image object.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:54:59 +01:00
Chris Michael 9842c268c3 Add an input object to e_border structure.
Only setup input object callbacks once.
Use input object for mouse_in/out detection.

NB: This is needed for wayland clients to properly function with
regard to E's border pointer focus.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:54:59 +01:00
Chris Michael 5624cee73f Add surface smart object support to the desktop shell.
Add code to handle shell surface requests.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:47:56 +01:00
Chris Michael 1fac56a7e4 Add code to load/unload the desktop shell module.
Add code to handle surface attach requests.
Add code to handle surface commit requests:
  - Use the surface smart object to handle input and image updates.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:47:55 +01:00
Chris Michael 8745eadb3d Add surface smart object to E_Wayland_Surface struture.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:47:55 +01:00
Chris Michael ab729ae557 Add surface smart object to build
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:47:55 +01:00
Chris Michael 50f4aeb942 Add code for start of surface smart object.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:47:55 +01:00
Chris Michael 9e420a288e Add start of desktop shell code.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:47:55 +01:00
Chris Michael 4ab6cf4611 Fix desktop shell Makefile to include the wayland client cflags
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:47:55 +01:00
Chris Michael 3560f40237 Fix module_idler variable name (damn I cannot type today) :(
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:47:55 +01:00
Chris Michael 40b5b05c05 Fix up modules directory Makefile to include desktop shell.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:47:55 +01:00
Chris Michael 38c725519b Actually declare the idler variable so things build (Oopsie).
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:47:55 +01:00
Chris Michael 6653eccd17 Add start of desktop shell code.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:47:55 +01:00
Chris Michael 550dd3c17f Add start of wl_desktop_shell module code.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:47:55 +01:00
Chris Michael 45b13b243f Add Makefile for wl_desktop_shell module.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:47:55 +01:00
Chris Michael e5202dc89f Add an idler to defer shell module loading.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:46:25 +01:00
Chris Michael 65fb88c773 Add code to create, destroy, and otherwise handle the wayland region
interface and wayland surface interface.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:46:25 +01:00
Chris Michael 31f6268fd4 Add function prototypes for surface_destroy and region_destroy.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:46:25 +01:00
Chris Michael deec13f2ce Add code to support initialize, setup and destruction of wayland
inputs (pointer, keyboard, touch).

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:46:25 +01:00
Chris Michael a1447c102e Add start of a wayland compositor.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:46:24 +01:00
Chris Michael 605d6c0922 Add egl support for wayland clients to build infrastructure.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:46:24 +01:00
Chris Michael 29be68914f Add headers and defaults for input support and egl support.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:46:24 +01:00
Chris Michael 90dc57e813 Rename input rectangle object (oopsie).
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:46:24 +01:00
Chris Michael 3ce1e0e8e9 Add header for a Wayland Compositor.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:46:24 +01:00
Chris Michael e1d577b153 Cleanup Wayland Client support build files.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:46:24 +01:00
Chris Michael 047920a9f3 Remove all old wayland compositor files.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-16 12:46:24 +01:00
Mike Blumenkrantz bd7dc3783d use e_zoomap_child_resize() in menu 2013-04-16 12:37:32 +01:00
Mike Blumenkrantz ef9f767119 add e_zoomap_child_resize() to save my sanity 2013-04-16 12:37:11 +01:00
Carsten Haitzler 390964512a move del handler to wrap. 2013-04-16 20:27:36 +09:00
Carsten Haitzler 94299c8160 be more protective against obj refs on del in zoomap 2013-04-16 20:26:37 +09:00
Mike Blumenkrantz a0240e9f56 fix infinite loop on menu zoomap deletion 2013-04-16 12:24:40 +01:00
Carsten Haitzler 42ec9ea089 dont resize if a cw is there... 2013-04-16 20:14:12 +09:00
Carsten Haitzler 45fb38aa7b and in zoomap make alpha on by default (solid currently doesnt work),
and always should be off by default.
2013-04-16 20:10:06 +09:00
Carsten Haitzler e0e513f457 add zoomap so we get back our zooming comp client things with.. menu
for today. popups need doing... anything that bypasses the comp native
surface stuff needs this. :)
2013-04-16 20:07:36 +09:00
Mike Blumenkrantz 00e30bc528 fix window event input when rapidly switching desks 2013-04-16 11:06:15 +01:00
Mike Blumenkrantz ef5be6c343 fix shaped windows 2013-04-16 09:02:13 +01:00
Mike Blumenkrantz 0cc242b5b6 remove some no-longer needed border shape code 2013-04-16 08:43:23 +01:00
Mike Blumenkrantz 8f350c7974 fix crash when action is active on border during deletion 2013-04-16 07:35:26 +01:00
Mike Blumenkrantz 747851dbe1 desk transition config dialogs FIXED(ish) and show comp effects 2013-04-15 08:39:16 +01:00
Mike Blumenkrantz 238543edea expose e_theme_collection_items_find() as a useful function 2013-04-15 08:39:16 +01:00
Mike Blumenkrantz 6e33f33c59 rename comp border edje groups from e/comp/* to e/comp/border/* 2013-04-15 08:39:16 +01:00
Mike Blumenkrantz 718dfef61d giant comp rejiggering commit #6:
* border->fx REMOVED, related border api REMOVED

* comp edc has new class of groups: e/comp/effects[/auto]
** these are effects which can be applied to any compositor object through the e_comp_win_effect* api and are written in embryo
*** two types - base and auto - base = manual, for use with animators; auto are "trigger and forget", for use as actual effects

* desk flip transition animations moved to comp effects and FIXED(ish)

* "zoom" effect renamed to "diagonal" for slightly less misleading name since it never did any zooming

* actual "zoom" effect added

* border hierarchy now as follows: cw->effect_obj swallows cw->shobj, cw->shobj swallows cw->bd->bg_object ?: cw->obj, if (cw->bd->bg_object) cw->bd->bg_object swallows cw->obj
** cw->effect_obj now used for all positioning and comp logic
** cw->effect_obj ONLY used for object transformation effects (moving, zooming, fading, etc)
** cw->shobj ONLY for comp visual/non-movement effects (focus effect, unfocus opacity, legacy shadows); this is a candidate for removal/rewrite in E19

* even more comp shape rewrites

* desk flip animation time now controlled by theme since edje doesn't support setting transition time in C; related config value removed

* desk flip transitions (in e_desk.c) rewritten

* various modules (evry/illume2) updated to use comp effects instead of fx offset

* desk flip configuration BROKEN(ish)
2013-04-15 08:39:16 +01:00
Mike Blumenkrantz 505cec1d91 giant comp rejiggering commit #5:
* border frame/object now drawn directly on compositor canvas

* border shadows now in border theme with edje hint, non-updated themes still receive comp object shadows FOR NOW

* e_border MOVE/RESIZE pointer mode defines are now e_pointer.h enums

* added BD_CHANGED() util macro for setting bd->changed and printing a debug line to assist in finding places where this all-important flag is wrongly set

* bd->bg_win removed entirely

* bd->pointer objects moved to compositor object; now only one pointer object exists for each compositor

* resizing windows now shows a new and totally-intended scaling effect for window contents

* some additional retooling of border deletion/free callbacks

* fixed lurking potential bug where window could recieve focus from autoraise timer after border had been deleted

* more comp shape improvements/rewrites

* desk transitions are now BROKEN(ish)

* various modules updated to not be totally broken with these changes
2013-04-15 08:39:16 +01:00
Mike Blumenkrantz b919573644 e_win no longer constantly overwrites netwm properties 2013-04-15 08:39:16 +01:00
Carsten Haitzler 8dad24565f segv-- for clock popup o_popclock object ref benig dangling. this is a
new bug methinks in e18 dev.
2013-03-31 11:58:41 +09:00
Cedric Bail cd28bc8145 e: add support for systemd user session. 2013-03-30 18:14:26 +09:00
Jérémy Zurcher 3f34680b7a reprotect _mixer_popup_key_down_cb
/me still asleep, it's better like this
2013-03-30 10:14:45 +01:00
Jérémy Zurcher cf2ef255c4 fix _e_popup_autoclose_key_down_cb
- uses autoclose_popup->key_data as autoclose_popup->key_cb data
  key_data is provided at cb registration through e_popup_autoclose(…)
- re-enable _mixer_popup_key_down_cb
2013-03-30 10:07:05 +01:00
Carsten Haitzler c66e21aa9a me. valgrind. happy fun times together. methinks we should hasve more
people do this.
2013-03-30 14:11:07 +09:00
Carsten Haitzler a0d4c33691 oops printf-- 2013-03-29 22:03:09 +09:00
Carsten Haitzler 9deb05a832 fix menu flipping/flickering when menu bigger than screen. 2013-03-29 21:57:55 +09:00
Carsten Haitzler 8fc839e9c8 mixer key control broken .. to the point it segs now. :) patch over
seg. :)
2013-03-29 19:24:22 +09:00
Carsten Haitzler 5a86b057b8 remove azy code and build/configure checks. after zmike made it plain
azy will never become part of efl, and things like being able to do
http get/posts etc. should be part of efl itself as a core feature,
then we forever will have to choose ecore_con_url or some efl
mechanism OR azy.. or go implement both always, and implementing both
is just stupid. imlementing azy only means we add more dependencies
outside of efl and we repeat the mistakes of the past with the split
tree, or we implement the efl method only (ecore-con-url), so i'm
choosing the one with the least dependencies. call me if this position
on azy outside of efl changes.
2013-03-27 21:50:49 +09:00
Mike Blumenkrantz 1f0a8801b5 fix ibox crash when border hasn't been assigned to a zone 2013-03-26 11:51:40 +00:00
Mike Blumenkrantz 7e1843207c update azyshot to new api 2013-03-25 08:24:35 +00:00
Mike Blumenkrantz 313b0374c3 remove unneeded variable set in wizard 2013-03-22 10:02:49 +00:00
Tom Hacohen e1fe199718 E conf intl: Initialise basic_language variable.
Judging from the code it seems that this variable is supposed to be init to
NULL.
2013-03-21 16:20:52 +00:00
Tom Hacohen 93953ab44e conf2: fix declaration of 'const char * const *' string. 2013-03-21 16:17:33 +00:00
Cedric BAIL 07b5d9fe6c dear Mike,
If you just want to silence your warning remove all -W from your CFLAGS and
take your revenge back to your compiler. Introducing bugs to just silent warning
is not gona help any one.

The borker,
  Cedric
2013-03-21 10:04:32 +09:00
Chris Michael 723825e49e 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>
2013-03-20 13:41:48 +00:00
Mike Blumenkrantz 03f9e7d6e7 add event rect for menus to ensure that clicks outside the menu will dismiss the menu 2013-03-20 09:50:47 +00:00
Mike Blumenkrantz 605f781e36 dear cedric,
fucking compile things before you commit.

your vengeful buddy,
mike
2013-03-20 08:36:14 +00:00
Stefan Schmidt df5e6d7cfa ebluez4: Have all functions and vars conditional for the unlock feature.
If we only use them in conditional blocks we don't need them to be defined
for all cases.
2013-03-19 08:52:27 +00:00
Cedric Bail 2f6fcf4228 e: add automatic desktop lock/unlock when a bluetooth device disapear.
This use a custom implementation of l2ping to ping known device and do
proper action when they go away. I don't recommend to use the auto unlonck,
but it is there if someone need it.
2013-03-18 00:07:34 +09:00
Cedric Bail 32f717483f ebluez: save config. 2013-03-16 11:47:32 +09:00
Cedric Bail da14a2d0eb e: add auto desk lock and unlock to Enlightenment bluez module. 2013-03-16 11:47:31 +09:00
Mike Blumenkrantz 5a61d5f733 when azy is enabled, shot module now uses it (successfully!) for uploading 2013-03-15 13:35:46 +00:00
Mike Blumenkrantz f4da77932d add optional azy support to e 2013-03-15 13:35:31 +00:00
Cedric BAIL 6f955263fa enlightenment: do not propagate the systemd socket to E17.
In a proper systemd user session setup, enlightenment_start will be
gone. That is still not doable today and as I plan to roll more feature
in EFL regarding systemd, we need to prevent enlightenment to believe
it is the process started by systemd.
2013-03-15 12:07:47 +09:00
Mike Blumenkrantz 5d16b3f092 automatically mouse-up the comp evas when a menu is activated so future mouse events will work 2013-03-14 09:11:13 +00:00
Mike Blumenkrantz 3702dceb16 fix dnd visuals when using multiple monitors 2013-03-13 08:07:07 +00:00
Mike Blumenkrantz 4ac3a18827 remove dnd todos since they're already implemented 2013-03-13 08:06:57 +00:00
Mike Blumenkrantz f6dc33f6aa always deactivate all active menus when manually activating another window 2013-03-13 07:47:46 +00:00
Mike Blumenkrantz a069797887 fix cpufreq gadget menu popdown 2013-03-13 07:46:56 +00:00
Carsten Haitzler 174a5fab15 fix efm link resolving.. again. new case. 2013-03-12 15:47:41 +09:00
discomfitor 0d16ba68cd giant comp rejiggering commit #3
* e menus are now drawn directly onto the compositor canvas

* menu theme now requires at least one part which allows mouse events in every menu group (YOUR MENUS WILL NOT WORK IF YOU ARE USING A THEME WHICH LACKS THIS!!!!!!!)

* menus now also report dangling/zombie menus with slightly more accuracy now
2013-03-11 05:20:52 +00:00
discomfitor 7d0c1182c8 if a menu is active, ensure efm does not send icon_mouse_in smart callbacks 2013-03-11 05:20:28 +00:00
discomfitor 0dd92f98f3 add menu canvas layer 2013-03-11 05:20:27 +00:00
Dieter Roelants 5e5462a381 portability: don't rely on bash or zsh behavior.
This force the command to be run with exec and prevent them
for staying alive after startup or restart.

Signed-off-by: Cedric BAIL <cedric.bail@free.fr>
2013-03-11 10:29:54 +09:00
Mike McCormack 98602e6846 contact: Fix warnings
Signed-off-by: Mike McCormack <mike@atratus.org>
2013-03-10 08:10:07 +11:00
Stefan Schmidt 27b1b54a04 e/musi-control: Use ECORE_CALLBACK_PASS_ON.
To allow other users to receive the event as well. Spotted by Jose Souza. Thanks!
2013-03-08 14:32:13 +00:00
Daniel Willmann 845cc722d8 Remove deleted file e_randr_private.h from EXTRA_DIST
Make distcheck happy

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-03-07 18:20:09 +00:00
Stefan Schmidt 5dff40a70c e/music-control: Allow strings to be translated. 2013-03-07 11:43:46 +00:00
Stefan Schmidt b81777bfde e/music_control: Add option to pause music on desklock.
Locking your screen pauses the music unlocking starts playing again.
Option is off by default.
2013-03-07 11:40:27 +00:00
Shinwoo Kim d032d0e52f [access] check active window and send message to the active window 2013-03-07 16:20:51 +09:00
Jérémy Zurcher 46230e204c mixer: cleanup card and channel selection code path
_populate_channel_editor:
   use app->sys_card_name instead of
e_mod_mixer_card_name_get _populate_channels:
   select default channel or first one
_create_cards:
   do not reselect card and channel
e_mixer_app_dialog_select:
   cleanup, remove unused _find_card_by_name and _find_channel_by_name
_mixer_popup_cb_mixer:
   do not modifiy current selection on popup
2013-03-06 16:05:20 +01:00
Jérémy Zurcher 01e98a4534 mixer: remove unused mixer functions
remove e_mod_mixer_channel_name_get, e_mixer_xxxx_get_channel_name e_mixer_xxxx_set_state
2013-03-06 16:05:20 +01:00
Jérémy Zurcher 6ef3c743ef mixer: use channel capabilities in alsa subsystem
use capabilities bitmap to more precisely target the right alsa calls
2013-03-06 16:05:20 +01:00
Jérémy Zurcher cadd6ca38f mixer: remove e_mod_mixer_mutable_get and e_mod_mixer_capture_get
it's handled by channel capabilities
2013-03-06 16:05:20 +01:00
Jérémy Zurcher 00681f3ada mixer: take advantage of Channel capabilities bitmap
split channels list into 4 groups:
   Playback, Capture, Switch, Boost
nicely disable volume sliders and mute check when appropriate
2013-03-06 16:05:20 +01:00
Jérémy Zurcher b34e7b440d mixer: replace E_Mixer_Channel_Info has_capture with capabilities
capabilities is a bitmap with the following defined bits:
   E_MIXER_CHANNEL_CAN_MUTE       0x01
   E_MIXER_CHANNEL_IS_MONO        0x02
   E_MIXER_CHANNEL_HAS_CAPTURE    0x04
   E_MIXER_CHANNEL_HAS_PLAYBACK   0x08
2013-03-06 16:05:19 +01:00
Jérémy Zurcher 330490ad85 mixer: add const to immutable params of mixer api
strengthen mixer's api
2013-03-06 16:05:19 +01:00
Jérémy Zurcher d75622c33c mixer: use E_Mixer_Channel_Info as subsystem fct param
E_Mixer_Channel is only used within audio subsystems
e_mod_mixer_channel_info_get_by_name returns a E_Mixer_Channel_Info
use e_mod_mixer_channel_info_free to free a single channel_info
2013-03-06 16:05:19 +01:00
Jérémy Zurcher ab7edf7ff6 mixer: fix grammar
a farm of pigs is a pig farm, says my irish wife;
info should stay singular but for better understanding, use plural
2013-03-06 16:05:19 +01:00
Jérémy Zurcher 146e3d3643 mixer: add missing _e_mixer_dummy_set calls to sys_dummy 2013-03-06 16:05:19 +01:00
Jérémy Zurcher 488904c95d mixer: factorise get/free card names
e_mod_mixer_card_names_free in e_mod_mixer.c is used
to free Eina_List build by e_mod_mixer_card_names_get
2013-03-06 16:05:19 +01:00
Jérémy Zurcher 640b339a80 mixer: factorise get/free channels info and names
E_Mixer_Channel_Info allocated in subsystems,
then freed in generic functions in e_mod_mixer.c
2013-03-06 16:05:19 +01:00
Jérémy Zurcher 03b9522b04 mixer: replace struct channel_info with E_Mixer_Channel_Info
E_Mixer_Channel_Info is defined in e_mod_mixer.h
subsystems will allocte it returning Eina_List
generic functions in e_mod_mixer will free the structs
2013-03-06 16:05:19 +01:00
Jérémy Zurcher a67cc20580 mixer: replace e_mod_system.h with e_mod_mixer.hc
provide a neat mixer api, easier to upgrade
2013-03-06 16:05:19 +01:00
Jérémy Zurcher 55ef1af90a mixer: pulse use const eina_stringshare as channel name
neat as done in sys_dummy
2013-03-06 16:05:19 +01:00
Daniel Juyung Seo 10ad3b23a8 efm now knows about KP_Enter. Patch by godfath3r.
KP_Enter key is added in enlightenments file manager.
2013-03-05 18:52:19 +09:00
Mike Blumenkrantz e186c026bb freeze evas and edje when destroying comp canvas to prevent io event flushes from crashing during shutdown 2013-03-04 09:06:23 +00:00
Sebastian Dransfeld 79fba3fa9a Fix hibernate 2013-03-01 11:15:59 +01:00
Lucas De Marchi 9187778f32 Revert "fix edbus message refcounting in udisks efm backend"
This reverts commit 0f9336b105.

Message is automatically unrefd by edbus_connection_send() if it is was
successfully sent.
2013-02-28 15:41:49 -03:00
Christopher Michael eca3475b79 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>
2013-02-27 12:01:25 +00:00
Christopher Michael dce3e8f74f 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>
2013-02-26 11:09:45 +00:00
Mike Blumenkrantz 1f34e88860 fix comp injected object stacking
previously this was done in such a way that if the "owner" stacking object of an injected object was restacked, the injected object would remain at its original stacking level since it was not tethered to anything and did not have X managing stacking. now comp will anchor injected objects to the stacking container window and adjust stacking as needed for them

fixes shelf stacking in some cases
2013-02-26 08:39:10 +00:00
Mike Blumenkrantz 2d5d042979 fix pager dnd icon deletion 2013-02-26 07:27:44 +00:00
Mike Blumenkrantz c73a9e58c0 some comp WIP on setting object color classes to handle opacity for windows...doesn't work right still because of focus clip 2013-02-25 10:02:57 +00:00
Mike Blumenkrantz e3486bbc17 save gadman gadget geom on resize 2013-02-25 09:26:06 +00:00
Mike Blumenkrantz 241a5763e3 reset gadman gadget position if invalid % for size/geom is sent, only create gadget menus based on config where applicable 2013-02-25 09:25:03 +00:00
Mike Blumenkrantz 1ed466474d update gadman gadget position on moves 2013-02-25 09:24:24 +00:00
Mike Blumenkrantz 817ea38bcf gadman only rejects dnd events from non-gadman gadcons instead of all gadcons 2013-02-25 09:23:20 +00:00
Mike Blumenkrantz c7482d9b7d fix edbus crash in udisks efm backend 2013-02-25 09:22:29 +00:00
Mike Blumenkrantz 0f9336b105 fix edbus message refcounting in udisks efm backend 2013-02-25 09:22:15 +00:00
Mike Blumenkrantz 339f4c58e4 gadman no longer crashes when right clicking a dnd-enabled gadget 2013-02-25 08:18:06 +00:00
Carsten Haitzler bedf4969a4 fix relative path opening in efm... if link is relative it was broken. 2013-02-24 12:57:59 +09:00
Carsten Haitzler 42271921da use activte for contact. 2013-02-23 18:23:51 +09:00
Mike Blumenkrantz dbd0670bfc systray now has a min size of 8x8 so it can be clicked 2013-02-22 13:56:47 +00:00
Stefan Schmidt 299aea18c4 e/music_control: Fix typo for playing 2013-02-22 13:46:28 +00:00
Mike Blumenkrantz fca3799f44 shelf gadcon can no longer resize smaller than 16x16 2013-02-22 13:18:30 +00:00
Mike Blumenkrantz 70d68a30e0 giant comp rejiggering commit #4
* dnd canvas removed, dnd objects now drawn directly on compositor canvas

* dnd now correctly picks the top-most dnd-receiver location as its drop target instead of just using the first one in the list

* various other small changes to go along with this
2013-02-22 13:18:30 +00:00
Mike Blumenkrantz 9eda384ea8 fix popup comp win initial visibility, also a potential crash on comp win delete 2013-02-22 13:18:30 +00:00
Mike Blumenkrantz ecfa985b15 e toolbars now have a gadcon location 2013-02-22 13:18:30 +00:00
Mike Blumenkrantz 19f79acb45 add e_gadcon_repopulate
this allows unpopulate+repopulate calls to occur while the layout is frozen, providing a substantial speedup
2013-02-22 13:18:30 +00:00
Mike Blumenkrantz 7128c8fbe6 add e_toolbar init/shutdown to startup and shutdown 2013-02-22 13:18:30 +00:00
Mike Blumenkrantz 536254e2ce start drag if gadget has been moved the size of the gadget
when a gadget is at the edge of its gadcon, it can't move more than this amount, so we have to start the drag immediately
2013-02-22 13:18:30 +00:00
Mike Blumenkrantz 56fdcf1faa use e_gadcon_zone_get for dnd-related functions to ensure we get the right zone: fixes toolbar dnd 2013-02-22 13:18:30 +00:00
Mike Blumenkrantz 4b9113f3ba use new comp layer functions to correctly set layer for gadget mover objects...this needs to be redone entirely along with the rest of gadcon 2013-02-22 13:18:30 +00:00
Mike Blumenkrantz 159373a340 add comp util functions for returning the layer and effective layer of a comp object 2013-02-22 13:18:30 +00:00
Mike Blumenkrantz 23e81fc937 add e_object_ref_debug_set 2013-02-22 13:18:30 +00:00
Mike Blumenkrantz bf9933a336 E_FN_DEL macro renamed to E_FREE_FUNC with param order swapped for consistency 2013-02-22 13:18:30 +00:00
Mike Blumenkrantz 81b723aa98 add E_LIST_REVERSE_FREE 2013-02-22 13:18:29 +00:00
Stefan Schmidt 26d32a34b2 e/music_control: Allow an action to toggle between play and pause.
We offer the play pause action but did only do the pause. Now we allow
toggling the state.
2013-02-22 13:00:02 +00:00
Mike Blumenkrantz ea3f93025b set border transparency more accurately when adopting windows in comp 2013-02-22 11:47:41 +00:00
Shinwoo Kim 944356135a [access] check 'double down and long press' and 'then move'
SVN revision: 84307
2013-02-22 10:10:54 +00:00
Shinwoo Kim 9ce26d3202 [access] check window rotation
SVN revision: 84306
2013-02-22 09:51:45 +00:00
Mike Blumenkrantz 458ec6aefc set initial window opacity to max
SVN revision: 84305
2013-02-22 09:49:51 +00:00
Shinwoo Kim 46451fa1ad [access] check previous block to save configuration value
SVN revision: 84304
2013-02-22 09:46:20 +00:00
Mike Blumenkrantz 12ffdeb622 e's compositor now obeys _NET_WM_WINDOW_OPACITY as a normal atom in e_border
additionally:

* actions are now available for setting/changing window opacity

* window remembers can now remember window opacity

SVN revision: 84303
2013-02-22 09:33:13 +00:00
Mike Blumenkrantz 49b3a40eb0 disable remember dialog -> advanced command entry when not remembering command
SVN revision: 84302
2013-02-22 09:33:11 +00:00
Mike Blumenkrantz 5db6e8a56f s/e_comp_win_find_border_win/e_comp_win_find_client_win/
the former could be bd->win, while the latter can only be bd->client.win

SVN revision: 84301
2013-02-22 09:33:06 +00:00
Mike Blumenkrantz 00c8442d51 gadman top layer no longer deletes gadget configs when it can't find their objects
SVN revision: 84288
2013-02-21 13:52:30 +00:00
Mike Blumenkrantz 368142bc76 minor cosmetic tweaks for gadman init
SVN revision: 84287
2013-02-21 13:52:28 +00:00
Mike Blumenkrantz b37bf0904f self-deleting popups (like mixer) once again function as expected
SVN revision: 84285
2013-02-21 13:33:53 +00:00
Mike Blumenkrantz 01d0d67836 gadcon popups are now above most other objects
SVN revision: 84284
2013-02-21 13:33:48 +00:00
Mike Blumenkrantz 7ffec7e968 always show popup content on content set
this change prevents erroneous calls to the comp injected object show handler in some cases, which would cause unnecessary recalcs and strange object movements


SVN revision: 84281
2013-02-21 12:48:47 +00:00
Mike Blumenkrantz 0ebb887d64 set comp win e object ref to null during its delfn
if this function is called, the object is in the process of being deleted and its refcount is already 0. trying to access it later will guarantee a crash, so ignore whever refs we may have on it


SVN revision: 84278
2013-02-21 11:28:15 +00:00
Carsten Haitzler 0578ff6754 more valgrind stuff... null deref?
SVN revision: 84273
2013-02-21 04:01:36 +00:00
Carsten Haitzler 0e6a47a90a valgrind unhapiness... silenced... mysterious as to why this happens
as there are no entires up?



SVN revision: 84272
2013-02-21 03:59:42 +00:00
Carsten Haitzler e2f3f4e278 eobj referenced in struct but only reffed intermittenytly - ref for as
long as there is a handle. avoid segvs!



SVN revision: 84271
2013-02-21 03:53:49 +00:00
Carsten Haitzler 9f530e27d2 fix valgrind null evas problem with preview.
fix preview aspect ratio out-of-bounds packing with videos when not
widescreen. :)



SVN revision: 84267
2013-02-21 01:11:00 +00:00
Mike Blumenkrantz cf2c170c8c fix syscon to use popups more effectively
SVN revision: 84264
2013-02-20 10:47:53 +00:00
Mike Blumenkrantz 8e9aea2307 e_flowlayout is just not done correctly at all...some fixes here to make it not crash on deletion at least :/
SVN revision: 84263
2013-02-20 10:47:49 +00:00
Mike Blumenkrantz 95f0b520ac use separate delay del function for popups to ensure comp win deletion
SVN revision: 84262
2013-02-20 10:47:46 +00:00
Mike Blumenkrantz 88f00310d7 e toolbar gadgets no longer crash when trying to display a popup
SVN revision: 84258
2013-02-20 09:13:03 +00:00
Christopher Michael 8a3cf51692 Re-enable Restore button for RandR dialog.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84256
2013-02-20 07:45:19 +00:00
Christopher Michael 1c15009411 Remove commented fixme (no time to optimize this routine right now).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84255
2013-02-20 07:45:13 +00:00
Mike Blumenkrantz 3294b377e8 add flag in comp match for disabling shadows, disable shadows for notification popup matches
SVN revision: 84254
2013-02-20 07:37:55 +00:00
Carsten Haitzler 064737a84c popups... STAY UP!
SVN revision: 84240
2013-02-19 15:11:46 +00:00
Mike Blumenkrantz 32157d8fe5 fix gadget event object layering for dnd
SVN revision: 84239
2013-02-19 14:29:57 +00:00
Mike Blumenkrantz 8672080a60 fix comp canvas win finding for some dnd operations
SVN revision: 84238
2013-02-19 14:18:58 +00:00
Mike Blumenkrantz da751bc1af only delete popup's comp win if the popup has been deleted
SVN revision: 84236
2013-02-19 13:43:18 +00:00
Christopher Michael ce6ed08611 Hook into monitor_resized callback and update adjacent monitor positions.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84234
2013-02-19 11:01:31 +00:00
Christopher Michael c3736db94f 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
2013-02-19 11:01:29 +00:00
Christopher Michael 2ce1533131 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
2013-02-19 11:01:26 +00:00
Christopher Michael b03c09987b Add exists field to crtc and output.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84231
2013-02-19 11:01:23 +00:00
Christopher Michael 1860beba5a Add monitor_moved callback and update position (if needed).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84230
2013-02-19 11:01:21 +00:00
Christopher Michael 16abe425c0 Add missing function prototypes.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84229
2013-02-19 11:01:18 +00:00
Christopher Michael 8109e62825 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
2013-02-19 11:01:14 +00:00
Christopher Michael bc23ef529c 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
2013-02-19 11:01:11 +00:00
Christopher Michael bf6d1d43ae Start on poller code.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84226
2013-02-19 11:01:08 +00:00
Christopher Michael 3ff49b211e Add poll_interval to e_randr_cfg.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84225
2013-02-19 11:01:05 +00:00
Christopher Michael 985ff5af28 Add poll_interval field to config.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84224
2013-02-19 11:01:02 +00:00
Christopher Michael 059a0198c3 When we get randr events, check for actual config differences.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84223
2013-02-19 11:00:59 +00:00
Christopher Michael 8f728d158d Add restore checkbox to dialog.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84222
2013-02-19 11:00:56 +00:00
Christopher Michael 74b419fb9e Add connected flag for outputs, and add a restore config option.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84221
2013-02-19 11:00:53 +00:00
Christopher Michael 6c8bafb044 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
2013-02-19 11:00:23 +00:00
Christopher Michael 686ff23a54 Add some comments.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84219
2013-02-19 11:00:09 +00:00
Christopher Michael f52d507845 Add missing function prototypes.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84218
2013-02-19 11:00:00 +00:00
Christopher Michael 0ac5ed720a 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
2013-02-19 10:59:58 +00:00
Christopher Michael 1f51f97259 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
2013-02-19 10:59:55 +00:00
Christopher Michael c889d84b87 Add hook for randr widget changed.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84215
2013-02-19 10:59:52 +00:00
Christopher Michael b0dff98153 Simplify changed enum.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84214
2013-02-19 10:59:49 +00:00
Christopher Michael 86b27baec7 Start on monitor Changes.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84213
2013-02-19 10:59:47 +00:00
Christopher Michael 994586d509 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
2013-02-19 10:59:44 +00:00
Christopher Michael eec7305dfc 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
2013-02-19 10:59:41 +00:00
Christopher Michael 6739bcfe66 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
2013-02-19 10:59:38 +00:00
Christopher Michael 54f611f3c5 Add function prototype for monitor clone set.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84208
2013-02-19 10:59:33 +00:00
Christopher Michael fee5a89bfa 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
2013-02-19 10:59:30 +00:00
Christopher Michael dc509dd812 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
2013-02-19 10:59:28 +00:00
Christopher Michael 5f68828189 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
2013-02-19 10:59:20 +00:00
Christopher Michael 132719c2b6 Correctly calculate disabled monitor position(s).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84202
2013-02-19 10:59:17 +00:00
Christopher Michael 7df8dddb23 Remove useless mod_dir variable (and associated code).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84201
2013-02-19 10:59:15 +00:00
Christopher Michael 3f283a62a2 Remove useless defines and variables.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84200
2013-02-19 10:59:11 +00:00
Christopher Michael a9cd2aaa02 Remove unused variable and some dead printfs.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84199
2013-02-19 10:59:08 +00:00
Christopher Michael a9f1783e5f 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
2013-02-19 10:59:06 +00:00
Christopher Michael 1d10a382b6 Actually, allow move/resize/rotate for disabled monitors so things can
be adjusted (NB: Will not actually mattery on Apply anyway).

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84197
2013-02-19 10:59:03 +00:00
Christopher Michael c5254ce545 Set current size and position text when we set current values.
Add function for setting current geometry.
If a monitor is disabled, do not allow rotate, resize, move events.
Fix resize start/stop functions to use current geometry.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84196
2013-02-19 10:59:00 +00:00
Christopher Michael c0d5cbad61 Add function prototype for setting current geometry.
Rename function prototype for grid virtual size set.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84195
2013-02-19 10:58:57 +00:00
Christopher Michael f48772482c Fix move_stop to use current geometry.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84194
2013-02-19 10:58:54 +00:00
Christopher Michael 2819733656 Handle setting monitor to enabled/disabled based on crtc mode.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84193
2013-02-19 10:58:51 +00:00
Christopher Michael 87ef25f21b 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
2013-02-19 10:58:48 +00:00
Christopher Michael 2acdd3f3e2 Add 'current' field values so we can use these durring apply for
comparison to old values.
Fix move, resize, rotate code to use "current" values.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84191
2013-02-19 10:58:45 +00:00
Christopher Michael aee6393591 Add code to handle manual monitor movement.
Fix up coordinate functions to not need doubles.
Update monitor position text when moving.
Fix up rotation code to allow rotating when mouse is outside the frame
(thank you Daniel) ;)

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84190
2013-02-19 10:58:42 +00:00
Christopher Michael b33401f645 Add in refresh_rate code for filling refresh rate list and listening
for changes.
Break map_apply function into frame_map_apply and thumb_map_apply for
rotating just the wallpaper.
Fix resize code to work with a rotated monitor.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84188
2013-02-19 10:58:36 +00:00
Christopher Michael 39bc25be03 Use ecore_x_randr_crtc_info_free function to free returned crtc_info.
When comparing refresh rates for mode searches, cast to int.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84187
2013-02-19 10:58:33 +00:00
Christopher Michael 2e0f4e7a27 Reduce variable usage
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84186
2013-02-19 10:58:31 +00:00
Christopher Michael e02c9fc7aa Fix comment.
Remove orientation comparison.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84185
2013-02-19 10:58:28 +00:00
Christopher Michael af59660d3f Add ROTATE_FUZZ amount.
Add inline function to get orientation based on rotation amount.
Add function to apply an evas_map for rotation.
If we are rotating, we don't need to set livethumb size.
When we start rotating, set initial rotation amount to 0.
When rotation stops, update the map and monitor position where needed.
Apply map during rotation.

NB: This commit also adds a debugging red rectangle behind the
monitor. This will be removed when debugging is complete

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84184
2013-02-19 10:58:25 +00:00
Christopher Michael c2b2be5be7 Add current rotation to smart_data structure.
Fill in current rotation on crtc set.
Update current rotation when we get a rotation event.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84183
2013-02-19 10:58:22 +00:00
Christopher Michael 35855135a1 Add inline function to return the degree of rotation based on
orientation.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84182
2013-02-19 10:58:19 +00:00
Christopher Michael 87daec404d Remove Big Fat Fixme warning as it's fixed now :)
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84181
2013-02-19 10:58:16 +00:00
Christopher Michael ed84b96078 Add code to check EFL version.
If we are using a newer version, then we can use the new
ecore_x_randr_crtc_info_get() function which will save us a lot of X
round-trips.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84180
2013-02-19 10:58:13 +00:00
Christopher Michael 93ad1faf50 Add current mode and refresh rate to crtc field.
Add function prototype for getting a mode refresh rate.
Add Big Fat FIXME for crtc_set function.
Get the crtc current mode & refresh rate when crtc is set.
Simplify monitor_mode_find function.
Add function for getting a mode refresh rate.
Start on rotation event code.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84179
2013-02-19 10:58:10 +00:00
Christopher Michael 1ec01f9d65 Add function to get the amount of rotation from a mouse event.
Simplify mouse movement check in resize_event and add some better
comments.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84178
2013-02-19 10:58:06 +00:00
Christopher Michael 3526741c82 Turn 'crtc' field into a structure (mainly for making code easier to
read/maintain).

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84177
2013-02-19 10:58:04 +00:00
Christopher Michael 5b47415f14 Add code to check if rotations for a given crtc are possible, and
disable the rotation in edje if not.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84176
2013-02-19 10:58:01 +00:00
Christopher Michael 9edea3c781 Only get edid (an expensive process) if getting the output name
previously has failed.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84175
2013-02-19 10:57:57 +00:00
Christopher Michael 7abc8a7aca Add flag for rotating to structure.
Add & delete callbacks for rotation start & stop.
Add functions for rotate start & stop.
Add start of rotate event code.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84174
2013-02-19 10:57:55 +00:00
Christopher Michael 2edc7cfeaf Add some comments.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84173
2013-02-19 10:57:52 +00:00
Christopher Michael 480170d4ce Remove all code which tried to maintain aspect ratio of the frame
(resize snapping to mode dimensions will handle this anyway).

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84172
2013-02-19 10:57:50 +00:00
Christopher Michael 1f63b0f062 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
2013-02-19 10:57:47 +00:00
Christopher Michael bda3e4bcdc Change structure to store grid geometry.
Change grid_set function to accept grid geometry.
Add monitor_virtual_size_set function.
Only update livethumb preview size if we are not manually resizing.
Don't need to set the resolution text during smart_resize.
Add functions to convert coordinates to/from virtual to canvas.
Add function to find the closest randr mode to a given size.
Add function to handle user manual resizing.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84170
2013-02-19 10:57:44 +00:00
Christopher Michael 903787a594 Change monitor_grid_set function to also accept the grid geometry
(used for virtual-->canvas coordinate functions).

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84169
2013-02-19 10:57:41 +00:00
Christopher Michael fd0889b31a Add missing LOGFN's where needed.
Add mouse_move callback on frame.
Delete mouse_move callback when we delete the frame.
Add code in frame moouse_move function to call appropriate event based
on current action.
Start of actual resize event code.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84168
2013-02-19 10:57:38 +00:00
Christopher Michael f4ae6fac22 Add flag to structure for resizing.
Add start of resize coordinates to structure.
If we are manually resizing the object, update the text.
When resize starts, record the current mouse position and size.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84167
2013-02-19 10:57:35 +00:00
Christopher Michael fd11b69ad5 Add edje callbacks to frame for resize_start & resize_stop.
Add code to delete edje callbacks from frame when object is deleted.
Add start of code for resize_start & resize_stop frame events.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84166
2013-02-19 10:57:32 +00:00
Christopher Michael 22f25b4c1d Fix variable type of "name" to be char (not const char).
Add code to set mouse pointer on frame events (resize, rotate, etc).

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84165
2013-02-19 10:57:29 +00:00
Christopher Michael 825ccb9256 Cleanup some memory returned from ecore_x_randr when we are done with
it.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84164
2013-02-19 10:57:26 +00:00
Christopher Michael b5f6ae6d0d Fix comment.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84163
2013-02-19 10:57:24 +00:00
Christopher Michael f5fc65f945 Add function to push & pop e_pointers.
Add code to set pointer indication when mouse moves inside the
thumbnail.
Add code to set pointer indication when mouse is down on the thumbnail.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84162
2013-02-19 10:57:21 +00:00
Christopher Michael 9354ef67ae Set aspect width & height on the same line
(pedantic commit just to remove 2 extra lines).

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84161
2013-02-19 10:57:18 +00:00
Christopher Michael 353df08f07 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
2013-02-19 10:57:14 +00:00
Christopher Michael 457c302e92 Modifiy crtc_set function to also take the current crtc coordinates
(this saves us a round-trip function call to ecore_x_randr as we
already have the coordinates from the randr widget).

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84159
2013-02-19 10:57:12 +00:00
Christopher Michael 54a0fa16ae When we set the crtc of the monitor, we can update position and
resolution text.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84158
2013-02-19 10:57:09 +00:00
Christopher Michael 58b68ab98b Add private functions for setting monitor position and resolution text.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84157
2013-02-19 10:57:06 +00:00
Christopher Michael 597d95bdb6 Add code to set the monitor name.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84156
2013-02-19 10:57:04 +00:00
Christopher Michael ad6d6914bc 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
2013-02-19 10:57:01 +00:00
Christopher Michael b12e6c9c12 Add note about screen_reset.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84154
2013-02-19 10:56:58 +00:00
Christopher Michael 8d47671e6e Add code to handle setting of background preview on initial show.
Add code to handle setting of background preview when user changes the
bg.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84153
2013-02-19 10:56:54 +00:00
Christopher Michael 6ca0528ef0 Remove function call to monitor_virtual_size_set.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84152
2013-02-19 10:56:51 +00:00
Christopher Michael 055ccc581e Remove virtual_size_set code (turns out, it's not needed).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84151
2013-02-19 10:56:48 +00:00
Christopher Michael 70380b6125 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
2013-02-19 10:56:45 +00:00
Christopher Michael efbdf8c9d0 Add function prototype for min_size_get.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84149
2013-02-19 10:56:43 +00:00
Christopher Michael c476e30c5e Add function prototypes.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84148
2013-02-19 10:56:40 +00:00
Christopher Michael 85ff779ed4 Add min & max mode sizes to monitor structure.
Add Frame & Stand to monitor structure.
Add code to create/show/move/resize/hide the frame & stand.
Change the code to use ecore_x_randr functions so that when running in
Xephyr we get monitors that make sense.
Change output_set and crtc_set functions to take the Ecore_X_Randr
types.
Set an aspect ratio on the frame (so it maintains during resize)
Add function for telling monitor what the virtual size is.
Add function for telling monitor what grid object it belongs to.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84147
2013-02-19 10:56:38 +00:00