Commit Graph

41 Commits

Author SHA1 Message Date
Mike Blumenkrantz 86656e4df9 compositor rewrite / charlie-foxtrot situation
huge fustercluck commit because there wasn't really a way to separate out the changes. better to just rip it all out at once.

* compositor and window management completely rewritten. this was the goal for E19, but it pretty much required everything existing to be scrapped since it wasn't optimized, streamlined, or sensible. now instead of having the compositor strapped to the window manager like an outboard motor, it's housed more like an automobile engine.

** various comp structs have been merged into other places (eg. E_Comp_Zone is now just part of E_Zone where applicable), leading to a large deduplication of attributes

** awful E_Comp_Win is totally dead, having been replaced with e_comp_object smart objects which work just like normal canvas objects

** protocol-specific window management and compositor functionality is now kept exclusively in backend files

** e_pixmap api provides generic client finding and rendering api

** screen/xinerama screens are now provided directly by compositor on startup and re-set on change

** e_comp_render_update finally replaced with eina_tiler

** wayland compositor no longer creates X windows

** compositor e_layout removed entirely

* e_container is gone. this was made unnecessary in E18, but I kept it to avoid having too much code churn in one release. its sole purpose was to catch some events and handle window stacking, both of which are now just done by the compositor infra

* e_manager is just for screensaver and keybind stuff now, possibly remove later?

* e_border is gone along with a lot of its api. e_client has replaced it, and e_client has been rewritten completely; some parts may be similar, but the design now relies upon having a functional compositor

** window configuration/focus functions are all removed. all windows are now managed solely with evas_object_X functions on the "frame" member of a client, just as any other canvas object can be managed.

*** do NOT set interceptors on a client's comp_object. seriously.

* startup order rewritten: compositor now starts much earlier, other things just use attrs and members of the compositor

* ecore_x_pointer_xy_get usage replaced with ecore_evas_pointer_xy_get

* e_popup is totally gone, existing usage replaced by e_comp_object_util_add where applicable, otherwise just placed normally on the canvas

* deskmirror is (more) broken for now

* illume is totally fucked

* Ecore_X_Window replaced with Ecore_Window in most cases

* edge binding XWindows replaced with regular canvas objects

* some E_Win functionality has changed such that delete callbacks are now correctly called in ALL cases. various dialogs have been updated to not crash as a result

comp files and descriptions:

e_comp.c - overall compositor functions, rendering/update loop, shape cutting

e_comp_x.c - X window management and compositor functionality

e_comp_wl.c - Wayland surface management and compositor functionality

e_comp_canvas.c - general compositor canvas functions and utilities

e_comp_object.c - E_Client->frame member for managing clients as Evas_Objects, utility functions for adding objects to the compositor rendering systems

additional authors: ivan.briano@intel.com

feature: new compositor

removal: e_border, e_container, e_popup
2014-01-14 20:22:02 -05: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
Carsten Haitzler 2c9ccbf6d5 make illume indicator top by default...
SVN revision: 80424
2012-12-07 09:41:03 +00:00
Christopher Michael 89f47fff81 E: Fix warning: variable 'h' set but not used
Signed-off-by: Christopher Michael <cpmichael1@comcast.net>

SVN revision: 78582
2012-10-28 10:31:04 +00:00
Mike Blumenkrantz 4c0fa2d381 big roundup commit fixing leaky submenus
SVN revision: 75973
2012-09-03 08:30:39 +00:00
Christopher Michael 4ac033b49c Illume Indicator. Remove some debugging printfs. Remove unused
handlers (for border show/hide). Add missing UNUSED for a function
parameter. Comment out useless gadcon function.



SVN revision: 68525
2012-02-28 23:05:06 +00:00
Carsten Haitzler 147659280f fix - dh... u are hieding a window in response to the hide4 event FOR
that window... thus generating another event saying it was hidden..
thus responding to that event... infinitely looping.. and allocating
an event queue from hell! (ie event queue just keeps getting filled up
by itself with no end). fixed.



SVN revision: 68139
2012-02-20 04:25:03 +00:00
Carsten Haitzler 515819cdb5 make all zone matching agree on the same convention - use zone->num,
not zone->id. zone->id is for matching u to zinerama/xrandr
screens/outputs. e re-sorts based on highest res screens first, lower
res later.



SVN revision: 67951
2012-02-15 04:35:18 +00:00
Christopher Michael 3d1e0180a2 Illume: Remove the popup. It's not needed now.
NB: Once again, the Old Man is correct ;)



SVN revision: 67773
2012-02-08 22:57:07 +00:00
Mike Blumenkrantz 5a249be7bb OMG! DEVILHORNS USING AN EDITOR WITH TABS INSTEAD OF WHITESPACES????? SAY IT AIN'T SO!!!
SVN revision: 64906
2011-11-07 23:30:27 +00:00
Christopher Michael 1b11d42da9 E: Illume Indicator: Add lock focus_in/out (needed for recent changes
in e_border code so that indicator window does not get focus).



SVN revision: 60784
2011-06-28 23:43:36 +00:00
Christopher Michael 8f026c852a When we are done dragging the indicator window, update it's geometry
on the zone.



SVN revision: 56383
2011-01-29 20:34:19 +00:00
Christopher Michael a19942672d Fix illume-indicator window leaving a 'black bar' behind ... when Comp
module is enabled. The previous fix worked without Composite module
just fine, but did not account for the way that Composite works. This
fix works in both cases, with Composite and without.

Thanks to Jeff Hoogland for bringing that to my attention ;)



SVN revision: 56229
2011-01-20 00:05:52 +00:00
Christopher Michael 2d54241316 Fix illume indicator for Klaus Kurzmann of SHR. The recent addition of
using a popup on the indicator (so that systray worked) apparently
broke things wrt full-screen apps in that the indicator would hide,
but left behind a black window. This commit fixes the issue...when we
'hide the indicator' (via illume2 message), we trap the ecore_evas
hide event and also hide the popup (same for show).

Klaus, I tested this and the issue is gone now. Let me know if you
have any other propblems.



SVN revision: 55133
2010-12-02 08:20:32 +00:00
Christopher Michael 3ea8084f72 Use a variable to hold 'height' rather than recalc all the time.
SVN revision: 54054
2010-10-30 19:24:54 +00:00
Christopher Michael a2bf209842 NB: This commit for Tasn; getting systray to work with
illume-indicator ;)

Systray:
  - Do NOT assume we are drawing to the desktop if we are not a shelf;
rather, get the ecore_x_window of the gadget containers evas.

Illume-Indictor:
  - Use a popup window on the indicator window so that systray module
can work with illume-indicator.

Illume:
  - Add some traps in case e_border_name_get does not return something.



SVN revision: 54052
2010-10-30 19:05:48 +00:00
Christopher Michael 4185513963 Add start of notification support.
SVN revision: 51629
2010-08-25 03:42:50 +00:00
Christopher Michael c91b95cb1d We already have the border, so pass it directly.
SVN revision: 50895
2010-08-08 11:13:27 +00:00
Christopher Michael bc044485c5 Better handling of mouse pointer changes. Only change to the 'move'
cursor if we are actually dragging.



SVN revision: 50886
2010-08-07 03:26:30 +00:00
Christopher Michael 163765a3cd Fix rare condition where mouse pointer would not reset from 'move'.
SVN revision: 50209
2010-07-13 00:05:39 +00:00
Cedric BAIL c6a118d738 * e: remove warning due to Ecore API change.
SVN revision: 49833
2010-06-24 16:19:12 +00:00
Christopher Michael 3c7e8c8152 Remove unused border_hook variable and code.
SVN revision: 49580
2010-06-08 20:02:56 +00:00
Christopher Michael 3355960511 Set skip_winlist...recent changes made these windows show up in the
main menu under Windows...



SVN revision: 48828
2010-05-13 21:35:45 +00:00
Christopher Michael 5a71db9083 Tell quickpanel to hide when we start dragging.
SVN revision: 48682
2010-05-08 15:34:12 +00:00
Christopher Michael 47ed226540 Fix indicator scaling to work better.
SVN revision: 48181
2010-04-20 20:11:48 +00:00
Christopher Michael 091525735f Fix gadgets getting added to center.
SVN revision: 48155
2010-04-20 01:32:34 +00:00
Christopher Michael bea9ca8d63 Raise/Show the existing Set Contents dialog if needed.
SVN revision: 48134
2010-04-19 15:51:43 +00:00
Christopher Michael 2cf29060cd Use new quickpanel toggle functions.
SVN revision: 47936
2010-04-11 20:37:29 +00:00
Christopher Michael 8bf1abea6f Add ability to set indicator height...requested by TAsn (Freerunner
project).



SVN revision: 47709
2010-04-02 17:07:28 +00:00
Christopher Michael 8294b889c5 Add handler for zone_move_resize so we can adjust minimum width of
indicator when zone size changes.



SVN revision: 46599
2010-02-27 19:41:59 +00:00
Carsten Haitzler 4513a24797 no more round trips! bad bad bad!
SVN revision: 46459
2010-02-25 12:26:10 +00:00
Christopher Michael e39cd7f5fb Make indicator work again wrt Scale changes.
SVN revision: 46377
2010-02-23 01:22:05 +00:00
Christopher Michael c5a9761839 No need to set zone here.
SVN revision: 46364
2010-02-22 20:38:11 +00:00
Christopher Michael 0006745e2f Readd new illume2 code (ugg, svn is a pita) ;)
SVN revision: 46290
2010-02-19 03:00:58 +00:00
Christopher Michael 581ada3a3f Remove old illume2 code.
SVN revision: 46285
2010-02-19 02:30:01 +00:00
Christopher Michael fc92b9a9dd Don't set lock_user_location unless we are setting zone.
Remove useless function calls.



SVN revision: 46055
2010-02-10 17:23:15 +00:00
Christopher Michael 3e0530d2b2 Cannot enable instant edit just yet. Causes problems w/ our event window.
SVN revision: 45933
2010-02-06 15:49:47 +00:00
Carsten Haitzler 83667835bc oh and make indicator instant-edit...
and... better illume-home config with comp enabled...



SVN revision: 45892
2010-02-05 06:17:17 +00:00
Christopher Michael c23d487d74 Seems we cannot set the window type (for indicator) until After the window
is shown, else E just overwrites whatever type we set.



SVN revision: 45764
2010-02-01 06:54:34 +00:00
Christopher Michael 03805afd4f New indicator & softkey modules with lots of comments, an edc that gets
compiled when the module is built, and cleaner code.



SVN revision: 45637
2010-01-27 20:04:32 +00:00