Commit Graph

38 Commits

Author SHA1 Message Date
Rafael Antognolli 5ba83e3cdc ecore/wayland: Don't reset cursor theme on every mouse move.
The cursor theme just needs to be updated on mouse in/out events.
Otherwise, if it is explicitly hidden by something else, it will become
visible again after another mouse move event.

SVN revision: 78970
2012-11-07 16:11:20 +00:00
Rob Bradford acbf60bbb2 Ecore_Wayland: Update to changed direction
Positive and negative have been switched so we no longer need to invert
ourselves.

Patch by: Rob Bradford <rob@linux.intel.com>



SVN revision: 78136
2012-10-17 21:50:31 +00:00
Christopher Michael aae18b4dd9 Ecore_Wayland: More fixes for recent wayland changes.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 78056
2012-10-16 11:57:25 +00:00
Christopher Michael b90b94709a Ecore_Wayland: Change Input to use wl_registry functions and not
wl_display_bind.

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

SVN revision: 78054
2012-10-16 11:57:19 +00:00
Sebastian Dransfeld 89d1fdb265 ecore_wayland: Remove unneeded header
Already included by ecore_wl_private.h

SVN revision: 77548
2012-10-06 17:10:58 +00:00
Sebastian Dransfeld b111a5046e ecore_wayland: Make modifiers correctly at once
SVN revision: 77546
2012-10-06 15:58:27 +00:00
Sebastian Dransfeld a91fd04ead ecore_wayland: Use correct modifier flags
Events should use ECORE_EVENT_MODIFER_* flags...

SVN revision: 77534
2012-10-05 13:46:35 +00:00
Christopher Michael e7d8ab323c Ecore_Wayland: Add Copy-n-Paste support for Ecore Wayland.
NB: Based on initial work from Alex <zhiwen.wu@intel.com> (thanks for
the patch), but modified to clean up compiler warnings, fixed function 
declarations, fixed function namespacing.



SVN revision: 75809
2012-08-29 06:35:02 +00:00
Christopher Michael b47d9a1ce4 Ecore (Wayland): Work around bug in terminology ;) by making sure that
a Tab, when pressed, sends the proper key string.



SVN revision: 75617
2012-08-23 11:25:45 +00:00
Christopher Michael 0ef94e328e Ecore_Wayland: small patch from Alex wu <zhiwen.wu@linux.intel.com> to
implement touch events in ecore_wayland.



SVN revision: 75556
2012-08-22 15:53:29 +00:00
Christopher Michael 89fe05d03a Ecore_Wayland: Add some trapping to make sure we have a valid window
before trying to read a window id.



SVN revision: 75374
2012-08-17 08:52:35 +00:00
Christopher Michael 1278ec57bf Ecore_Wayland: If user tries to set a cursor name, but this cursor
does not exist in the current theme, then fallback to default left
pointer image.



SVN revision: 75315
2012-08-16 09:53:05 +00:00
Christopher Michael 6423de3f17 Ecore_Wayland: Fix always resetting the wayland pointer surface to
default when we get a mouse move. Now we will store the current
cursor, so it can be restored later (this is part of a bug fix for
#1293).



SVN revision: 75312
2012-08-16 09:37:52 +00:00
Christopher Michael a5e2b68c69 Ecore_Wayland: Add keyrepeating support :) Fixes ticket #1292
This commit adds support to efl applications (elm) under wayland so
that they can get key repeats. All of this is internal and does not
require the application to do anything, which means the elm test for
notepad now works with repeating keys.



SVN revision: 75037
2012-08-09 09:57:47 +00:00
Christopher Michael ac4eb64015 Ecore (Wayland): Patch from Robert Bradford to check for valid
surfaces for events received from Wayland where the surface has
already been destroyed.



SVN revision: 74847
2012-08-03 13:27:05 +00:00
Christopher Michael cc6d6f0091 Ecore_Wayland: Use libxkbcommon function to map keysym to unicode
charachters.

Patch from Robert Bradford. Fixes ticket #1105



SVN revision: 74780
2012-08-02 06:43:20 +00:00
Christopher Michael 3e61fd8917 Ecore_Wayland: Test for a valid surface before we try to process the
pointer_enter event.



SVN revision: 74419
2012-07-26 07:23:32 +00:00
Christopher Michael a32308d4e8 Ecore_wayland: Fix calls to update_modifier state and pass the proper
paramaters. Only set input & opaque regions during resize.



SVN revision: 74325
2012-07-23 14:04:17 +00:00
Christopher Michael 5ef3b00eaf Ecore_Wayland: Updates to work with latest Wayland:
Add pointer frame callback. Add pointer surface listener.
  Use doubles for input surface position.
  Fix dnd function prototype to use wl_data_offer now.
  Fix dnd_add function to not use proxy_create anymore.
  Fix regression where window resizing down would leave artifacts.
    - Need to update the window allocation size before attaching the
new buffer.
  Fix set_transient & set_popup to use the parent surface, not the
shell surface.



SVN revision: 73254
2012-07-04 07:16:29 +00:00
Christopher Michael 0c4febd6f2 Ecore_Wayland: Patches from Rob Bradford to fix ticket(s): 1030 & 1031
Ecore_Wayland: Drop the unused timestamp from the configure event
Ecore_Wayland: Port to updated Wayland API
The cursor on the pointer is now a Wayland surface rather than a buffer.



SVN revision: 72381
2012-06-18 10:48:29 +00:00
Christopher Michael 19e75367b0 Ecore_Wayland: Patch from Rob Bradford to add missing NULL checks for
ecore_wl_input.



SVN revision: 71957
2012-06-11 17:11:38 +00:00
Christopher Michael a4114e2aa8 Ecore_Wayland: Patch from Rob Bradford <rob@linux.intel.com> for
updating axis events to be fixed point numbers.



SVN revision: 71756
2012-06-06 14:10:43 +00:00
Christopher Michael f636cb730c Ecore_Wayland: Add patch from Rob Bradford <rob@linux.intel.com> to
enhance keyboard input handling.

* Associate the keymap with the input device rather than the display
since you could could have different keymaps associated with different
devices.

* Increase the size of character arrays used for the string
representations of
the keyname, keysym and for the string representing the key.

* Re-enable the code that converts the keysym to a printable
definition - this
is required where the keysym is not the same as the printable definition



SVN revision: 71750
2012-06-06 13:20:02 +00:00
Christopher Michael 0f378c9331 Ecore_Wayland: Use the input's pointer_enter_serial instead of
timestamp for setting pointer image.



SVN revision: 71748
2012-06-06 12:55:53 +00:00
Rob Bradford b170d36865 Ecore_Wayland: Update to latest wayland git and add support for keymap
& modifier change(s). Also, add patches from Rob Bradford
<rob@linux.intel.com> for basic support for setting wayland cursor:

From c5d9094f4792bf7375c216682947de334002cdad Mon Sep 17 00:00:00 2001
From: Rob Bradford <rob@linux.intel.com>
Date: Tue, 29 May 2012 16:35:01 +0100
Subject: [PATCH] Ecore_Wayland: Add basic support for setting the cursor

* Add api to the ecore_wl_input_ namespace to allow setting the buffer
to use
for the pointer and for loading a named cursor from a cursor theme.
Under the
Wayland protocol the cursor is associated with the input device.

* Add helper functions to ecore_wl_window to set the cursor based on the
active pointer input device for the window.

* Load the cursor theme when the SHM interface is ready and provide an
API
call to provide a wl_cursor for a given name.

* Add API to restore to the default cursor and then use that when the
pointer
enters the surface to ensure compliance with the Wayland protocol.

Cheers :)



SVN revision: 71734
2012-06-06 08:18:58 +00:00
Christopher Michael c88aa2ff08 Ecore_Wayland: Add patch from Alex Wu <zhiwen.wu@linux.intel.com> for
changing Ecore_Wayland input to match current Wayland git (wrt wl_set
changes).

Thanks Alex :)



SVN revision: 71306
2012-05-22 08:17:30 +00:00
Christopher Michael 14681a29cf Ecore_Wayland: Update ecore_wayland to work with recent wayland git:
This commit also includes patch(s) from Robert Bradford
<robert.bradford@intel.com> for Supporting vertical/horizontal
scrolling, and updates to wayland fixed point for input events.

Fix ecore_wl_input to use new libxkbcommon api.
Add new surface_enter/leave listener for ecore_wl_window.



SVN revision: 71107
2012-05-15 11:58:21 +00:00
Christopher Michael 86cc4ef357 Ecore_Wayland: Patch from Robert Bradford (rob@linux.intel.com) for
Complete support for keyboard events. Thank You :)

NB: This is a modified patch from what Rob originally sent. This fixes
formatting, uint32_t types, function name, and other such things ;)



SVN revision: 70672
2012-05-02 18:04:40 +00:00
Christopher Michael 0a889a10c5 Ecore_Wayland: Cleanup header inclusions. Fix issues with efl wayland
clients not moving or resizing properly with most recent git wayland.
Make use of wayland's new 'serial' stuff in place of timestamps (where
appropriate). Add code to handle new wayland 'ping' events.



SVN revision: 70443
2012-04-24 16:59:35 +00:00
Christopher Michael fc0ec643ca Ecore_Wayland: Update ecore_wayland client code to handle using
'serial' rather than timestamp. Trap in ecore_wl_screen_size_get for
the case where display->output is NULL.



SVN revision: 70282
2012-04-17 21:55:25 +00:00
Christopher Michael ccb5d642bd Ecore_Wayland: Update to latest wayland from git.
SVN revision: 70280
2012-04-17 19:06:23 +00:00
Christopher Michael 5d4554996f Ecore_Wayland: Rework ecore_wayland to match current wayland git wrt
pointer grabs, shm_pool interface. Rename fields of the
wl_event_mouse_in/out structures to match other ecore event structs.
Add API functions for getting a list of outputs, for getting a windows
shell_surface, and for setting a windows parent.



SVN revision: 69997
2012-04-10 17:00:56 +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 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 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 5a989f5d82 Ecore_Wayland: Fix resize animation (little arrow @ bottom) not
showing up.



SVN revision: 68523
2012-02-28 22:51:01 +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