Compare commits

...

72 Commits

Author SHA1 Message Date
Chris Michael f65a2beb04 fix formatting
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-17 05:21:28 -04:00
Chris Michael c7c3760953 remove debug messages for mouse in/out
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-17 05:18:39 -04:00
Chris Michael 7f23be6920 add checks in client focus/unfocus to test for wayland client
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-17 05:17:41 -04:00
Chris Michael 04d007085e add callbacks for client focus/unfocus
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-17 05:16:30 -04:00
Chris Michael 753c340399 add evas callback for client resize
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-17 04:47:57 -04:00
Chris Michael a851ac31af add evas callback for color_set
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-17 04:44:40 -04:00
Chris Michael e045e098f7 add evas callback for ping event
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-17 04:43:11 -04:00
Chris Michael 48bc5d470a add evas callback for kill request
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-17 04:41:32 -04:00
Chris Michael 37f0b2f7fd add evas callback for delete_request and fix printf warnings for
uint64_t

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-17 04:39:58 -04:00
Chris Michael e43cbf3e4c add evas callback for key up events
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 17:16:52 -04:00
Chris Michael 21d5c803f7 add evas callback for key down event
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 17:14:52 -04:00
Chris Michael 379bbdaec3 add evas callbacks for mouse wheel event
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 17:13:15 -04:00
Chris Michael f7a905a836 add evas callbacks for mouse up event
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 17:11:43 -04:00
Chris Michael 8bafbf0b3f add evas callback function for mouse down event
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 17:10:01 -04:00
Chris Michael 0d56cf5662 add evas callback for mouse move on a surface
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 13:08:22 -04:00
Chris Michael 9fbe869498 add evas callback for mouse out on a surface
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 13:06:24 -04:00
Chris Michael ec91cda58c remove some debug messages
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 13:00:26 -04:00
Chris Michael b567bbc339 add callback for mouse in on the client.
Fix improper tiler_clear in surface_commit function.
Add fast-path in surface commit to skip processing regions & damage if
the client is not visible.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 12:56:40 -04:00
Chris Michael a74cc7067e add hook for evas callback hide so we can hide any video children
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 12:28:37 -04:00
Chris Michael 5ca6814cc1 add hoook for evas show callback and show any video childs
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 12:25:59 -04:00
Chris Michael 59c9f5f89f fetch pixmap id in opaque & input region set functions
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 12:20:44 -04:00
Chris Michael 4b251d783c add listener for comp_object_add event so we can setup evas callbacks
for a client.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 12:18:50 -04:00
Chris Michael 3f2b228715 fix typo
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 11:44:46 -04:00
Chris Michael 06cce58dee update todo
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 11:39:41 -04:00
Chris Michael d1eb4efb9b cleanup any pending input regions when we delete the client
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 11:39:03 -04:00
Chris Michael fa54829913 cleanup any pending opaque regions when we delete the client
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 11:38:39 -04:00
Chris Michael cfca760b59 cleanup any remaning damage rectangles when we delete the client
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 11:37:45 -04:00
Chris Michael 3d0298f411 add some comments about fetching resource data
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 11:32:13 -04:00
Chris Michael 5d6b5a4d47 update resource data comment
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 11:29:25 -04:00
Chris Michael f934b05fb1 add code to handle pending input regions during surface commit
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 11:26:18 -04:00
Chris Michael 55032dd3f1 add code to handle pending opaque regions during surface commit
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 11:25:51 -04:00
Chris Michael 6dc40f5dc5 add code to handle pending damages during surface commit
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 11:24:59 -04:00
Chris Michael c42b2df50e add code to handle setting surface input region
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 11:24:03 -04:00
Chris Michael 88533db92b add code to handle setting surface opaque region
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 11:23:41 -04:00
Chris Michael 096cfb14bb Add code to handle setting surface damages
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 11:22:58 -04:00
Chris Michael 8a78f31cf3 add code to handle regions (creating, destroying, setting)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 11:21:33 -04:00
Chris Michael 938e5dfd4b change damages to be a list
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-16 11:21:12 -04:00
Chris Michael fbe78bea04 Start on surface commit code and improve some debugging messages
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-15 10:44:10 -04:00
Chris Michael 9a30ff4fa1 add internal function prototype for surface commit
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-15 10:43:55 -04:00
Chris Michael 8cd8e4e313 add hooks for client delete
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-15 08:07:56 -04:00
Chris Michael 76e1c8e953 add code to hook the client new event
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-15 08:01:14 -04:00
Chris Michael da2049b052 Add code to create the clients window hash
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-15 06:57:16 -04:00
Chris Michael dea5237a9b Implement code for surfaced attach
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-15 06:54:45 -04:00
Chris Michael a914c73c63 Fix compile errors. Implement start of buffer code
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-15 06:53:45 -04:00
Chris Michael a76224c464 unset pixmap resource when surface resource is destroyed
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-15 02:47:56 -04:00
Chris Michael 4ae74022b5 add call to delete fd handler when we close the compositor
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 17:46:07 -04:00
Chris Michael 8064450f0f add start of surface implementation code
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 17:44:56 -04:00
Chris Michael 6a1762eca0 remove debug noise in comp_wl_data
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 17:29:25 -04:00
Chris Michael 58ada81ee3 rename surface signal get function
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 15:49:53 -04:00
Chris Michael 8987766a87 start on actual compositor interface code
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 15:17:56 -04:00
Chris Michael 4cdac5d4ef Fix printing of wayland log output
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 15:12:17 -04:00
Chris Michael dda7ac875f Fix missing variable compiler warning
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 14:57:22 -04:00
Chris Michael c241e6a928 add call to shutdown Ecore_Wayland
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 14:53:06 -04:00
Chris Michael d91ebb709b add code to initialize Ecore_Wayland
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 14:52:20 -04:00
Chris Michael bca192e51d set compositor wayland data
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 14:50:58 -04:00
Chris Michael 85548eeb9e add code to setup input & keyboard if we are using an X compositor
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 14:50:27 -04:00
Chris Michael dba6cf2be5 add code to initialze input
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 14:49:05 -04:00
Chris Michael 86e1444725 add code to initialize data manager
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 14:47:32 -04:00
Chris Michael 8258a6b3b8 add code to load desktop shell module
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 14:44:21 -04:00
Chris Michael edf004bbf4 add code to integrate wayland event loop with ecore_main loop
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 14:40:02 -04:00
Chris Michael 7a40ee2674 add function call to initialize shm
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 14:21:48 -04:00
Chris Michael 3ac71aa20c rename compositor delete callback
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 14:21:02 -04:00
Chris Michael d9f920721a add code to create and bind the wayland compositor
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 14:20:33 -04:00
Chris Michael a6f3eb35ac add code to setup wayland compositor signals
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 14:13:22 -04:00
Chris Michael a1c5075dc8 add code to create wayland display socket
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 14:12:32 -04:00
Chris Michael 213e20c864 add code to create new wayland display
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 14:09:58 -04:00
Chris Michael c7d87c1631 add code to setup wayland logging function
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 14:07:38 -04:00
Chris Michael 2c987f146b add functions to create new compositor
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 14:03:15 -04:00
Chris Michael 933b1f68b5 set comp_gl if we have the correct engines available
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 13:53:25 -04:00
Chris Michael be9161369c add start of new compositor
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 13:52:26 -04:00
Chris Michael 5613d508f0 remove useless return
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 13:33:08 -04:00
Chris Michael ce8a7e21ce remove old wayland compositor file
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-14 12:31:15 -04:00
3 changed files with 1037 additions and 2663 deletions

File diff suppressed because it is too large Load Diff

View File

@ -244,7 +244,7 @@ struct _E_Comp_Wl_Client_Data
E_Comp_Wl_Buffer *buffer;
struct wl_listener buffer_destroy;
Eina_Bool new_attach : 1;
Eina_Tiler *damage;
Eina_List *damages;
Eina_Tiler *input;
Eina_Tiler *opaque;
} pending;
@ -271,9 +271,10 @@ EINTERN void e_comp_wl_shutdown(void);
EINTERN struct wl_resource *e_comp_wl_surface_create(struct wl_client *client, int version, uint32_t id);
EINTERN void e_comp_wl_surface_destroy(struct wl_resource *resource);
EINTERN Eina_Bool e_comp_wl_surface_commit(E_Client *ec);
EINTERN void e_comp_wl_buffer_reference(E_Comp_Wl_Buffer_Ref *ref, E_Comp_Wl_Buffer *buffer);
EAPI struct wl_signal e_comp_wl_surface_signal_get(E_Comp *comp);
EAPI struct wl_signal e_comp_wl_surface_create_signal_get(E_Comp *comp);
static inline uint64_t
e_comp_wl_id_get(uint32_t client, uint32_t surface)

View File

@ -393,7 +393,7 @@ _e_comp_wl_data_manager_cb_device_get(struct wl_client *client, struct wl_resour
E_Comp_Data *cdata;
struct wl_resource *res;
DBG("Data Manager Device Get");
/* DBG("Data Manager Device Get"); */
/* try to get the compositor data */
if (!(cdata = wl_resource_get_user_data(seat_resource))) return;
@ -661,10 +661,7 @@ _e_comp_wl_clipboard_selection_set(struct wl_listener *listener EINA_UNUSED, voi
cdata->selection.serial, p[0]);
if (!cdata->clipboard.source)
{
close(p[0]);
return;
}
close(p[0]);
}
static void