summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland/ecore_wl_window.c
diff options
context:
space:
mode:
authorBryce Harrington <bryce@osg.samsung.com>2015-03-13 21:40:59 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-03-13 21:43:08 -0400
commitdb91d16f780989e580f2a0edfe94fce65bb2f5c4 (patch)
tree0f0204eae5e0e246ca35d4998566c1fab57cf218 /src/lib/ecore_wayland/ecore_wl_window.c
parent426382bc8bf94f322a8cf89bf371666ba268cd40 (diff)
ecore-wayland: Whitespace cleanup
Summary: Remove trailing whitespace, convert tabs to spaces as per style guide. Reviewers: zmike Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2157
Diffstat (limited to 'src/lib/ecore_wayland/ecore_wl_window.c')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_window.c116
1 files changed, 58 insertions, 58 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_window.c b/src/lib/ecore_wayland/ecore_wl_window.c
index 074549eaa6..05f38321e4 100644
--- a/src/lib/ecore_wayland/ecore_wl_window.c
+++ b/src/lib/ecore_wayland/ecore_wl_window.c
@@ -21,39 +21,39 @@ static void _ecore_xdg_handle_popup_done(void *data, struct xdg_popup *xdg_popup
21static Eina_Hash *_windows = NULL; 21static Eina_Hash *_windows = NULL;
22 22
23/* wayland listeners */ 23/* wayland listeners */
24static const struct wl_surface_listener _ecore_wl_surface_listener = 24static const struct wl_surface_listener _ecore_wl_surface_listener =
25{ 25{
26 _ecore_wl_window_cb_surface_enter, 26 _ecore_wl_window_cb_surface_enter,
27 _ecore_wl_window_cb_surface_leave 27 _ecore_wl_window_cb_surface_leave
28}; 28};
29 29
30static const struct wl_shell_surface_listener _ecore_wl_shell_surface_listener = 30static const struct wl_shell_surface_listener _ecore_wl_shell_surface_listener =
31{ 31{
32 _ecore_wl_window_cb_ping, 32 _ecore_wl_window_cb_ping,
33 _ecore_wl_window_cb_configure, 33 _ecore_wl_window_cb_configure,
34 _ecore_wl_window_cb_popup_done 34 _ecore_wl_window_cb_popup_done
35}; 35};
36 36
37static const struct xdg_surface_listener _ecore_xdg_surface_listener = 37static const struct xdg_surface_listener _ecore_xdg_surface_listener =
38{ 38{
39 _ecore_xdg_handle_surface_configure, 39 _ecore_xdg_handle_surface_configure,
40 _ecore_xdg_handle_surface_delete, 40 _ecore_xdg_handle_surface_delete,
41}; 41};
42 42
43static const struct xdg_popup_listener _ecore_xdg_popup_listener = 43static const struct xdg_popup_listener _ecore_xdg_popup_listener =
44{ 44{
45 _ecore_xdg_handle_popup_done, 45 _ecore_xdg_handle_popup_done,
46}; 46};
47 47
48/* internal functions */ 48/* internal functions */
49void 49void
50_ecore_wl_window_init(void) 50_ecore_wl_window_init(void)
51{ 51{
52 if (!_windows) 52 if (!_windows)
53 _windows = eina_hash_string_superfast_new(NULL); 53 _windows = eina_hash_string_superfast_new(NULL);
54} 54}
55 55
56void 56void
57_ecore_wl_window_shutdown(void) 57_ecore_wl_window_shutdown(void)
58{ 58{
59 eina_hash_free(_windows); 59 eina_hash_free(_windows);
@@ -101,10 +101,10 @@ ecore_wl_window_new(Ecore_Wl_Window *parent, int x, int y, int w, int h, int buf
101 win->opaque.w = w; 101 win->opaque.w = w;
102 win->opaque.h = h; 102 win->opaque.h = h;
103 103
104 win->opaque_region = 104 win->opaque_region =
105 wl_compositor_create_region(_ecore_wl_compositor_get()); 105 wl_compositor_create_region(_ecore_wl_compositor_get());
106 106
107 win->input_region = 107 win->input_region =
108 wl_compositor_create_region(_ecore_wl_compositor_get()); 108 wl_compositor_create_region(_ecore_wl_compositor_get());
109 109
110 win->title = NULL; 110 win->title = NULL;
@@ -114,7 +114,7 @@ ecore_wl_window_new(Ecore_Wl_Window *parent, int x, int y, int w, int h, int buf
114 return win; 114 return win;
115} 115}
116 116
117EAPI void 117EAPI void
118ecore_wl_window_free(Ecore_Wl_Window *win) 118ecore_wl_window_free(Ecore_Wl_Window *win)
119{ 119{
120 Ecore_Wl_Input *input; 120 Ecore_Wl_Input *input;
@@ -166,7 +166,7 @@ ecore_wl_window_free(Ecore_Wl_Window *win)
166 free(win); 166 free(win);
167} 167}
168 168
169EAPI void 169EAPI void
170ecore_wl_window_move(Ecore_Wl_Window *win, int x, int y) 170ecore_wl_window_move(Ecore_Wl_Window *win, int x, int y)
171{ 171{
172 Ecore_Wl_Input *input; 172 Ecore_Wl_Input *input;
@@ -195,7 +195,7 @@ ecore_wl_window_move(Ecore_Wl_Window *win, int x, int y)
195 input->display->serial); 195 input->display->serial);
196} 196}
197 197
198EAPI void 198EAPI void
199ecore_wl_window_resize(Ecore_Wl_Window *win, int w, int h, int location) 199ecore_wl_window_resize(Ecore_Wl_Window *win, int w, int h, int location)
200{ 200{
201 Ecore_Wl_Input *input; 201 Ecore_Wl_Input *input;
@@ -226,7 +226,7 @@ ecore_wl_window_resize(Ecore_Wl_Window *win, int w, int h, int location)
226 input->display->serial, location); 226 input->display->serial, location);
227} 227}
228 228
229EAPI void 229EAPI void
230ecore_wl_window_damage(Ecore_Wl_Window *win, int x, int y, int w, int h) 230ecore_wl_window_damage(Ecore_Wl_Window *win, int x, int y, int w, int h)
231{ 231{
232 LOGFN(__FILE__, __LINE__, __FUNCTION__); 232 LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -235,7 +235,7 @@ ecore_wl_window_damage(Ecore_Wl_Window *win, int x, int y, int w, int h)
235 if (win->surface) wl_surface_damage(win->surface, x, y, w, h); 235 if (win->surface) wl_surface_damage(win->surface, x, y, w, h);
236} 236}
237 237
238EAPI void 238EAPI void
239ecore_wl_window_commit(Ecore_Wl_Window *win) 239ecore_wl_window_commit(Ecore_Wl_Window *win)
240{ 240{
241 LOGFN(__FILE__, __LINE__, __FUNCTION__); 241 LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -254,11 +254,11 @@ ecore_wl_window_commit(Ecore_Wl_Window *win)
254 wl_surface_set_input_region(win->surface, win->input_region); 254 wl_surface_set_input_region(win->surface, win->input_region);
255 } 255 }
256 256
257 if ((win->surface) && (win->has_buffer)) 257 if ((win->surface) && (win->has_buffer))
258 wl_surface_commit(win->surface); 258 wl_surface_commit(win->surface);
259} 259}
260 260
261EAPI void 261EAPI void
262ecore_wl_window_buffer_attach(Ecore_Wl_Window *win, struct wl_buffer *buffer, int x, int y) 262ecore_wl_window_buffer_attach(Ecore_Wl_Window *win, struct wl_buffer *buffer, int x, int y)
263{ 263{
264 LOGFN(__FILE__, __LINE__, __FUNCTION__); 264 LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -277,7 +277,7 @@ ecore_wl_window_buffer_attach(Ecore_Wl_Window *win, struct wl_buffer *buffer, in
277 277
278 /* if (buffer) */ 278 /* if (buffer) */
279 wl_surface_attach(win->surface, buffer, x, y); 279 wl_surface_attach(win->surface, buffer, x, y);
280 wl_surface_damage(win->surface, 0, 0, 280 wl_surface_damage(win->surface, 0, 0,
281 win->allocation.w, win->allocation.h); 281 win->allocation.w, win->allocation.h);
282 ecore_wl_window_commit(win); 282 ecore_wl_window_commit(win);
283 } 283 }
@@ -300,7 +300,7 @@ ecore_wl_window_surface_create(Ecore_Wl_Window *win)
300 return win->surface; 300 return win->surface;
301} 301}
302 302
303EAPI void 303EAPI void
304ecore_wl_window_show(Ecore_Wl_Window *win) 304ecore_wl_window_show(Ecore_Wl_Window *win)
305{ 305{
306#ifdef USE_IVI_SHELL 306#ifdef USE_IVI_SHELL
@@ -331,7 +331,7 @@ ecore_wl_window_show(Ecore_Wl_Window *win)
331 win->ivi_surface_id, win->surface); 331 win->ivi_surface_id, win->surface);
332 } 332 }
333 333
334 if (!win->ivi_surface) 334 if (!win->ivi_surface)
335 { 335 {
336#endif 336#endif
337 if ((!win->xdg_surface) && (_ecore_wl_disp->wl.xdg_shell)) 337 if ((!win->xdg_surface) && (_ecore_wl_disp->wl.xdg_shell))
@@ -350,7 +350,7 @@ ecore_wl_window_show(Ecore_Wl_Window *win)
350 } 350 }
351 else if ((!win->shell_surface) && (_ecore_wl_disp->wl.shell)) 351 else if ((!win->shell_surface) && (_ecore_wl_disp->wl.shell))
352 { 352 {
353 win->shell_surface = 353 win->shell_surface =
354 wl_shell_get_shell_surface(_ecore_wl_disp->wl.shell, 354 wl_shell_get_shell_surface(_ecore_wl_disp->wl.shell,
355 win->surface); 355 win->surface);
356 if (!win->shell_surface) return; 356 if (!win->shell_surface) return;
@@ -363,7 +363,7 @@ ecore_wl_window_show(Ecore_Wl_Window *win)
363 } 363 }
364 364
365 if (win->shell_surface) 365 if (win->shell_surface)
366 wl_shell_surface_add_listener(win->shell_surface, 366 wl_shell_surface_add_listener(win->shell_surface,
367 &_ecore_wl_shell_surface_listener, win); 367 &_ecore_wl_shell_surface_listener, win);
368#ifdef USE_IVI_SHELL 368#ifdef USE_IVI_SHELL
369 } 369 }
@@ -401,9 +401,9 @@ ecore_wl_window_show(Ecore_Wl_Window *win)
401 case ECORE_WL_WINDOW_TYPE_MENU: 401 case ECORE_WL_WINDOW_TYPE_MENU:
402 if (win->xdg_surface) 402 if (win->xdg_surface)
403 { 403 {
404 win->xdg_popup = 404 win->xdg_popup =
405 xdg_shell_get_xdg_popup(_ecore_wl_disp->wl.xdg_shell, 405 xdg_shell_get_xdg_popup(_ecore_wl_disp->wl.xdg_shell,
406 win->surface, 406 win->surface,
407 win->parent->surface, 407 win->parent->surface,
408 _ecore_wl_disp->input->seat, 408 _ecore_wl_disp->input->seat,
409 _ecore_wl_disp->serial, 409 _ecore_wl_disp->serial,
@@ -411,7 +411,7 @@ ecore_wl_window_show(Ecore_Wl_Window *win)
411 win->allocation.y, 0); 411 win->allocation.y, 0);
412 if (!win->xdg_popup) return; 412 if (!win->xdg_popup) return;
413 xdg_popup_set_user_data(win->xdg_popup, win); 413 xdg_popup_set_user_data(win->xdg_popup, win);
414 xdg_popup_add_listener(win->xdg_popup, 414 xdg_popup_add_listener(win->xdg_popup,
415 &_ecore_xdg_popup_listener, win); 415 &_ecore_xdg_popup_listener, win);
416 } 416 }
417 else if (win->shell_surface) 417 else if (win->shell_surface)
@@ -432,7 +432,7 @@ ecore_wl_window_show(Ecore_Wl_Window *win)
432 } 432 }
433} 433}
434 434
435EAPI void 435EAPI void
436ecore_wl_window_hide(Ecore_Wl_Window *win) 436ecore_wl_window_hide(Ecore_Wl_Window *win)
437{ 437{
438 LOGFN(__FILE__, __LINE__, __FUNCTION__); 438 LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -452,18 +452,18 @@ ecore_wl_window_hide(Ecore_Wl_Window *win)
452 win->surface = NULL; 452 win->surface = NULL;
453} 453}
454 454
455EAPI void 455EAPI void
456ecore_wl_window_raise(Ecore_Wl_Window *win) 456ecore_wl_window_raise(Ecore_Wl_Window *win)
457{ 457{
458 LOGFN(__FILE__, __LINE__, __FUNCTION__); 458 LOGFN(__FILE__, __LINE__, __FUNCTION__);
459 459
460 if (!win) return; 460 if (!win) return;
461 /* FIXME: This should raise the xdg surface also */ 461 /* FIXME: This should raise the xdg surface also */
462 if (win->shell_surface) 462 if (win->shell_surface)
463 wl_shell_surface_set_toplevel(win->shell_surface); 463 wl_shell_surface_set_toplevel(win->shell_surface);
464} 464}
465 465
466EAPI void 466EAPI void
467ecore_wl_window_maximized_set(Ecore_Wl_Window *win, Eina_Bool maximized) 467ecore_wl_window_maximized_set(Ecore_Wl_Window *win, Eina_Bool maximized)
468{ 468{
469 LOGFN(__FILE__, __LINE__, __FUNCTION__); 469 LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -515,7 +515,7 @@ ecore_wl_window_maximized_get(Ecore_Wl_Window *win)
515 return EINA_FALSE; 515 return EINA_FALSE;
516} 516}
517 517
518EAPI void 518EAPI void
519ecore_wl_window_fullscreen_set(Ecore_Wl_Window *win, Eina_Bool fullscreen) 519ecore_wl_window_fullscreen_set(Ecore_Wl_Window *win, Eina_Bool fullscreen)
520{ 520{
521 LOGFN(__FILE__, __LINE__, __FUNCTION__); 521 LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -526,17 +526,17 @@ ecore_wl_window_fullscreen_set(Ecore_Wl_Window *win, Eina_Bool fullscreen)
526 { 526 {
527 win->type = ECORE_WL_WINDOW_TYPE_FULLSCREEN; 527 win->type = ECORE_WL_WINDOW_TYPE_FULLSCREEN;
528 528
529 if (win->xdg_surface) 529 if (win->xdg_surface)
530 xdg_surface_set_fullscreen(win->xdg_surface, NULL); 530 xdg_surface_set_fullscreen(win->xdg_surface, NULL);
531 531
532 if (win->shell_surface) 532 if (win->shell_surface)
533 wl_shell_surface_set_fullscreen(win->shell_surface, 533 wl_shell_surface_set_fullscreen(win->shell_surface,
534 WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT, 534 WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT,
535 0, NULL); 535 0, NULL);
536 } 536 }
537 else 537 else
538 { 538 {
539 if (win->xdg_surface) 539 if (win->xdg_surface)
540 xdg_surface_unset_fullscreen(win->xdg_surface); 540 xdg_surface_unset_fullscreen(win->xdg_surface);
541 else if (win->shell_surface) 541 else if (win->shell_surface)
542 wl_shell_surface_set_toplevel(win->shell_surface); 542 wl_shell_surface_set_toplevel(win->shell_surface);
@@ -556,7 +556,7 @@ ecore_wl_window_fullscreen_get(Ecore_Wl_Window *win)
556 return win->fullscreen || (win->type == ECORE_WL_WINDOW_TYPE_FULLSCREEN); 556 return win->fullscreen || (win->type == ECORE_WL_WINDOW_TYPE_FULLSCREEN);
557} 557}
558 558
559EAPI void 559EAPI void
560ecore_wl_window_transparent_set(Ecore_Wl_Window *win, Eina_Bool transparent) 560ecore_wl_window_transparent_set(Ecore_Wl_Window *win, Eina_Bool transparent)
561{ 561{
562 LOGFN(__FILE__, __LINE__, __FUNCTION__); 562 LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -564,7 +564,7 @@ ecore_wl_window_transparent_set(Ecore_Wl_Window *win, Eina_Bool transparent)
564 if (!win) return; 564 if (!win) return;
565 win->transparent = transparent; 565 win->transparent = transparent;
566 if (!win->transparent) 566 if (!win->transparent)
567 ecore_wl_window_opaque_region_set(win, win->opaque.x, win->opaque.y, 567 ecore_wl_window_opaque_region_set(win, win->opaque.x, win->opaque.y,
568 win->opaque.w, win->opaque.h); 568 win->opaque.w, win->opaque.h);
569 else 569 else
570 ecore_wl_window_opaque_region_set(win, win->opaque.x, win->opaque.y, 0, 0); 570 ecore_wl_window_opaque_region_set(win, win->opaque.x, win->opaque.y, 0, 0);
@@ -588,7 +588,7 @@ ecore_wl_window_alpha_set(Ecore_Wl_Window *win, Eina_Bool alpha)
588 if (!win) return; 588 if (!win) return;
589 win->alpha = alpha; 589 win->alpha = alpha;
590 if (!win->alpha) 590 if (!win->alpha)
591 ecore_wl_window_opaque_region_set(win, win->opaque.x, win->opaque.y, 591 ecore_wl_window_opaque_region_set(win, win->opaque.x, win->opaque.y,
592 win->opaque.w, win->opaque.h); 592 win->opaque.w, win->opaque.h);
593 else 593 else
594 ecore_wl_window_opaque_region_set(win, win->opaque.x, win->opaque.y, 0, 0); 594 ecore_wl_window_opaque_region_set(win, win->opaque.x, win->opaque.y, 0, 0);
@@ -604,7 +604,7 @@ ecore_wl_window_transparent_get(Ecore_Wl_Window *win)
604 return win->transparent; 604 return win->transparent;
605} 605}
606 606
607EAPI void 607EAPI void
608ecore_wl_window_update_size(Ecore_Wl_Window *win, int w, int h) 608ecore_wl_window_update_size(Ecore_Wl_Window *win, int w, int h)
609{ 609{
610 LOGFN(__FILE__, __LINE__, __FUNCTION__); 610 LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -618,12 +618,12 @@ ecore_wl_window_update_size(Ecore_Wl_Window *win, int w, int h)
618 win->saved.h = h; 618 win->saved.h = h;
619 } 619 }
620 if (win->xdg_surface) 620 if (win->xdg_surface)
621 xdg_surface_set_window_geometry(win->xdg_surface, 621 xdg_surface_set_window_geometry(win->xdg_surface,
622 win->allocation.x, win->allocation.y, 622 win->allocation.x, win->allocation.y,
623 win->allocation.w, win->allocation.h); 623 win->allocation.w, win->allocation.h);
624} 624}
625 625
626EAPI void 626EAPI void
627ecore_wl_window_update_location(Ecore_Wl_Window *win, int x, int y) 627ecore_wl_window_update_location(Ecore_Wl_Window *win, int x, int y)
628{ 628{
629 LOGFN(__FILE__, __LINE__, __FUNCTION__); 629 LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -632,8 +632,8 @@ ecore_wl_window_update_location(Ecore_Wl_Window *win, int x, int y)
632 win->allocation.x = x; 632 win->allocation.x = x;
633 win->allocation.y = y; 633 win->allocation.y = y;
634 if (win->xdg_surface) 634 if (win->xdg_surface)
635 xdg_surface_set_window_geometry(win->xdg_surface, 635 xdg_surface_set_window_geometry(win->xdg_surface,
636 win->allocation.x, win->allocation.y, 636 win->allocation.x, win->allocation.y,
637 win->allocation.w, win->allocation.h); 637 win->allocation.w, win->allocation.h);
638} 638}
639 639
@@ -676,7 +676,7 @@ ecore_wl_window_find(unsigned int id)
676 return win; 676 return win;
677} 677}
678 678
679EAPI void 679EAPI void
680ecore_wl_window_type_set(Ecore_Wl_Window *win, Ecore_Wl_Window_Type type) 680ecore_wl_window_type_set(Ecore_Wl_Window *win, Ecore_Wl_Window_Type type)
681{ 681{
682 LOGFN(__FILE__, __LINE__, __FUNCTION__); 682 LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -685,7 +685,7 @@ ecore_wl_window_type_set(Ecore_Wl_Window *win, Ecore_Wl_Window_Type type)
685 win->type = type; 685 win->type = type;
686} 686}
687 687
688EAPI void 688EAPI void
689ecore_wl_window_pointer_set(Ecore_Wl_Window *win, struct wl_surface *surface, int hot_x, int hot_y) 689ecore_wl_window_pointer_set(Ecore_Wl_Window *win, struct wl_surface *surface, int hot_x, int hot_y)
690{ 690{
691 Ecore_Wl_Input *input; 691 Ecore_Wl_Input *input;
@@ -739,7 +739,7 @@ ecore_wl_window_cursor_default_restore(Ecore_Wl_Window *win)
739} 739}
740 740
741/* @since 1.2 */ 741/* @since 1.2 */
742EAPI void 742EAPI void
743ecore_wl_window_parent_set(Ecore_Wl_Window *win, Ecore_Wl_Window *parent) 743ecore_wl_window_parent_set(Ecore_Wl_Window *win, Ecore_Wl_Window *parent)
744{ 744{
745 LOGFN(__FILE__, __LINE__, __FUNCTION__); 745 LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -748,7 +748,7 @@ ecore_wl_window_parent_set(Ecore_Wl_Window *win, Ecore_Wl_Window *parent)
748} 748}
749 749
750/* @since 1.12 */ 750/* @since 1.12 */
751EAPI void 751EAPI void
752ecore_wl_window_iconified_set(Ecore_Wl_Window *win, Eina_Bool iconified) 752ecore_wl_window_iconified_set(Ecore_Wl_Window *win, Eina_Bool iconified)
753{ 753{
754 struct wl_array states; 754 struct wl_array states;
@@ -790,7 +790,7 @@ ecore_wl_window_iconified_set(Ecore_Wl_Window *win, Eina_Bool iconified)
790 } 790 }
791} 791}
792 792
793EAPI Eina_Bool 793EAPI Eina_Bool
794ecore_wl_window_iconified_get(Ecore_Wl_Window *win) 794ecore_wl_window_iconified_get(Ecore_Wl_Window *win)
795{ 795{
796 LOGFN(__FILE__, __LINE__, __FUNCTION__); 796 LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -822,7 +822,7 @@ ecore_wl_window_surface_find(struct wl_surface *surface)
822} 822}
823 823
824/* @since 1.8 */ 824/* @since 1.8 */
825EAPI void 825EAPI void
826ecore_wl_window_input_region_set(Ecore_Wl_Window *win, int x, int y, int w, int h) 826ecore_wl_window_input_region_set(Ecore_Wl_Window *win, int x, int y, int w, int h)
827{ 827{
828 LOGFN(__FILE__, __LINE__, __FUNCTION__); 828 LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -855,7 +855,7 @@ ecore_wl_window_input_region_set(Ecore_Wl_Window *win, int x, int y, int w, int
855} 855}
856 856
857/* @since 1.8 */ 857/* @since 1.8 */
858EAPI void 858EAPI void
859ecore_wl_window_opaque_region_set(Ecore_Wl_Window *win, int x, int y, int w, int h) 859ecore_wl_window_opaque_region_set(Ecore_Wl_Window *win, int x, int y, int w, int h)
860{ 860{
861 LOGFN(__FILE__, __LINE__, __FUNCTION__); 861 LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -896,7 +896,7 @@ ecore_wl_window_opaque_region_set(Ecore_Wl_Window *win, int x, int y, int w, int
896} 896}
897 897
898/* @since 1.8 */ 898/* @since 1.8 */
899EAPI void 899EAPI void
900ecore_wl_window_rotation_set(Ecore_Wl_Window *win, int rotation) 900ecore_wl_window_rotation_set(Ecore_Wl_Window *win, int rotation)
901{ 901{
902 LOGFN(__FILE__, __LINE__, __FUNCTION__); 902 LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -906,7 +906,7 @@ ecore_wl_window_rotation_set(Ecore_Wl_Window *win, int rotation)
906} 906}
907 907
908/* @since 1.8 */ 908/* @since 1.8 */
909EAPI int 909EAPI int
910ecore_wl_window_rotation_get(Ecore_Wl_Window *win) 910ecore_wl_window_rotation_get(Ecore_Wl_Window *win)
911{ 911{
912 LOGFN(__FILE__, __LINE__, __FUNCTION__); 912 LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -978,14 +978,14 @@ ecore_wl_window_keyboard_get(Ecore_Wl_Window *win)
978 978
979 979
980/* local functions */ 980/* local functions */
981static void 981static void
982_ecore_wl_window_cb_ping(void *data EINA_UNUSED, struct wl_shell_surface *shell_surface, unsigned int serial) 982_ecore_wl_window_cb_ping(void *data EINA_UNUSED, struct wl_shell_surface *shell_surface, unsigned int serial)
983{ 983{
984 if (!shell_surface) return; 984 if (!shell_surface) return;
985 wl_shell_surface_pong(shell_surface, serial); 985 wl_shell_surface_pong(shell_surface, serial);
986} 986}
987 987
988static void 988static void
989_ecore_wl_window_cb_configure(void *data, struct wl_shell_surface *shell_surface EINA_UNUSED, unsigned int edges, int w, int h) 989_ecore_wl_window_cb_configure(void *data, struct wl_shell_surface *shell_surface EINA_UNUSED, unsigned int edges, int w, int h)
990{ 990{
991 Ecore_Wl_Window *win; 991 Ecore_Wl_Window *win;
@@ -1044,7 +1044,7 @@ _ecore_xdg_handle_surface_configure(void *data, struct xdg_surface *xdg_surface
1044 xdg_surface_ack_configure(win->xdg_surface, serial); 1044 xdg_surface_ack_configure(win->xdg_surface, serial);
1045} 1045}
1046 1046
1047static void 1047static void
1048_ecore_xdg_handle_surface_delete(void *data, struct xdg_surface *xdg_surface EINA_UNUSED) 1048_ecore_xdg_handle_surface_delete(void *data, struct xdg_surface *xdg_surface EINA_UNUSED)
1049{ 1049{
1050 Ecore_Wl_Window *win; 1050 Ecore_Wl_Window *win;
@@ -1055,7 +1055,7 @@ _ecore_xdg_handle_surface_delete(void *data, struct xdg_surface *xdg_surface EIN
1055 ecore_wl_window_free(win); 1055 ecore_wl_window_free(win);
1056} 1056}
1057 1057
1058static void 1058static void
1059_ecore_wl_window_cb_popup_done(void *data, struct wl_shell_surface *shell_surface) 1059_ecore_wl_window_cb_popup_done(void *data, struct wl_shell_surface *shell_surface)
1060{ 1060{
1061 Ecore_Wl_Window *win; 1061 Ecore_Wl_Window *win;
@@ -1079,7 +1079,7 @@ _ecore_xdg_handle_popup_done(void *data, struct xdg_popup *xdg_popup, unsigned i
1079 ecore_wl_input_ungrab(win->pointer_device); 1079 ecore_wl_input_ungrab(win->pointer_device);
1080} 1080}
1081 1081
1082static void 1082static void
1083_ecore_wl_window_cb_surface_enter(void *data, struct wl_surface *surface, struct wl_output *output EINA_UNUSED) 1083_ecore_wl_window_cb_surface_enter(void *data, struct wl_surface *surface, struct wl_output *output EINA_UNUSED)
1084{ 1084{
1085 Ecore_Wl_Window *win; 1085 Ecore_Wl_Window *win;
@@ -1090,7 +1090,7 @@ _ecore_wl_window_cb_surface_enter(void *data, struct wl_surface *surface, struct
1090 if (!(win = data)) return; 1090 if (!(win = data)) return;
1091} 1091}
1092 1092
1093static void 1093static void
1094_ecore_wl_window_cb_surface_leave(void *data, struct wl_surface *surface, struct wl_output *output EINA_UNUSED) 1094_ecore_wl_window_cb_surface_leave(void *data, struct wl_surface *surface, struct wl_output *output EINA_UNUSED)
1095{ 1095{
1096 Ecore_Wl_Window *win; 1096 Ecore_Wl_Window *win;
@@ -1101,7 +1101,7 @@ _ecore_wl_window_cb_surface_leave(void *data, struct wl_surface *surface, struct
1101 if (!(win = data)) return; 1101 if (!(win = data)) return;
1102} 1102}
1103 1103
1104static void 1104static void
1105_ecore_wl_window_configure_send(Ecore_Wl_Window *win, int w, int h, int edges) 1105_ecore_wl_window_configure_send(Ecore_Wl_Window *win, int w, int h, int edges)
1106{ 1106{
1107 Ecore_Wl_Event_Window_Configure *ev; 1107 Ecore_Wl_Event_Window_Configure *ev;