Commit Graph

95 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
Carsten Haitzler 4b856da2db use just pixels in slider label (size is already in title) 2013-11-13 23:16:29 +09:00
Iván Briano d739c009d3 Fix shelf autohide config 2013-10-02 23:19:59 -03:00
Mike Blumenkrantz cf1ccd32f2 things that grind my gears: when my shelf config dialogs don't have check changed 2013-06-19 08:27:00 +01:00
Mike Blumenkrantz af121b1da0 fix shelf config stacking options 2013-06-10 10:35:54 +01:00
Mike Blumenkrantz f36ecd9d3d giant comp rejiggering commit #2: popups are now objects drawn directly onto the compositor canvas with no xwindows of their own
* added a number of new e_comp functions and macros

* options for disabling effects on objects: this option does not currently have any effect

* all modules which used gadcon popups have been adjusted

* all modules which used input windows to detect close events for gadcon popups have been adjusted to use new popup autoclose functionality

* shelves are now always drawn on the compositor canvas, meaning objects will never get clipped by the shelf (ticket #1810)

* shelves no longer have an event object

SVN revision: 84060
2013-02-18 13:43:47 +00:00
Miculcy Brian cc6581a8f9 Shelf option 'overlapping' made clearer and disabled when window automatic movement on shelf hide isn't set.
SVN revision: 82871
2013-01-16 09:56:50 +00:00
Mike Blumenkrantz 9e8e755cdf formatting: all at once
SVN revision: 82625
2013-01-11 10:34:29 +00:00
Mike Blumenkrantz b393de2eaa fix shelf autohide on click
ticket #2051


SVN revision: 81362
2012-12-19 13:59:36 +00:00
Mike Blumenkrantz 602c4dd07a change shelf style during config while gadcon is unpopulated for a small speedup, also fixes crash when changing size and style
ticket #2048


SVN revision: 81332
2012-12-19 09:18:11 +00:00
Mike Blumenkrantz adae1d9000 prevent shelf artifacts when re-creating shelf after config
ticket #2005


SVN revision: 81224
2012-12-18 09:20:32 +00:00
Sebastian Dransfeld 436323bf59 e: cleanup layer handling
It seems people put random numbers as layers, so it is better to define
available layer numbers.

This patch also puts popups below fullscreen windows, as it sucks to get
popups during presentations. A better solution is maybe to put popups
above fullscreen, but have a presentation mode to put fullscreen windows
above popups?

SVN revision: 77293
2012-10-02 08:54:35 +00:00
Mike Blumenkrantz 4e779975f9 rename E_LIST_HANDLERS_APPEND to E_LIST_HANDLER_APPEND, also add E_LIST_FOREACH
SVN revision: 76951
2012-09-21 09:23:07 +00:00
Mike Blumenkrantz 2b41e37c30 const cleanup
SVN revision: 76530
2012-09-12 13:39:43 +00:00
Mike Blumenkrantz 3eb3b755ea fix crashing when shelf config dialog is open and orientation is changed using a menu and then shelf config is changed and applied from the config dialog
SVN revision: 76376
2012-09-10 08:23:38 +00:00
Mike Blumenkrantz a9dd95b2c4 fix crash when changing settings in shelf config dialog which causes the shelf to be re-created
SVN revision: 76347
2012-09-08 19:43:45 +00:00
Mike Blumenkrantz c61c107346 shelves now only watch all mouse events when autohide is set since a static shelf doesn't need to care about it; this will save some amount of cpu I guess
this also breaks the use of e,state,focused programs on non-autohiding shelves, but nothing I'm aware of has ever used this, sooooooo :)
also probably fixes ticket #1467


SVN revision: 76320
2012-09-07 18:59:43 +00:00
Mike Blumenkrantz eefe608050 use better codepath for refreshing shelf after config has changed
ticket #1465


SVN revision: 76312
2012-09-07 14:02:33 +00:00
Mike Blumenkrantz a8beb0950c fix usage of PATH_MAX when not working with files
SVN revision: 75518
2012-08-22 07:02:41 +00:00
Mike Blumenkrantz 5f00002f42 fix stringshare misuse
SVN revision: 72866
2012-06-26 10:03:01 +00:00
Vincent Torri c3b0637802 e17: whitespaces--
SVN revision: 72561
2012-06-21 06:19:43 +00:00
Cedric BAIL 2d0970da9a e: warning--.
SVN revision: 70751
2012-05-04 02:34:56 +00:00
Viktor Kojouharov 6e67afe9e3 allow settings the shelf layer to 'below windows', if it was 'below everything'
SVN revision: 64212
2011-10-20 22:05:16 +00:00
Christopher Michael a0a0b42146 E: No need to store static lists of borders, comps, shelves, etc.
Those static lists were only used in config dialogs, so they are not
'required' to be static and existing while E is running. The config
dialogs can just call the e_theme_*_list functions when they need to.

NB: This reduces E's memory footprint !! :)



SVN revision: 63529
2011-09-22 04:05:55 +00:00
Hannes Janetzek 7f457f1911 e17: add option to have gadcon client settings menu in toplevel again.
added e_menu_item_new_relative(E_Menu, E_Menu_Item *rel) which appends 
 new item to rel or prepends it when rel is NULL.

changed e_gadcon_util_client_menu_append to to take only the gadget menu
 and returns the new toplevel menu that should be shown by gcc
 depending on the setting this is a new menu with gadget menu as submenu
 or the gadet_menu with gadget menu items appended

updated e-modules-extra comes in a minute


SVN revision: 57826
2011-03-17 17:08:36 +00:00
Mike Blumenkrantz 572ed90432 more uninitialized values
SVN revision: 56148
2011-01-16 01:22:41 +00:00
Mike Blumenkrantz e5a657580a prevent garbage value determining flow if list is null
SVN revision: 56147
2011-01-16 01:20:38 +00:00
Christopher Michael 20c922e047 Remove unused function(s).
SVN revision: 51341
2010-08-18 20:30:23 +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 dbf68af02f Fix shelf settings dialog always resetting the shelf style to
'alternate'.



SVN revision: 49121
2010-05-22 02:52:05 +00:00
Hannes Janetzek 9b1d74ccf9 fix warnings
SVN revision: 48500
2010-05-01 13:26:32 +00:00
Miculcy Brian 1972ad7589 reorder options
SVN revision: 48394
2010-04-28 14:58:27 +00:00
Christopher Michael 536b1c6575 Center shelf config dialog.
SVN revision: 47884
2010-04-09 19:09:42 +00:00
Christopher Michael 8c7e0d1631 Better Shelf Config dialog. Works in smaller resolutions now :)
SVN revision: 47882
2010-04-09 17:58:23 +00:00
Sebastian Dransfeld 288ba85026 No point in setting binding in config
These bindings are not saved, and we don't want them saved

SVN revision: 45370
2010-01-20 22:36:34 +00:00
Sebastian Dransfeld bdb1f669e6 Fix compiler warnings
SVN revision: 45180
2010-01-15 12:01:06 +00:00
Sebastian Dransfeld 6e96d85186 free list
SVN revision: 45139
2010-01-14 22:10:38 +00:00
Sebastian Dransfeld de275b5a85 Make selected desktops show in advanced config
e_widget_ilist_count does not work as it did, as it
e_widget_ilist_multi_select only queues commands and the change is not
instant. Add own counter for ilist position.

Also set pointer for config desk_list to new list on apply.

SVN revision: 45138
2010-01-14 22:10:28 +00:00
Sebastian Dransfeld 91a1ce39cb formatting
SVN revision: 45137
2010-01-14 22:10:17 +00:00
Sebastian Dransfeld 2392772af4 formatting
SVN revision: 45136
2010-01-14 22:10:00 +00:00
Christopher Michael 9d4f41fe94 Use PATH_MAX instead of 4096.
Fix some formatting issues.



SVN revision: 44897
2010-01-04 21:39:07 +00:00
Viktor Kojouharov b6ec16d97e hide edge event windows that are not used by any action
put the edge windows on the correct layers
allow edge click bindings
use actions for auto-hide shelves
toggling auto-hide will cause edge event windows to show/hide if necessary


SVN revision: 42864
2009-10-02 20:53:05 +00:00
Christopher Michael 6ab63682dd Fix API Inconsistency in regards to e_widget_min_size_* . Renamed to
e_widget_size_min_* . This Large commit should fix everything in svn that is
using those functions.



SVN revision: 42152
2009-09-01 13:34:42 +00:00
Cedric BAIL f8c05999e4 * e: Cleanup use of Eina data structure.
Patch from Peter van de Werken <pwerken-e@a-eskwadraat.nl>.


SVN revision: 41916
2009-08-21 15:08:49 +00:00
Christopher Michael c71049539c Formatting.
SVN revision: 41485
2009-07-24 01:56:00 +00:00
Gustavo Sverzut Barbieri be6a6ba639 improvements to e_border positioning.
* e_border_center() will center window in a better way, accounting
   the shelves/panels instead of just centering on the screen. This is
   better and most noticeable if screens are small and a big shelf on
   just one edge.

 * e_border_move_without_border(), e_border_resize_without_border()
   and e_border_move_resize_without_border() will assume the given
   values do not acount border/decorations (client_inset) and will do
   automatically. As stated in documentation, this is specially useful
   when it is a new client and thus have no decorations when it is
   positioned, when decorations are added window would be placed at
   wrong position. One can try this by adding efwin window overflowing
   the bottom-right corner, closing it and when reopen fileman would
   try to make it inside the screen, this would not work well with
   part of the window still being outside.

 * e_win_move(), e_win_resize() and e_win_move_resize() will now use
   new e_border functions.



SVN revision: 40307
2009-04-23 02:24:59 +00:00
Gustavo Sverzut Barbieri 8638cc125a shelf style previews are now smaller
SVN revision: 40169
2009-04-18 14:03:31 +00:00
Gustavo Sverzut Barbieri ce2009b32b list of autohide-dependent widgets should not be global.
SVN revision: 40165
2009-04-18 13:47:29 +00:00
Gustavo Sverzut Barbieri c0365b4b2d shelf "shrink to contents" is not related to its size.
SVN revision: 40164
2009-04-18 13:43:05 +00:00
Gustavo Sverzut Barbieri 3aae39faec fix shelf autohide after changing its settings in advanced mode.
shelf should be hidden if it was recreated (restart == 1) and autohide
is set.



SVN revision: 40127
2009-04-17 03:15:27 +00:00