Commit Graph

44 Commits

Author SHA1 Message Date
Carsten Haitzler e8ca66527a e wl - fix randr fully to not even init if managed
@fix
2020-11-10 11:37:09 +00:00
Carsten Haitzler a9a877feca wl x11 - if managed stop randr from doing its thing as it conflicts
randr goes and resizes the e window to mach screen setup - wrong if
managed., so if managed call the new stop which shuts down randr

@fix
2020-11-10 11:17:59 +00:00
Carsten Haitzler 6ff9b5545f e wl - fix init checking to see if its managed or not properly...
check if ecore_x_window_prop_window_get == 1 to know if its managed...
and u have to check the window it points to and check it has a
property on it too that has itself as the win id...

@fix
2020-11-10 10:53:27 +00:00
Christopher Michael c82f6e81d1 wl_x11: Fix wrong return value on function that does not return bool....
Read the API. Returns INT ...

Also, you're already getting root so create randr canvas_new with that
first.,.. then check that Root is 'managed'...
2020-11-09 21:28:32 -05:00
Elyes HAOUAS 28080ccc04 tree-wide: get rid of trailing whitespace (last part)
Remove trailing whitespaces

Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D11832
2020-05-14 14:17:19 +02:00
Carsten Haitzler 385a91841c meson opt - also match options change in core meson build 2019-07-12 14:14:28 +01:00
Carsten Haitzler 94f3cc4a2a meson - wl module builds - make them all consistent 2017-08-12 11:11:32 +09:00
Marcel Hollerbach 29901d67b2 meson: use file instead of doing the relative path by hand
a reason for doing that is that you can just pack together targets into
a array and pass them to our helper, and the helper will just handle
them, so even module with eldbus codegen etc is now supported.

This also means that we are just passing the src object directly into
the shared_module call, which means the user of our helper can just pack
everything he needs into the src var and the helper does not need to
know about it.
2017-08-08 18:38:37 +02:00
Carsten Haitzler 6ab9c576df meosn build modules - more modules build with the generic builder harness
module build files are so much simpler now...
2017-07-30 17:07:57 +09:00
Mike Blumenkrantz e8dc71cd48 meson. 2017-07-20 17:18:33 -04:00
Mike Blumenkrantz 118a70730f handle nested compositor delete requests
the previous implementation of this using ee callbacks broke during
elm integration since elm overrides all of those callbacks
2017-03-17 13:16:59 -04:00
Mike Blumenkrantz 4773dd7039 match wl_wl output sizing in wl_x11 when running in an existing wm session
global sizing policy++
2016-07-12 12:51:00 -04:00
Mike Blumenkrantz c6ef590e9e set x11 randr iface for wl_x11 based on wm presence, not composited state
fixes usage in non-composited x11 environments (eg. openbox)
2016-07-12 12:51:00 -04:00
Derek Foreman da23b852e7 Disable wayland dmabuf for the X11 backend
This is just too hard to get right and nobody will notice its
absence, so let's not bother for now (or ever, I hope)
2016-05-18 12:05:34 -05:00
Marcel Hollerbach a7c659e258 wl: remove useless calls to e_comp_wl_input_keymap_set
those calls are not needed anymore since they will be overriden by e_xkb
init which takes place a few calls later
2016-03-24 20:54:03 +01:00
JengHyun Kang bdb462e19f Set cached xkb context/keymap
Summary:
Set xkb context and keymap to Ecore_Drm.
         In enlightenment (used in wayland with drm backend), keymap is used only one.
         So for avoid unnecessary open keymap files, set cached context and keymap.
         But for this, enlightenment must compile keymap before init ecore_drm.
         So I changed booting sequence also.

Test Plan: Distinguish time between before and after during add a keyboard device.

Reviewers: raster, devilhorns, zmike

Subscribers: cedric, input.hacker, ohduna

Differential Revision: https://phab.enlightenment.org/D3504
2016-01-05 13:07:27 -05:00
Mike Blumenkrantz 1e615c9917 do not apply x11 randr iface in wl-x11 if running nested in x11
http://i.imgur.com/S7G0O96.gif
2015-12-10 11:54:50 -05:00
Mike Blumenkrantz a03f80a845 init ecore-x during wl-x11 init to ensure DISPLAY is set 2015-12-10 11:34:15 -05:00
Mike Blumenkrantz d4674aefb7 set title/name/class on wl-x11 output canvas window 2015-07-02 16:52:11 -04:00
Stefan Schmidt 8bbbd7a951 wl_x11: Mark data in callback as unused 2015-06-30 12:06:29 +02:00
Mike Blumenkrantz 8c223c0af4 remove E_Comp_Data reference from wl-x11 module
fix T2528
2015-06-29 13:42:14 -04:00
Chris Michael 379ea5b2f0 Fix call to e_comp_wl_input_keymap_set
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-18 09:21:03 -04:00
jhyuni.kang c59595e964 Support wl_touch and send wl_touch events to client
Summary:
Currently enlightenment-wayland support pointer and keyboard events.(in input)
         So I added EVAS_CALLBACK_MULTI_* event handler and hanling functions for wl_touch interface.
         This code send wl_touch events to client like a pointer event.

Test Plan:
In wayland + enlightenment environment, generate multi touch events.
           The enlightenment will be send wl_touch events to client.

Reviewers: raster, devilhorns, zmike

Reviewed By: devilhorns, zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2482
2015-05-13 12:05:57 -04:00
Chris Michael 0a94e8ba71 enlightenment: Make E build again with EFL from git
sed -i 's/EAPI/E_API/g'

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-07 15:13:10 -04:00
Mike Blumenkrantz 1eb6bb20b3 move canvas init after wl init in output modules
ensure that randr screens have been created
2015-04-22 21:20:57 -04:00
Mike Blumenkrantz 15540c01e4 use randr for screen setup in wl-x11 output module
enabling this module requires that e is linked against ecore-x to
allow screen management
2015-04-22 21:20:53 -04:00
Mike Blumenkrantz c9ff3b1434 create wl-x11 canvas using comp_x canvas creation method 2015-04-22 21:19:00 -04:00
Mike Blumenkrantz e1181c4d03 create e_comp during e_comp_init, set comp_type automatically
this simplifies comp creation slightly
2015-04-22 21:18:53 -04:00
Mike Blumenkrantz 24887ddccc move comp fake layer init into canvas init for non-X compositors 2015-03-20 15:12:59 -04:00
Mike Blumenkrantz 9986311035 move E_Comp->root window setting into e_comp_wl_init() for wl compositors 2015-03-20 15:08:28 -04:00
Mike Blumenkrantz 58447e9508 completely remove E_Manager
the final step in flattening all the canvas/screen apis
2015-03-19 16:53:32 -04:00
Mike Blumenkrantz 0ddedd09a4 wl compile fixes 2015-03-13 20:09:54 -04:00
Mike Blumenkrantz 1fe1c94245 comp canvas functions no longer require an E_Comp param 2015-03-13 16:07:08 -04:00
Chris Michael f69dcf9181 call e_manager_new with the proper root window so that keybindings on
the desktop work

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-04 12:33:04 -05:00
Chris Michael e266bfaa35 wl_x11: When creating the ecore_evas for wl_x11, use
ecore_evas_screen_geometry_get function and resize the ecore_evas
accordingly.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-22 10:06:26 -05:00
Chris Michael a8b4717fdf fix issue where wayland modules were always creating a new compositor
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-06 13:04:04 -05:00
Chris Michael 31e38208b4 wl-x11: Declare keyboard strings as NULL (initially) to avoid crash
when updating keymap

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-08-26 10:10:39 -04:00
Mike Blumenkrantz 3b649534c9 Fix building Enlightenment for X11-only, Wayland-Only, and X11 with Wayland clients.
Signed-off-by: Chris Michael <cp.michael@samsung.com>

Additional authors: Chris Michael <cp.michael@samsung.com>
2014-08-26 10:10:38 -04:00
Chris Michael 8bd30c9b98 pass the compositor ecore_evas to e_pointer_canvas_new
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-08-26 10:10:37 -04:00
Chris Michael 79599394da update various files for compositor structure changes
- X compositor
  - shell module
  - drm module
  - x11 module
2014-08-26 10:10:35 -04:00
Chris Michael f031705442 update wl_x11 and wl_desktop_shell for new compositor
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-08-26 10:10:35 -04:00
Chris Michael dfd14bc7d3 wl-x11: Include Ecore_X header
@bugfix: If we are going to be using ecore_x functions, we need to
include the Ecore_X header file

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-05-09 13:58:20 +01:00
Mike Blumenkrantz 5737103d67 wl pointers done-ish
pointers in E now come in two flavors, one for each protocol that we currently support. each is created from the owner compositor backend:

X pointers still work as usual

Wayland pointers are actually surfaces that we dump image data into periodically to render them as evas images

some small amounts of hack is necessary to make this work, namely blocking X pointers when a Wayland one is in use if we're running a multi-protocol compositor
2014-01-14 20:28:58 -05:00
Mike Blumenkrantz c268302e67 add wl_x11 output module
this is the first of the wayland output modules, and it is extremely simple as a result of the compositor rewrite. for any other wayland output modules, it should be enough to simply create an ecore_evas canvas and do startup in this way.
2014-01-14 20:28:57 -05:00