Commit Graph

28 Commits

Author SHA1 Message Date
Christopher Michael 62694fbf44 Ecore_Wayland: Add an API function which calls wl_display_iterate(readable).
Fix ecore_wl_window surface attach of the buffer for shm and egl types.

NB: This ensures that both efl/elm clients work under the Wayland
Compositor AND the E17 Compositor.

NB: The issue here is that clients (when run under the Wayland
compositor) need to make sure 'iterate' has
been called before creating surfaces so that the wl_compositor is
setup. However, the actual E17 Compositor will hang if 'iterate' is called
to early.



SVN revision: 69707
2012-03-29 01:26:30 +00:00
Christopher Michael 5d861aad45 Ecore_Wayland: Remove dependency on egl (handled in compositors).
Handle 'axis' events from multi-touch devices (also handles mouse
wheel).
Remove wl_buffer_damage calls (obsolete in newest wayland).

NB: This will require the 'latest' wayland code from their git repo as
of 2012-03-27.



SVN revision: 69672
2012-03-27 17:50:40 +00:00
Christopher Michael 7fd2403a1d Ecore_Wayland: Add doxy & since for dpi function.
SVN revision: 69670
2012-03-27 15:15:21 +00:00
Christopher Michael 4e42d802b8 Ecore_Wayland:
- Comment out display_iterate during intialize (hangs compositor
initialize).
- Simplify ecore_wl_flush routine and avoid possible hangs in
wl_display_roundtrip.
- Add function (for trip ;) ) to be able to return the screen dpi.
- Implement functions for input grab/ungrab.
- Set root.x/y in mouse events.
- Remove freeing of mouse_move event (already handled generically).
- Handle setting output mm width/height (for calc of dpi).
- Implement setting surface input & opaque regions.
- Implement popup windows.
- Implement ecore_wl_window_transparent_set function.
- Implement function to allow setting Ecore_Wl_Window type.
- Implement setting the wayland mouse pointer to an image (via
ecore_wl_window_pointer_set).
- Comment out wl_display_iterate during initialize (can cause hangs in
compositor).
- Simplify ecore_wl_flush (to avoid compositor hangs).



SVN revision: 69644
2012-03-27 02:13:34 +00:00
Christopher Michael fe3006163c Ecore_Wayland: Update ecore_wayland to match new events in todays
Wayland code.

NB: This will probably need updating again tomorrow, and again the day
after, etc, etc.



SVN revision: 69073
2012-03-09 02:36:00 +00:00
Christopher Michael 201bce2bb2 Ecore_Wayland: Remove free of the interfaces_bound event. Thanks Seb :)
SVN revision: 69063
2012-03-08 15:54:21 +00:00
Christopher Michael 3e9fe228aa Ecore_Wayland: Don't need to init egl here (just yet). Add an event
(interfaces_bound) to be raised when ecore_wayland has everything it
needs to function properly. (Used in the e17 wayland only code).



SVN revision: 69032
2012-03-07 21:46:52 +00:00
Christopher Michael 2ff608c90a Ecore_Wayland: Don't require a current surface to retrieve pointer
position as we may not have an active window when this is requested.



SVN revision: 68731
2012-03-05 16:50:20 +00:00
Christopher Michael 9c97695b5a Ecore_Wayland: Remove image_target_texture_2d (not used and requires
GL header which causes issues for E17 wayland only).



SVN revision: 68582
2012-03-01 17:25:54 +00:00
Christopher Michael 6cbf9fa01a Ecore_Wayland: Add ecore_wl_pointer_xy_get function.
SVN revision: 68576
2012-03-01 13:43:41 +00:00
Christopher Michael c03a4e19b4 Ecore_Wayland: Add some doxy & @since.
SVN revision: 68522
2012-02-28 22:31:27 +00:00
Christopher Michael f3cf8efe47 Ecore_Wayland: Refactor all the ecore_wayland code to improve running
EFL applications as Wayland Clients.

NB: This (along with the ecore_evas changes) fixes most (if not all) 
outstanding issues what I am aware of, including the nasty resize bug 
with wayland_egl.



SVN revision: 68515
2012-02-28 21:55:51 +00:00
Christopher Michael 274f4be555 Ecore (Wayland): Update include for xkbcommon (changed in git). Update
function calls for changes made to wayland.

NB: This makes ecore_wayland build again.



SVN revision: 68283
2012-02-22 18:38:04 +00:00
Christopher Michael c510ba8471 Ecore_Wl: Also send mouse move before sending mouse down/up. Add some
missing Logfn's. Add handler to free the mouse_move event when we're
done with it. Add a function to retrieve the 'last mouse button down
time' (needed for fixing surface move).



SVN revision: 67781
2012-02-09 08:15:10 +00:00
Carsten Haitzler 53c539ae55 ok 1 segv less. this code looks most suspicious...
SVN revision: 67671
2012-02-01 09:48:46 +00:00
Christopher Michael 8de10044b4 Ecore_Wayland: When handling wayland interfaces (during startup), we
cannot depend on the order in which the interfaces are given to us, so
we cannot create the data_device until we have both the input device
and the data_device_manager. Fix that.

Add more dnd code (not complete yet because frankly, the way Wayland
handles dnd & selection code is crappy, stupid, and difficult to
implement).



SVN revision: 67247
2012-01-16 19:10:33 +00:00
Christopher Michael 3b13af75a6 Ecore_Wayland: Some more work on getting drag-n-drop flushed out.
SVN revision: 67182
2012-01-13 09:33:33 +00:00
Christopher Michael dbe6f16717 Ecore_Wayland: Unbreak shm engine wrt shm_format.
Add more work on dnd code (incomplete still).

NB: We will need to add a method to request non-argb surfaces. For
now, all surfaces are argb.



SVN revision: 67180
2012-01-13 07:46:22 +00:00
Christopher Michael 5623ed37ce Ecore_Wayland: Oops, shm_format should be int. Also, flush display
output on close.



SVN revision: 67178
2012-01-13 06:34:40 +00:00
Christopher Michael 045294c189 Ecore_Wayland: Handle shm format iteration a bit better.
SVN revision: 67177
2012-01-13 06:30:27 +00:00
Christopher Michael 0216b83173 Ecore_Wayland: Add actual code to handle drag-n-drop (not complete
yet). Update shm_format to newer wayland ones.



SVN revision: 67176
2012-01-13 06:18:04 +00:00
Christopher Michael a2e9465376 Ecore_Wayland: Implement handling Touch Events.
NB: None of the touch code has been tested yet.



SVN revision: 67169
2012-01-13 01:26:52 +00:00
Christopher Michael 50110e14c6 Ecore_Wayland: Fix fd_handler to only listen on fd_read.
Add variable to store what button was pressed (part of focus issue
fixes).
Fix focus handling (see comments about wayland pointer focus).



SVN revision: 66994
2012-01-09 10:50:26 +00:00
Christopher Michael 1307fc636a Ecore_Wayland: Put mouse_up_send, mouse_down_send into their own
functions (makes it easier to call in code).
Some miscellaneous changes wrt fd_read & fd_write on the fd handler.



SVN revision: 66971
2012-01-08 11:29:04 +00:00
Christopher Michael 9a13801bab Ecore_Wayland: Fix mouse & focus send functions to support passing of
specific 'surface' and 'time'.
Add function (internal) to send a mouse_move (cleans up code).
Add event 'multi' stuff for mouse button down.
Fix handle_pointer_focus function to not send 'focus' events (handled
differently).
Fix handle_keyboard_focus function to actually send 'focus' to new
windows.

NB: This fixes most of the focus issues I was having earlier.



SVN revision: 66859
2012-01-04 08:27:31 +00:00
Christopher Michael 8fc45c6673 Ecore (Wayland): Add function to get current mouse position (screen
coords).
Rename some variables for clarity of their purpose.



SVN revision: 66807
2012-01-03 20:37:30 +00:00
Christopher Michael 795698cdbc Ecore_Wayland: Start work on drag-n-drop code (just a start, not
actually functional yet).

Implement the data device manager.
Implement the data device itself.
Fixes for shutdown so we destroy everything correctly (data device,
device manager, shell, etc).



SVN revision: 66581
2011-12-28 02:49:32 +00:00
Christopher Michael 627d39bfa2 Ecore: Add Ecore_Wayland (Wayland backend like ecore_x).
Ecore_Evas: Add 'drame_frame' functions.
Add ecore_evas_wayland code (for creating ecore_evas' in wayland).

NB: Merry Christmas EFL !!, Here is you're gift :)



SVN revision: 66542
2011-12-26 23:27:20 +00:00