summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--legacy/ecore/src/lib/ecore_x/ecore_x.c227
-rw-r--r--legacy/ecore/src/lib/ecore_x/ecore_x_dnd.c42
-rw-r--r--legacy/ecore/src/lib/ecore_x/ecore_x_e.c4
-rw-r--r--legacy/ecore/src/lib/ecore_x/ecore_x_error.c8
-rw-r--r--legacy/ecore/src/lib/ecore_x/ecore_x_events.c4
-rw-r--r--legacy/ecore/src/lib/ecore_x/ecore_x_gc.c4
-rw-r--r--legacy/ecore/src/lib/ecore_x/ecore_x_icccm.c64
-rw-r--r--legacy/ecore/src/lib/ecore_x/ecore_x_mwm.c4
-rw-r--r--legacy/ecore/src/lib/ecore_x/ecore_x_netwm.c114
-rw-r--r--legacy/ecore/src/lib/ecore_x/ecore_x_pixmap.c10
-rw-r--r--legacy/ecore/src/lib/ecore_x/ecore_x_randr.c8
-rw-r--r--legacy/ecore/src/lib/ecore_x/ecore_x_selection.c36
-rw-r--r--legacy/ecore/src/lib/ecore_x/ecore_x_sync.c4
-rw-r--r--legacy/ecore/src/lib/ecore_x/ecore_x_window.c74
-rw-r--r--legacy/ecore/src/lib/ecore_x/ecore_x_window_prop.c46
-rw-r--r--legacy/ecore/src/lib/ecore_x/ecore_x_window_shape.c24
-rw-r--r--legacy/ecore/src/lib/ecore_x/ecore_x_xinerama.c4
17 files changed, 339 insertions, 338 deletions
diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x.c b/legacy/ecore/src/lib/ecore_x/ecore_x.c
index f65c7ee..67626d8 100644
--- a/legacy/ecore/src/lib/ecore_x/ecore_x.c
+++ b/legacy/ecore/src/lib/ecore_x/ecore_x.c
@@ -62,73 +62,73 @@ Ecore_X_Atom ECORE_X_ATOM_SELECTION_PROP_PRIMARY = 0;
62Ecore_X_Atom ECORE_X_ATOM_SELECTION_PROP_SECONDARY = 0; 62Ecore_X_Atom ECORE_X_ATOM_SELECTION_PROP_SECONDARY = 0;
63Ecore_X_Atom ECORE_X_ATOM_SELECTION_PROP_CLIPBOARD = 0; 63Ecore_X_Atom ECORE_X_ATOM_SELECTION_PROP_CLIPBOARD = 0;
64 64
65int ECORE_X_EVENT_KEY_DOWN = 0; 65EAPI int ECORE_X_EVENT_KEY_DOWN = 0;
66int ECORE_X_EVENT_KEY_UP = 0; 66EAPI int ECORE_X_EVENT_KEY_UP = 0;
67int ECORE_X_EVENT_MOUSE_BUTTON_DOWN = 0; 67EAPI int ECORE_X_EVENT_MOUSE_BUTTON_DOWN = 0;
68int ECORE_X_EVENT_MOUSE_BUTTON_UP = 0; 68EAPI int ECORE_X_EVENT_MOUSE_BUTTON_UP = 0;
69int ECORE_X_EVENT_MOUSE_MOVE = 0; 69EAPI int ECORE_X_EVENT_MOUSE_MOVE = 0;
70int ECORE_X_EVENT_MOUSE_IN = 0; 70EAPI int ECORE_X_EVENT_MOUSE_IN = 0;
71int ECORE_X_EVENT_MOUSE_OUT = 0; 71EAPI int ECORE_X_EVENT_MOUSE_OUT = 0;
72int ECORE_X_EVENT_MOUSE_WHEEL = 0; 72EAPI int ECORE_X_EVENT_MOUSE_WHEEL = 0;
73int ECORE_X_EVENT_WINDOW_FOCUS_IN = 0; 73EAPI int ECORE_X_EVENT_WINDOW_FOCUS_IN = 0;
74int ECORE_X_EVENT_WINDOW_FOCUS_OUT = 0; 74EAPI int ECORE_X_EVENT_WINDOW_FOCUS_OUT = 0;
75int ECORE_X_EVENT_WINDOW_KEYMAP = 0; 75EAPI int ECORE_X_EVENT_WINDOW_KEYMAP = 0;
76int ECORE_X_EVENT_WINDOW_DAMAGE = 0; 76EAPI int ECORE_X_EVENT_WINDOW_DAMAGE = 0;
77int ECORE_X_EVENT_WINDOW_VISIBILITY_CHANGE = 0; 77EAPI int ECORE_X_EVENT_WINDOW_VISIBILITY_CHANGE = 0;
78int ECORE_X_EVENT_WINDOW_CREATE = 0; 78EAPI int ECORE_X_EVENT_WINDOW_CREATE = 0;
79int ECORE_X_EVENT_WINDOW_DESTROY = 0; 79EAPI int ECORE_X_EVENT_WINDOW_DESTROY = 0;
80int ECORE_X_EVENT_WINDOW_HIDE = 0; 80EAPI int ECORE_X_EVENT_WINDOW_HIDE = 0;
81int ECORE_X_EVENT_WINDOW_SHOW = 0; 81EAPI int ECORE_X_EVENT_WINDOW_SHOW = 0;
82int ECORE_X_EVENT_WINDOW_SHOW_REQUEST = 0; 82EAPI int ECORE_X_EVENT_WINDOW_SHOW_REQUEST = 0;
83int ECORE_X_EVENT_WINDOW_REPARENT = 0; 83EAPI int ECORE_X_EVENT_WINDOW_REPARENT = 0;
84int ECORE_X_EVENT_WINDOW_CONFIGURE = 0; 84EAPI int ECORE_X_EVENT_WINDOW_CONFIGURE = 0;
85int ECORE_X_EVENT_WINDOW_CONFIGURE_REQUEST = 0; 85EAPI int ECORE_X_EVENT_WINDOW_CONFIGURE_REQUEST = 0;
86int ECORE_X_EVENT_WINDOW_GRAVITY = 0; 86EAPI int ECORE_X_EVENT_WINDOW_GRAVITY = 0;
87int ECORE_X_EVENT_WINDOW_RESIZE_REQUEST = 0; 87EAPI int ECORE_X_EVENT_WINDOW_RESIZE_REQUEST = 0;
88int ECORE_X_EVENT_WINDOW_STACK = 0; 88EAPI int ECORE_X_EVENT_WINDOW_STACK = 0;
89int ECORE_X_EVENT_WINDOW_STACK_REQUEST = 0; 89EAPI int ECORE_X_EVENT_WINDOW_STACK_REQUEST = 0;
90int ECORE_X_EVENT_WINDOW_PROPERTY = 0; 90EAPI int ECORE_X_EVENT_WINDOW_PROPERTY = 0;
91int ECORE_X_EVENT_WINDOW_COLORMAP = 0; 91EAPI int ECORE_X_EVENT_WINDOW_COLORMAP = 0;
92int ECORE_X_EVENT_WINDOW_MAPPING = 0; 92EAPI int ECORE_X_EVENT_WINDOW_MAPPING = 0;
93int ECORE_X_EVENT_SELECTION_CLEAR = 0; 93EAPI int ECORE_X_EVENT_SELECTION_CLEAR = 0;
94int ECORE_X_EVENT_SELECTION_REQUEST = 0; 94EAPI int ECORE_X_EVENT_SELECTION_REQUEST = 0;
95int ECORE_X_EVENT_SELECTION_NOTIFY = 0; 95EAPI int ECORE_X_EVENT_SELECTION_NOTIFY = 0;
96int ECORE_X_EVENT_CLIENT_MESSAGE = 0; 96EAPI int ECORE_X_EVENT_CLIENT_MESSAGE = 0;
97int ECORE_X_EVENT_WINDOW_SHAPE = 0; 97EAPI int ECORE_X_EVENT_WINDOW_SHAPE = 0;
98int ECORE_X_EVENT_SYNC_COUNTER = 0; 98EAPI int ECORE_X_EVENT_SYNC_COUNTER = 0;
99int ECORE_X_EVENT_SYNC_ALARM = 0; 99EAPI int ECORE_X_EVENT_SYNC_ALARM = 0;
100int ECORE_X_EVENT_SCREEN_CHANGE = 0; 100EAPI int ECORE_X_EVENT_SCREEN_CHANGE = 0;
101 101
102int ECORE_X_EVENT_WINDOW_DELETE_REQUEST = 0; 102EAPI int ECORE_X_EVENT_WINDOW_DELETE_REQUEST = 0;
103/* 103/*
104int ECORE_X_EVENT_WINDOW_PROP_TITLE_CHANGE = 0; 104EAPI int ECORE_X_EVENT_WINDOW_PROP_TITLE_CHANGE = 0;
105int ECORE_X_EVENT_WINDOW_PROP_VISIBLE_TITLE_CHANGE = 0; 105EAPI int ECORE_X_EVENT_WINDOW_PROP_VISIBLE_TITLE_CHANGE = 0;
106int ECORE_X_EVENT_WINDOW_PROP_NAME_CLASS_CHANGE = 0; 106EAPI int ECORE_X_EVENT_WINDOW_PROP_NAME_CLASS_CHANGE = 0;
107int ECORE_X_EVENT_WINDOW_PROP_ICON_NAME_CHANGE = 0; 107EAPI int ECORE_X_EVENT_WINDOW_PROP_ICON_NAME_CHANGE = 0;
108int ECORE_X_EVENT_WINDOW_PROP_VISIBLE_ICON_NAME_CHANGE = 0; 108EAPI int ECORE_X_EVENT_WINDOW_PROP_VISIBLE_ICON_NAME_CHANGE = 0;
109int ECORE_X_EVENT_WINDOW_PROP_CLIENT_MACHINE_CHANGE = 0; 109EAPI int ECORE_X_EVENT_WINDOW_PROP_CLIENT_MACHINE_CHANGE = 0;
110int ECORE_X_EVENT_WINDOW_PROP_PID_CHANGE = 0; 110EAPI int ECORE_X_EVENT_WINDOW_PROP_PID_CHANGE = 0;
111int ECORE_X_EVENT_WINDOW_PROP_DESKTOP_CHANGE = 0; 111EAPI int ECORE_X_EVENT_WINDOW_PROP_DESKTOP_CHANGE = 0;
112*/ 112*/
113 113
114int ECORE_X_EVENT_WINDOW_MOVE_RESIZE_REQUEST = 0; 114EAPI int ECORE_X_EVENT_WINDOW_MOVE_RESIZE_REQUEST = 0;
115int ECORE_X_EVENT_WINDOW_STATE_REQUEST = 0; 115EAPI int ECORE_X_EVENT_WINDOW_STATE_REQUEST = 0;
116int ECORE_X_EVENT_FRAME_EXTENTS_REQUEST = 0; 116EAPI int ECORE_X_EVENT_FRAME_EXTENTS_REQUEST = 0;
117int ECORE_X_EVENT_PING = 0; 117EAPI int ECORE_X_EVENT_PING = 0;
118int ECORE_X_EVENT_DESKTOP_CHANGE = 0; 118EAPI int ECORE_X_EVENT_DESKTOP_CHANGE = 0;
119 119
120int ECORE_X_EVENT_STARTUP_SEQUENCE_NEW = 0; 120EAPI int ECORE_X_EVENT_STARTUP_SEQUENCE_NEW = 0;
121int ECORE_X_EVENT_STARTUP_SEQUENCE_CHANGE = 0; 121EAPI int ECORE_X_EVENT_STARTUP_SEQUENCE_CHANGE = 0;
122int ECORE_X_EVENT_STARTUP_SEQUENCE_REMOVE = 0; 122EAPI int ECORE_X_EVENT_STARTUP_SEQUENCE_REMOVE = 0;
123 123
124int ECORE_X_MODIFIER_SHIFT = 0; 124EAPI int ECORE_X_MODIFIER_SHIFT = 0;
125int ECORE_X_MODIFIER_CTRL = 0; 125EAPI int ECORE_X_MODIFIER_CTRL = 0;
126int ECORE_X_MODIFIER_ALT = 0; 126EAPI int ECORE_X_MODIFIER_ALT = 0;
127int ECORE_X_MODIFIER_WIN = 0; 127EAPI int ECORE_X_MODIFIER_WIN = 0;
128 128
129int ECORE_X_LOCK_SCROLL = 0; 129EAPI int ECORE_X_LOCK_SCROLL = 0;
130int ECORE_X_LOCK_NUM = 0; 130EAPI int ECORE_X_LOCK_NUM = 0;
131int ECORE_X_LOCK_CAPS = 0; 131EAPI int ECORE_X_LOCK_CAPS = 0;
132 132
133/** 133/**
134 * @defgroup Ecore_X_Init_Group X Library Init and Shutdown Functions 134 * @defgroup Ecore_X_Init_Group X Library Init and Shutdown Functions
@@ -145,7 +145,7 @@ int ECORE_X_LOCK_CAPS = 0;
145 * being shut down. 0 is returned if an error occurs. 145 * being shut down. 0 is returned if an error occurs.
146 * @ingroup Ecore_X_Init_Group 146 * @ingroup Ecore_X_Init_Group
147 */ 147 */
148int 148EAPI int
149ecore_x_init(const char *name) 149ecore_x_init(const char *name)
150{ 150{
151 int shape_base = 0; 151 int shape_base = 0;
@@ -423,7 +423,7 @@ _ecore_x_shutdown(int close_display)
423 * being shut down. 423 * being shut down.
424 * @ingroup Ecore_X_Init_Group 424 * @ingroup Ecore_X_Init_Group
425 */ 425 */
426int 426EAPI int
427ecore_x_shutdown(void) 427ecore_x_shutdown(void)
428{ 428{
429 return _ecore_x_shutdown(1); 429 return _ecore_x_shutdown(1);
@@ -436,7 +436,7 @@ ecore_x_shutdown(void)
436 * 436 *
437 * @ingroup Ecore_X_Init_Group 437 * @ingroup Ecore_X_Init_Group
438 */ 438 */
439int 439EAPI int
440ecore_x_disconnect(void) 440ecore_x_disconnect(void)
441{ 441{
442 return _ecore_x_shutdown(0); 442 return _ecore_x_shutdown(0);
@@ -453,7 +453,7 @@ ecore_x_disconnect(void)
453 * @return The current X display. 453 * @return The current X display.
454 * @ingroup Ecore_X_Display_Attr_Group 454 * @ingroup Ecore_X_Display_Attr_Group
455 */ 455 */
456Ecore_X_Display * 456EAPI Ecore_X_Display *
457ecore_x_display_get(void) 457ecore_x_display_get(void)
458{ 458{
459 return (Ecore_X_Display *)_ecore_x_disp; 459 return (Ecore_X_Display *)_ecore_x_disp;
@@ -464,7 +464,7 @@ ecore_x_display_get(void)
464 * @return The current X display file descriptor. 464 * @return The current X display file descriptor.
465 * @ingroup Ecore_X_Display_Attr_Group 465 * @ingroup Ecore_X_Display_Attr_Group
466 */ 466 */
467int 467EAPI int
468ecore_x_fd_get(void) 468ecore_x_fd_get(void)
469{ 469{
470 return ConnectionNumber(_ecore_x_disp); 470 return ConnectionNumber(_ecore_x_disp);
@@ -480,7 +480,7 @@ ecore_x_fd_get(void)
480 * @param t The time in seconds 480 * @param t The time in seconds
481 * @ingroup Ecore_X_Display_Attr_Group 481 * @ingroup Ecore_X_Display_Attr_Group
482 */ 482 */
483void 483EAPI void
484ecore_x_double_click_time_set(double t) 484ecore_x_double_click_time_set(double t)
485{ 485{
486 if (t < 0.0) t = 0.0; 486 if (t < 0.0) t = 0.0;
@@ -495,7 +495,7 @@ ecore_x_double_click_time_set(double t)
495 * @return The timeout for double clicks in seconds. 495 * @return The timeout for double clicks in seconds.
496 * @ingroup Ecore_X_Display_Attr_Group 496 * @ingroup Ecore_X_Display_Attr_Group
497 */ 497 */
498double 498EAPI double
499ecore_x_double_click_time_get(void) 499ecore_x_double_click_time_get(void)
500{ 500{
501 return _ecore_x_double_click_time; 501 return _ecore_x_double_click_time;
@@ -512,7 +512,7 @@ ecore_x_double_click_time_get(void)
512 * Sends all X commands in the X Display buffer. 512 * Sends all X commands in the X Display buffer.
513 * @ingroup Ecore_X_Flush_Group 513 * @ingroup Ecore_X_Flush_Group
514 */ 514 */
515void 515EAPI void
516ecore_x_flush(void) 516ecore_x_flush(void)
517{ 517{
518 XFlush(_ecore_x_disp); 518 XFlush(_ecore_x_disp);
@@ -523,7 +523,7 @@ ecore_x_flush(void)
523 * processed by the server. 523 * processed by the server.
524 * @ingroup Ecore_X_Flush_Group 524 * @ingroup Ecore_X_Flush_Group
525 */ 525 */
526void 526EAPI void
527ecore_x_sync(void) 527ecore_x_sync(void)
528{ 528{
529 XSync(_ecore_x_disp, False); 529 XSync(_ecore_x_disp, False);
@@ -538,7 +538,7 @@ ecore_x_sync(void)
538 * 538 *
539 * @param root The window whose children will be killed. 539 * @param root The window whose children will be killed.
540 */ 540 */
541void 541EAPI void
542ecore_x_killall(Ecore_X_Window root) 542ecore_x_killall(Ecore_X_Window root)
543{ 543{
544 int screens; 544 int screens;
@@ -579,7 +579,7 @@ ecore_x_killall(Ecore_X_Window root)
579 * 579 *
580 * @param win Window of the client to be killed 580 * @param win Window of the client to be killed
581 */ 581 */
582void 582EAPI void
583ecore_x_kill(Ecore_X_Window win) 583ecore_x_kill(Ecore_X_Window win)
584{ 584{
585 XKillClient(_ecore_x_disp, win); 585 XKillClient(_ecore_x_disp, win);
@@ -588,7 +588,7 @@ ecore_x_kill(Ecore_X_Window win)
588/** 588/**
589 * Return the last event time 589 * Return the last event time
590 */ 590 */
591Ecore_X_Time 591EAPI Ecore_X_Time
592ecore_x_current_time_get(void) 592ecore_x_current_time_get(void)
593{ 593{
594 return _ecore_x_event_last_time; 594 return _ecore_x_event_last_time;
@@ -744,7 +744,7 @@ _ecore_x_event_filter_end(void *data __UNUSED__, void *loop_data)
744 * @param w Pointer to an integer into which the width is to be stored. 744 * @param w Pointer to an integer into which the width is to be stored.
745 * @param h Pointer to an integer into which the height is to be stored. 745 * @param h Pointer to an integer into which the height is to be stored.
746 */ 746 */
747void 747EAPI void
748ecore_x_drawable_geometry_get(Ecore_X_Drawable d, int *x, int *y, int *w, int *h) 748ecore_x_drawable_geometry_get(Ecore_X_Drawable d, int *x, int *y, int *w, int *h)
749{ 749{
750 Window dummy_win; 750 Window dummy_win;
@@ -771,7 +771,7 @@ ecore_x_drawable_geometry_get(Ecore_X_Drawable d, int *x, int *y, int *w, int *h
771 * @param d The given drawable. 771 * @param d The given drawable.
772 * @return The border width of the given drawable. 772 * @return The border width of the given drawable.
773 */ 773 */
774int 774EAPI int
775ecore_x_drawable_border_width_get(Ecore_X_Drawable d) 775ecore_x_drawable_border_width_get(Ecore_X_Drawable d)
776{ 776{
777 Window dummy_win; 777 Window dummy_win;
@@ -790,7 +790,7 @@ ecore_x_drawable_border_width_get(Ecore_X_Drawable d)
790 * @param d The given drawable. 790 * @param d The given drawable.
791 * @return The depth of the given drawable. 791 * @return The depth of the given drawable.
792 */ 792 */
793int 793EAPI int
794ecore_x_drawable_depth_get(Ecore_X_Drawable d) 794ecore_x_drawable_depth_get(Ecore_X_Drawable d)
795{ 795{
796 Window dummy_win; 796 Window dummy_win;
@@ -812,7 +812,7 @@ ecore_x_drawable_depth_get(Ecore_X_Drawable d)
812 * @return An array of all the root windows. @c NULL is returned if memory 812 * @return An array of all the root windows. @c NULL is returned if memory
813 * could not be allocated for the list, or if @p num_ret is @c NULL. 813 * could not be allocated for the list, or if @p num_ret is @c NULL.
814 */ 814 */
815Ecore_X_Window * 815EAPI Ecore_X_Window *
816ecore_x_window_root_list(int *num_ret) 816ecore_x_window_root_list(int *num_ret)
817{ 817{
818 int num, i; 818 int num, i;
@@ -902,7 +902,7 @@ ecore_x_window_root_list(int *num_ret)
902 return roots; 902 return roots;
903} 903}
904 904
905Ecore_X_Window 905EAPI Ecore_X_Window
906ecore_x_window_root_first_get(void) 906ecore_x_window_root_first_get(void)
907{ 907{
908 int num; 908 int num;
@@ -932,7 +932,7 @@ _ecore_x_window_manage_error(void *data __UNUSED__)
932 _ecore_x_window_manage_failed = 1; 932 _ecore_x_window_manage_failed = 1;
933} 933}
934 934
935int 935EAPI int
936ecore_x_window_manage(Ecore_X_Window win) 936ecore_x_window_manage(Ecore_X_Window win)
937{ 937{
938 XWindowAttributes att; 938 XWindowAttributes att;
@@ -962,7 +962,7 @@ ecore_x_window_manage(Ecore_X_Window win)
962 return 1; 962 return 1;
963} 963}
964 964
965void 965EAPI void
966ecore_x_window_container_manage(Ecore_X_Window win) 966ecore_x_window_container_manage(Ecore_X_Window win)
967{ 967{
968 XSelectInput(_ecore_x_disp, win, 968 XSelectInput(_ecore_x_disp, win,
@@ -970,7 +970,7 @@ ecore_x_window_container_manage(Ecore_X_Window win)
970 SubstructureNotifyMask); 970 SubstructureNotifyMask);
971} 971}
972 972
973void 973EAPI void
974ecore_x_window_client_manage(Ecore_X_Window win) 974ecore_x_window_client_manage(Ecore_X_Window win)
975{ 975{
976 XSelectInput(_ecore_x_disp, win, 976 XSelectInput(_ecore_x_disp, win,
@@ -984,7 +984,7 @@ ecore_x_window_client_manage(Ecore_X_Window win)
984 XShapeSelectInput(_ecore_x_disp, win, ShapeNotifyMask); 984 XShapeSelectInput(_ecore_x_disp, win, ShapeNotifyMask);
985} 985}
986 986
987void 987EAPI void
988ecore_x_window_sniff(Ecore_X_Window win) 988ecore_x_window_sniff(Ecore_X_Window win)
989{ 989{
990 XSelectInput(_ecore_x_disp, win, 990 XSelectInput(_ecore_x_disp, win,
@@ -992,7 +992,7 @@ ecore_x_window_sniff(Ecore_X_Window win)
992 SubstructureNotifyMask); 992 SubstructureNotifyMask);
993} 993}
994 994
995void 995EAPI void
996ecore_x_window_client_sniff(Ecore_X_Window win) 996ecore_x_window_client_sniff(Ecore_X_Window win)
997{ 997{
998 XSelectInput(_ecore_x_disp, win, 998 XSelectInput(_ecore_x_disp, win,
@@ -1009,7 +1009,7 @@ ecore_x_window_client_sniff(Ecore_X_Window win)
1009 * @param name The given name. 1009 * @param name The given name.
1010 * @return Associated atom value. 1010 * @return Associated atom value.
1011 */ 1011 */
1012Ecore_X_Atom 1012EAPI Ecore_X_Atom
1013ecore_x_atom_get(const char *name) 1013ecore_x_atom_get(const char *name)
1014{ 1014{
1015 if (!_ecore_x_disp) return 0; 1015 if (!_ecore_x_disp) return 0;
@@ -1021,7 +1021,7 @@ ecore_x_atom_get(const char *name)
1021 1021
1022 1022
1023 1023
1024int 1024EAPI int
1025ecore_x_window_attributes_get(Ecore_X_Window win, Ecore_X_Window_Attributes *att_ret) 1025ecore_x_window_attributes_get(Ecore_X_Window win, Ecore_X_Window_Attributes *att_ret)
1026{ 1026{
1027 XWindowAttributes att; 1027 XWindowAttributes att;
@@ -1049,19 +1049,19 @@ ecore_x_window_attributes_get(Ecore_X_Window win, Ecore_X_Window_Attributes *att
1049 return 1; 1049 return 1;
1050} 1050}
1051 1051
1052void 1052EAPI void
1053ecore_x_window_save_set_add(Ecore_X_Window win) 1053ecore_x_window_save_set_add(Ecore_X_Window win)
1054{ 1054{
1055 XAddToSaveSet(_ecore_x_disp, win); 1055 XAddToSaveSet(_ecore_x_disp, win);
1056} 1056}
1057 1057
1058void 1058EAPI void
1059ecore_x_window_save_set_del(Ecore_X_Window win) 1059ecore_x_window_save_set_del(Ecore_X_Window win)
1060{ 1060{
1061 XRemoveFromSaveSet(_ecore_x_disp, win); 1061 XRemoveFromSaveSet(_ecore_x_disp, win);
1062} 1062}
1063 1063
1064Ecore_X_Window * 1064EAPI Ecore_X_Window *
1065ecore_x_window_children_get(Ecore_X_Window win, int *num) 1065ecore_x_window_children_get(Ecore_X_Window win, int *num)
1066{ 1066{
1067 Ecore_X_Window *windows = NULL; 1067 Ecore_X_Window *windows = NULL;
@@ -1094,13 +1094,13 @@ ecore_x_window_children_get(Ecore_X_Window win, int *num)
1094 1094
1095 1095
1096 1096
1097int 1097EAPI int
1098ecore_x_cursor_color_supported_get(void) 1098ecore_x_cursor_color_supported_get(void)
1099{ 1099{
1100 return _ecore_x_xcursor; 1100 return _ecore_x_xcursor;
1101} 1101}
1102 1102
1103Ecore_X_Cursor 1103EAPI Ecore_X_Cursor
1104ecore_x_cursor_new(Ecore_X_Window win, int *pixels, int w, int h, int hot_x, int hot_y) 1104ecore_x_cursor_new(Ecore_X_Window win, int *pixels, int w, int h, int hot_x, int hot_y)
1105{ 1105{
1106#ifdef ECORE_XCURSOR 1106#ifdef ECORE_XCURSOR
@@ -1277,7 +1277,7 @@ ecore_x_cursor_new(Ecore_X_Window win, int *pixels, int w, int h, int hot_x, int
1277 return 0; 1277 return 0;
1278} 1278}
1279 1279
1280void 1280EAPI void
1281ecore_x_cursor_free(Ecore_X_Cursor c) 1281ecore_x_cursor_free(Ecore_X_Cursor c)
1282{ 1282{
1283 XFreeCursor(_ecore_x_disp, c); 1283 XFreeCursor(_ecore_x_disp, c);
@@ -1288,14 +1288,14 @@ ecore_x_cursor_free(Ecore_X_Cursor c)
1288 * Note that the return value must not be freed with 1288 * Note that the return value must not be freed with
1289 * ecore_x_cursor_free()! 1289 * ecore_x_cursor_free()!
1290 */ 1290 */
1291Ecore_X_Cursor 1291EAPI Ecore_X_Cursor
1292ecore_x_cursor_shape_get(int shape) 1292ecore_x_cursor_shape_get(int shape)
1293{ 1293{
1294 /* Shapes are defined in Ecore_X_Cursor.h */ 1294 /* Shapes are defined in Ecore_X_Cursor.h */
1295 return XCreateFontCursor(_ecore_x_disp, shape); 1295 return XCreateFontCursor(_ecore_x_disp, shape);
1296} 1296}
1297 1297
1298void 1298EAPI void
1299ecore_x_cursor_size_set(int size) 1299ecore_x_cursor_size_set(int size)
1300{ 1300{
1301#ifdef ECORE_XCURSOR 1301#ifdef ECORE_XCURSOR
@@ -1303,7 +1303,7 @@ ecore_x_cursor_size_set(int size)
1303#endif 1303#endif
1304} 1304}
1305 1305
1306int 1306EAPI int
1307ecore_x_cursor_size_get(void) 1307ecore_x_cursor_size_get(void)
1308{ 1308{
1309#ifdef ECORE_XCURSOR 1309#ifdef ECORE_XCURSOR
@@ -1313,7 +1313,7 @@ ecore_x_cursor_size_get(void)
1313#endif 1313#endif
1314} 1314}
1315 1315
1316int 1316EAPI int
1317ecore_x_pointer_grab(Ecore_X_Window win) 1317ecore_x_pointer_grab(Ecore_X_Window win)
1318{ 1318{
1319 return XGrabPointer(_ecore_x_disp, win, False, 1319 return XGrabPointer(_ecore_x_disp, win, False,
@@ -1323,7 +1323,7 @@ ecore_x_pointer_grab(Ecore_X_Window win)
1323 None, None, CurrentTime); 1323 None, None, CurrentTime);
1324} 1324}
1325 1325
1326int 1326EAPI int
1327ecore_x_pointer_confine_grab(Ecore_X_Window win) 1327ecore_x_pointer_confine_grab(Ecore_X_Window win)
1328{ 1328{
1329 return XGrabPointer(_ecore_x_disp, win, False, 1329 return XGrabPointer(_ecore_x_disp, win, False,
@@ -1333,19 +1333,19 @@ ecore_x_pointer_confine_grab(Ecore_X_Window win)
1333 win, None, CurrentTime); 1333 win, None, CurrentTime);
1334} 1334}
1335 1335
1336void 1336EAPI void
1337ecore_x_pointer_ungrab(void) 1337ecore_x_pointer_ungrab(void)
1338{ 1338{
1339 XUngrabPointer(_ecore_x_disp, CurrentTime); 1339 XUngrabPointer(_ecore_x_disp, CurrentTime);
1340} 1340}
1341 1341
1342int 1342EAPI int
1343ecore_x_pointer_warp(Ecore_X_Window win, int x, int y) 1343ecore_x_pointer_warp(Ecore_X_Window win, int x, int y)
1344{ 1344{
1345 return XWarpPointer(_ecore_x_disp, None, win, 0, 0, 0, 0, x, y); 1345 return XWarpPointer(_ecore_x_disp, None, win, 0, 0, 0, 0, x, y);
1346} 1346}
1347 1347
1348int 1348EAPI int
1349ecore_x_keyboard_grab(Ecore_X_Window win) 1349ecore_x_keyboard_grab(Ecore_X_Window win)
1350{ 1350{
1351 return XGrabKeyboard(_ecore_x_disp, win, False, 1351 return XGrabKeyboard(_ecore_x_disp, win, False,
@@ -1353,12 +1353,13 @@ ecore_x_keyboard_grab(Ecore_X_Window win)
1353 CurrentTime); 1353 CurrentTime);
1354} 1354}
1355 1355
1356void ecore_x_keyboard_ungrab(void) 1356EAPI void
1357ecore_x_keyboard_ungrab(void)
1357{ 1358{
1358 XUngrabKeyboard(_ecore_x_disp, CurrentTime); 1359 XUngrabKeyboard(_ecore_x_disp, CurrentTime);
1359} 1360}
1360 1361
1361void 1362EAPI void
1362ecore_x_grab(void) 1363ecore_x_grab(void)
1363{ 1364{
1364 _ecore_x_grab_count++; 1365 _ecore_x_grab_count++;
@@ -1367,7 +1368,7 @@ ecore_x_grab(void)
1367 XGrabServer(_ecore_x_disp); 1368 XGrabServer(_ecore_x_disp);
1368} 1369}
1369 1370
1370void 1371EAPI void
1371ecore_x_ungrab(void) 1372ecore_x_ungrab(void)
1372{ 1373{
1373 _ecore_x_grab_count--; 1374 _ecore_x_grab_count--;
@@ -1386,14 +1387,14 @@ Window *_ecore_window_grabs = NULL;
1386int (*_ecore_window_grab_replay_func) (void *data, int event_type, void *event); 1387int (*_ecore_window_grab_replay_func) (void *data, int event_type, void *event);
1387void *_ecore_window_grab_replay_data; 1388void *_ecore_window_grab_replay_data;
1388 1389
1389void 1390EAPI void
1390ecore_x_passive_grab_replay_func_set(int (*func) (void *data, int event_type, void *event), void *data) 1391ecore_x_passive_grab_replay_func_set(int (*func) (void *data, int event_type, void *event), void *data)
1391{ 1392{
1392 _ecore_window_grab_replay_func = func; 1393 _ecore_window_grab_replay_func = func;
1393 _ecore_window_grab_replay_data = data; 1394 _ecore_window_grab_replay_data = data;
1394} 1395}
1395 1396
1396void 1397EAPI void
1397ecore_x_window_button_grab(Ecore_X_Window win, int button, 1398ecore_x_window_button_grab(Ecore_X_Window win, int button,
1398 Ecore_X_Event_Mask event_mask, 1399 Ecore_X_Event_Mask event_mask,
1399 int mod, int any_mod) 1400 int mod, int any_mod)
@@ -1465,7 +1466,7 @@ _ecore_x_window_grab_remove(Ecore_X_Window win)
1465 } 1466 }
1466} 1467}
1467 1468
1468void 1469EAPI void
1469ecore_x_window_button_ungrab(Ecore_X_Window win, int button, 1470ecore_x_window_button_ungrab(Ecore_X_Window win, int button,
1470 int mod, int any_mod) 1471 int mod, int any_mod)
1471{ 1472{
@@ -1494,7 +1495,7 @@ ecore_x_window_button_ungrab(Ecore_X_Window win, int button,
1494int _ecore_key_grabs_num = 0; 1495int _ecore_key_grabs_num = 0;
1495Window *_ecore_key_grabs = NULL; 1496Window *_ecore_key_grabs = NULL;
1496 1497
1497void 1498EAPI void
1498ecore_x_window_key_grab(Ecore_X_Window win, char *key, 1499ecore_x_window_key_grab(Ecore_X_Window win, char *key,
1499 int mod, int any_mod) 1500 int mod, int any_mod)
1500{ 1501{
@@ -1555,7 +1556,7 @@ _ecore_x_key_grab_remove(Ecore_X_Window win)
1555 } 1556 }
1556} 1557}
1557 1558
1558void 1559EAPI void
1559ecore_x_window_key_ungrab(Ecore_X_Window win, char *key, 1560ecore_x_window_key_ungrab(Ecore_X_Window win, char *key,
1560 int mod, int any_mod) 1561 int mod, int any_mod)
1561{ 1562{
@@ -1603,7 +1604,7 @@ ecore_x_window_key_ungrab(Ecore_X_Window win, char *key,
1603 * 1604 *
1604 * @return !0 on success. 1605 * @return !0 on success.
1605 */ 1606 */
1606int 1607EAPI int
1607ecore_x_client_message32_send(Ecore_X_Window win, Ecore_X_Atom type, 1608ecore_x_client_message32_send(Ecore_X_Window win, Ecore_X_Atom type,
1608 Ecore_X_Event_Mask mask, 1609 Ecore_X_Event_Mask mask,
1609 long d0, long d1, long d2, long d3, long d4) 1610 long d0, long d1, long d2, long d3, long d4)
@@ -1633,7 +1634,7 @@ ecore_x_client_message32_send(Ecore_X_Window win, Ecore_X_Atom type,
1633 * 1634 *
1634 * @return !0 on success. 1635 * @return !0 on success.
1635 */ 1636 */
1636int 1637EAPI int
1637ecore_x_client_message8_send(Ecore_X_Window win, Ecore_X_Atom type, 1638ecore_x_client_message8_send(Ecore_X_Window win, Ecore_X_Atom type,
1638 const void *data, int len) 1639 const void *data, int len)
1639{ 1640{
@@ -1651,26 +1652,26 @@ ecore_x_client_message8_send(Ecore_X_Window win, Ecore_X_Atom type,
1651 return XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev); 1652 return XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev);
1652} 1653}
1653 1654
1654void 1655EAPI void
1655ecore_x_focus_reset(void) 1656ecore_x_focus_reset(void)
1656{ 1657{
1657 XSetInputFocus(_ecore_x_disp, PointerRoot, RevertToPointerRoot, CurrentTime); 1658 XSetInputFocus(_ecore_x_disp, PointerRoot, RevertToPointerRoot, CurrentTime);
1658} 1659}
1659 1660
1660void 1661EAPI void
1661ecore_x_events_allow_all(void) 1662ecore_x_events_allow_all(void)
1662{ 1663{
1663 XAllowEvents(_ecore_x_disp, AsyncBoth, CurrentTime); 1664 XAllowEvents(_ecore_x_disp, AsyncBoth, CurrentTime);
1664} 1665}
1665 1666
1666void 1667EAPI void
1667ecore_x_pointer_last_xy_get(int *x, int *y) 1668ecore_x_pointer_last_xy_get(int *x, int *y)
1668{ 1669{
1669 if (x) *x = _ecore_x_event_last_root_x; 1670 if (x) *x = _ecore_x_event_last_root_x;
1670 if (y) *y = _ecore_x_event_last_root_y; 1671 if (y) *y = _ecore_x_event_last_root_y;
1671} 1672}
1672 1673
1673void 1674EAPI void
1674ecore_x_pointer_xy_get(Ecore_X_Window win, int *x, int *y) 1675ecore_x_pointer_xy_get(Ecore_X_Window win, int *x, int *y)
1675{ 1676{
1676 Window rwin, cwin; 1677 Window rwin, cwin;
diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_dnd.c b/legacy/ecore/src/lib/ecore_x/ecore_x_dnd.c
index 4fef865..dda32ae 100644
--- a/legacy/ecore/src/lib/ecore_x/ecore_x_dnd.c
+++ b/legacy/ecore/src/lib/ecore_x/ecore_x_dnd.c
@@ -26,18 +26,18 @@ Ecore_X_Atom ECORE_X_ATOM_XDND_FINISHED = 0;
26Ecore_X_Atom ECORE_X_ATOM_XDND_LEAVE = 0; 26Ecore_X_Atom ECORE_X_ATOM_XDND_LEAVE = 0;
27 27
28/* Xdnd atoms that need to be exposed to the application interface */ 28/* Xdnd atoms that need to be exposed to the application interface */
29Ecore_X_Atom ECORE_X_DND_ACTION_COPY = 0; 29EAPI Ecore_X_Atom ECORE_X_DND_ACTION_COPY = 0;
30Ecore_X_Atom ECORE_X_DND_ACTION_MOVE = 0; 30EAPI Ecore_X_Atom ECORE_X_DND_ACTION_MOVE = 0;
31Ecore_X_Atom ECORE_X_DND_ACTION_LINK = 0; 31EAPI Ecore_X_Atom ECORE_X_DND_ACTION_LINK = 0;
32Ecore_X_Atom ECORE_X_DND_ACTION_ASK = 0; 32EAPI Ecore_X_Atom ECORE_X_DND_ACTION_ASK = 0;
33Ecore_X_Atom ECORE_X_DND_ACTION_PRIVATE = 0; 33EAPI Ecore_X_Atom ECORE_X_DND_ACTION_PRIVATE = 0;
34 34
35int ECORE_X_EVENT_XDND_ENTER = 0; 35EAPI int ECORE_X_EVENT_XDND_ENTER = 0;
36int ECORE_X_EVENT_XDND_POSITION = 0; 36EAPI int ECORE_X_EVENT_XDND_POSITION = 0;
37int ECORE_X_EVENT_XDND_STATUS = 0; 37EAPI int ECORE_X_EVENT_XDND_STATUS = 0;
38int ECORE_X_EVENT_XDND_LEAVE = 0; 38EAPI int ECORE_X_EVENT_XDND_LEAVE = 0;
39int ECORE_X_EVENT_XDND_DROP = 0; 39EAPI int ECORE_X_EVENT_XDND_DROP = 0;
40int ECORE_X_EVENT_XDND_FINISHED = 0; 40EAPI int ECORE_X_EVENT_XDND_FINISHED = 0;
41 41
42static Ecore_X_DND_Source *_source = NULL; 42static Ecore_X_DND_Source *_source = NULL;
43static Ecore_X_DND_Target *_target = NULL; 43static Ecore_X_DND_Target *_target = NULL;
@@ -114,7 +114,7 @@ _ecore_x_dnd_shutdown(void)
114 _ecore_x_dnd_init_count = 0; 114 _ecore_x_dnd_init_count = 0;
115} 115}
116 116
117void 117EAPI void
118ecore_x_dnd_aware_set(Ecore_X_Window win, int on) 118ecore_x_dnd_aware_set(Ecore_X_Window win, int on)
119{ 119{
120 Ecore_X_Atom prop_data = ECORE_X_DND_VERSION; 120 Ecore_X_Atom prop_data = ECORE_X_DND_VERSION;
@@ -126,7 +126,7 @@ ecore_x_dnd_aware_set(Ecore_X_Window win, int on)
126 ecore_x_window_prop_property_del(win, ECORE_X_ATOM_XDND_AWARE); 126 ecore_x_window_prop_property_del(win, ECORE_X_ATOM_XDND_AWARE);
127} 127}
128 128
129int 129EAPI int
130ecore_x_dnd_version_get(Ecore_X_Window win) 130ecore_x_dnd_version_get(Ecore_X_Window win)
131{ 131{
132 unsigned char *prop_data; 132 unsigned char *prop_data;
@@ -143,7 +143,7 @@ ecore_x_dnd_version_get(Ecore_X_Window win)
143 return 0; 143 return 0;
144} 144}
145 145
146int 146EAPI int
147ecore_x_dnd_type_isset(Ecore_X_Window win, const char *type) 147ecore_x_dnd_type_isset(Ecore_X_Window win, const char *type)
148{ 148{
149 int num, i, ret = 0; 149 int num, i, ret = 0;
@@ -170,7 +170,7 @@ ecore_x_dnd_type_isset(Ecore_X_Window win, const char *type)
170 return ret; 170 return ret;
171} 171}
172 172
173void 173EAPI void
174ecore_x_dnd_type_set(Ecore_X_Window win, const char *type, int on) 174ecore_x_dnd_type_set(Ecore_X_Window win, const char *type, int on)
175{ 175{
176 Ecore_X_Atom atom; 176 Ecore_X_Atom atom;
@@ -228,7 +228,7 @@ ecore_x_dnd_type_set(Ecore_X_Window win, const char *type, int on)
228 free(newset); 228 free(newset);
229} 229}
230 230
231void 231EAPI void
232ecore_x_dnd_types_set(Ecore_X_Window win, char **types, unsigned int num_types) 232ecore_x_dnd_types_set(Ecore_X_Window win, char **types, unsigned int num_types)
233{ 233{
234 Ecore_X_Atom *newset = NULL; 234 Ecore_X_Atom *newset = NULL;
@@ -264,7 +264,7 @@ _ecore_x_dnd_target_get(void)
264 return _target; 264 return _target;
265} 265}
266 266
267int 267EAPI int
268ecore_x_dnd_begin(Ecore_X_Window source, unsigned char *data, int size) 268ecore_x_dnd_begin(Ecore_X_Window source, unsigned char *data, int size)
269{ 269{
270 270
@@ -286,7 +286,7 @@ ecore_x_dnd_begin(Ecore_X_Window source, unsigned char *data, int size)
286 return 1; 286 return 1;
287} 287}
288 288
289int 289EAPI int
290ecore_x_dnd_drop(void) 290ecore_x_dnd_drop(void)
291{ 291{
292 XEvent xev; 292 XEvent xev;
@@ -332,7 +332,7 @@ ecore_x_dnd_drop(void)
332 return status; 332 return status;
333} 333}
334 334
335void 335EAPI void
336ecore_x_dnd_send_status(int will_accept, int suppress, Ecore_X_Rectangle rectangle, Ecore_X_Atom action) 336ecore_x_dnd_send_status(int will_accept, int suppress, Ecore_X_Rectangle rectangle, Ecore_X_Atom action)
337{ 337{
338 XEvent xev; 338 XEvent xev;
@@ -379,7 +379,7 @@ ecore_x_dnd_send_status(int will_accept, int suppress, Ecore_X_Rectangle rectang
379 XSendEvent(_ecore_x_disp, _target->source, False, 0, &xev); 379 XSendEvent(_ecore_x_disp, _target->source, False, 0, &xev);
380} 380}
381 381
382void 382EAPI void
383ecore_x_dnd_send_finished(void) 383ecore_x_dnd_send_finished(void)
384{ 384{
385 XEvent xev; 385 XEvent xev;
diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_e.c b/legacy/ecore/src/lib/ecore_x/ecore_x_e.c
index 398f4cc..cc57bc8 100644
--- a/legacy/ecore/src/lib/ecore_x/ecore_x_e.c
+++ b/legacy/ecore/src/lib/ecore_x/ecore_x_e.c
@@ -18,13 +18,13 @@
18 18
19Ecore_X_Atom ECORE_X_ATOM_E_FRAME_SIZE = 0; 19Ecore_X_Atom ECORE_X_ATOM_E_FRAME_SIZE = 0;
20 20
21void 21EAPI void
22ecore_x_e_init(void) 22ecore_x_e_init(void)
23{ 23{
24 ECORE_X_ATOM_E_FRAME_SIZE = _ATOM_GET("_E_FRAME_SIZE"); 24 ECORE_X_ATOM_E_FRAME_SIZE = _ATOM_GET("_E_FRAME_SIZE");
25} 25}
26 26
27void 27EAPI void
28ecore_x_e_frame_size_set(Ecore_X_Window win, int fl, int fr, int ft, int fb) 28ecore_x_e_frame_size_set(Ecore_X_Window win, int fl, int fr, int ft, int fb)
29{ 29{
30 unsigned int frames[4]; 30 unsigned int frames[4];
diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_error.c b/legacy/ecore/src/lib/ecore_x/ecore_x_error.c
index 4307da0..3de31d6 100644
--- a/legacy/ecore/src/lib/ecore_x/ecore_x_error.c
+++ b/legacy/ecore/src/lib/ecore_x/ecore_x_error.c
@@ -20,7 +20,7 @@ static int _error_code = 0;
20 * 20 *
21 * Set the X error handler function 21 * Set the X error handler function
22 */ 22 */
23void 23EAPI void
24ecore_x_error_handler_set(void (*func) (void *data), const void *data) 24ecore_x_error_handler_set(void (*func) (void *data), const void *data)
25{ 25{
26 _error_func = func; 26 _error_func = func;
@@ -34,7 +34,7 @@ ecore_x_error_handler_set(void (*func) (void *data), const void *data)
34 * 34 *
35 * Set the X I/O error handler function 35 * Set the X I/O error handler function
36 */ 36 */
37void 37EAPI void
38ecore_x_io_error_handler_set(void (*func) (void *data), const void *data) 38ecore_x_io_error_handler_set(void (*func) (void *data), const void *data)
39{ 39{
40 _io_error_func = func; 40 _io_error_func = func;
@@ -47,7 +47,7 @@ ecore_x_io_error_handler_set(void (*func) (void *data), const void *data)
47 * 47 *
48 * Return the X request code that caused the last X error 48 * Return the X request code that caused the last X error
49 */ 49 */
50int 50EAPI int
51ecore_x_error_request_get(void) 51ecore_x_error_request_get(void)
52{ 52{
53 return _error_request_code; 53 return _error_request_code;
@@ -59,7 +59,7 @@ ecore_x_error_request_get(void)
59 * 59 *
60 * Return the error code from the last X error 60 * Return the error code from the last X error
61 */ 61 */
62int 62EAPI int
63ecore_x_error_code_get(void) 63ecore_x_error_code_get(void)
64{ 64{
65 return _error_code; 65 return _error_code;
diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_events.c b/legacy/ecore/src/lib/ecore_x/ecore_x_events.c
index 3badf29..6232ad9 100644
--- a/legacy/ecore/src/lib/ecore_x/ecore_x_events.c
+++ b/legacy/ecore/src/lib/ecore_x/ecore_x_events.c
@@ -18,7 +18,7 @@ static void _ecore_x_event_free_window_prop_client_machine_change(void *data, vo
18static void _ecore_x_event_free_key_down(void *data, void *ev); 18static void _ecore_x_event_free_key_down(void *data, void *ev);
19static void _ecore_x_event_free_key_up(void *data, void *ev); 19static void _ecore_x_event_free_key_up(void *data, void *ev);
20 20
21void 21EAPI void
22ecore_x_event_mask_set(Ecore_X_Window w, Ecore_X_Event_Mask mask) 22ecore_x_event_mask_set(Ecore_X_Window w, Ecore_X_Event_Mask mask)
23{ 23{
24 XWindowAttributes attr; 24 XWindowAttributes attr;
@@ -33,7 +33,7 @@ ecore_x_event_mask_set(Ecore_X_Window w, Ecore_X_Event_Mask mask)
33 XChangeWindowAttributes(_ecore_x_disp, w, CWEventMask, &s_attr); 33 XChangeWindowAttributes(_ecore_x_disp, w, CWEventMask, &s_attr);
34} 34}
35 35
36void 36EAPI void
37ecore_x_event_mask_unset(Ecore_X_Window w, Ecore_X_Event_Mask mask) 37ecore_x_event_mask_unset(Ecore_X_Window w, Ecore_X_Event_Mask mask)
38{ 38{
39 XWindowAttributes attr; 39 XWindowAttributes attr;
diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_gc.c b/legacy/ecore/src/lib/ecore_x/ecore_x_gc.c
index 99ff0e1..56224f0 100644
--- a/legacy/ecore/src/lib/ecore_x/ecore_x_gc.c
+++ b/legacy/ecore/src/lib/ecore_x/ecore_x_gc.c
@@ -9,7 +9,7 @@
9 * given instead, the default root window is used. 9 * given instead, the default root window is used.
10 * @return The new default graphics context. 10 * @return The new default graphics context.
11 */ 11 */
12Ecore_X_GC 12EAPI Ecore_X_GC
13ecore_x_gc_new(Ecore_X_Drawable draw) 13ecore_x_gc_new(Ecore_X_Drawable draw)
14{ 14{
15 XGCValues gcv; 15 XGCValues gcv;
@@ -22,7 +22,7 @@ ecore_x_gc_new(Ecore_X_Drawable draw)
22 * Deletes and frees the given graphics context. 22 * Deletes and frees the given graphics context.
23 * @param gc The given graphics context. 23 * @param gc The given graphics context.
24 */ 24 */
25void 25EAPI void
26ecore_x_gc_del(Ecore_X_GC gc) 26ecore_x_gc_del(Ecore_X_GC gc)
27{ 27{
28 XFreeGC(_ecore_x_disp, gc); 28 XFreeGC(_ecore_x_disp, gc);
diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_icccm.c b/legacy/ecore/src/lib/ecore_x/ecore_x_icccm.c
index 9e48284..e064160 100644
--- a/legacy/ecore/src/lib/ecore_x/ecore_x_icccm.c
+++ b/legacy/ecore/src/lib/ecore_x/ecore_x_icccm.c
@@ -31,7 +31,7 @@ Ecore_X_Atom ECORE_X_ATOM_WM_CLIENT_LEADER = 0;
31Ecore_X_Atom ECORE_X_ATOM_WM_TRANSIENT_FOR = 0; 31Ecore_X_Atom ECORE_X_ATOM_WM_TRANSIENT_FOR = 0;
32Ecore_X_Atom ECORE_X_ATOM_WM_SAVE_YOURSELF = 0; 32Ecore_X_Atom ECORE_X_ATOM_WM_SAVE_YOURSELF = 0;
33 33
34void 34EAPI void
35ecore_x_icccm_init(void) 35ecore_x_icccm_init(void)
36{ 36{
37 37
@@ -66,7 +66,7 @@ ecore_x_icccm_init(void)
66 XInternAtom(_ecore_x_disp, "WM_SAVE_YOURSELF", False); 66 XInternAtom(_ecore_x_disp, "WM_SAVE_YOURSELF", False);
67} 67}
68 68
69void 69EAPI void
70ecore_x_icccm_state_set(Ecore_X_Window win, Ecore_X_Window_State_Hint state) 70ecore_x_icccm_state_set(Ecore_X_Window win, Ecore_X_Window_State_Hint state)
71{ 71{
72 unsigned long c[2]; 72 unsigned long c[2];
@@ -83,7 +83,7 @@ ecore_x_icccm_state_set(Ecore_X_Window win, Ecore_X_Window_State_Hint state)
83 (unsigned char *)c, 2); 83 (unsigned char *)c, 2);
84} 84}
85 85
86Ecore_X_Window_State_Hint 86EAPI Ecore_X_Window_State_Hint
87ecore_x_icccm_state_get(Ecore_X_Window win) 87ecore_x_icccm_state_get(Ecore_X_Window win)
88{ 88{
89 unsigned char *prop_ret = NULL; 89 unsigned char *prop_ret = NULL;
@@ -113,7 +113,7 @@ ecore_x_icccm_state_get(Ecore_X_Window win)
113 return hint; 113 return hint;
114} 114}
115 115
116void 116EAPI void
117ecore_x_icccm_delete_window_send(Ecore_X_Window win, Ecore_X_Time t) 117ecore_x_icccm_delete_window_send(Ecore_X_Window win, Ecore_X_Time t)
118{ 118{
119 ecore_x_client_message32_send(win, ECORE_X_ATOM_WM_PROTOCOLS, 119 ecore_x_client_message32_send(win, ECORE_X_ATOM_WM_PROTOCOLS,
@@ -122,7 +122,7 @@ ecore_x_icccm_delete_window_send(Ecore_X_Window win, Ecore_X_Time t)
122 t, 0, 0, 0); 122 t, 0, 0, 0);
123} 123}
124 124
125void 125EAPI void
126ecore_x_icccm_take_focus_send(Ecore_X_Window win, Ecore_X_Time t) 126ecore_x_icccm_take_focus_send(Ecore_X_Window win, Ecore_X_Time t)
127{ 127{
128 ecore_x_client_message32_send(win, ECORE_X_ATOM_WM_PROTOCOLS, 128 ecore_x_client_message32_send(win, ECORE_X_ATOM_WM_PROTOCOLS,
@@ -131,7 +131,7 @@ ecore_x_icccm_take_focus_send(Ecore_X_Window win, Ecore_X_Time t)
131 t, 0, 0, 0); 131 t, 0, 0, 0);
132} 132}
133 133
134void 134EAPI void
135ecore_x_icccm_save_yourself_send(Ecore_X_Window win, Ecore_X_Time t) 135ecore_x_icccm_save_yourself_send(Ecore_X_Window win, Ecore_X_Time t)
136{ 136{
137 ecore_x_client_message32_send(win, ECORE_X_ATOM_WM_PROTOCOLS, 137 ecore_x_client_message32_send(win, ECORE_X_ATOM_WM_PROTOCOLS,
@@ -140,7 +140,7 @@ ecore_x_icccm_save_yourself_send(Ecore_X_Window win, Ecore_X_Time t)
140 t, 0, 0, 0); 140 t, 0, 0, 0);
141} 141}
142 142
143void 143EAPI void
144ecore_x_icccm_move_resize_send(Ecore_X_Window win, int x, int y, int w, int h) 144ecore_x_icccm_move_resize_send(Ecore_X_Window win, int x, int y, int w, int h)
145{ 145{
146 XEvent ev; 146 XEvent ev;
@@ -159,7 +159,7 @@ ecore_x_icccm_move_resize_send(Ecore_X_Window win, int x, int y, int w, int h)
159 XSendEvent(_ecore_x_disp, win, False, StructureNotifyMask, &ev); 159 XSendEvent(_ecore_x_disp, win, False, StructureNotifyMask, &ev);
160} 160}
161 161
162void 162EAPI void
163ecore_x_icccm_hints_set(Ecore_X_Window win, 163ecore_x_icccm_hints_set(Ecore_X_Window win,
164 int accepts_focus, 164 int accepts_focus,
165 Ecore_X_Window_State_Hint initial_state, 165 Ecore_X_Window_State_Hint initial_state,
@@ -208,7 +208,7 @@ ecore_x_icccm_hints_set(Ecore_X_Window win,
208 XFree(hints); 208 XFree(hints);
209} 209}
210 210
211int 211EAPI int
212ecore_x_icccm_hints_get(Ecore_X_Window win, 212ecore_x_icccm_hints_get(Ecore_X_Window win,
213 int *accepts_focus, 213 int *accepts_focus,
214 Ecore_X_Window_State_Hint *initial_state, 214 Ecore_X_Window_State_Hint *initial_state,
@@ -278,7 +278,7 @@ ecore_x_icccm_hints_get(Ecore_X_Window win,
278 return 0; 278 return 0;
279} 279}
280 280
281void 281EAPI void
282ecore_x_icccm_size_pos_hints_set(Ecore_X_Window win, 282ecore_x_icccm_size_pos_hints_set(Ecore_X_Window win,
283 int request_pos, 283 int request_pos,
284 Ecore_X_Gravity gravity, 284 Ecore_X_Gravity gravity,
@@ -341,7 +341,7 @@ ecore_x_icccm_size_pos_hints_set(Ecore_X_Window win,
341 XSetWMNormalHints(_ecore_x_disp, win, &hint); 341 XSetWMNormalHints(_ecore_x_disp, win, &hint);
342} 342}
343 343
344int 344EAPI int
345ecore_x_icccm_size_pos_hints_get(Ecore_X_Window win, 345ecore_x_icccm_size_pos_hints_get(Ecore_X_Window win,
346 int *request_pos, 346 int *request_pos,
347 Ecore_X_Gravity *gravity, 347 Ecore_X_Gravity *gravity,
@@ -445,7 +445,7 @@ ecore_x_icccm_size_pos_hints_get(Ecore_X_Window win,
445 return 1; 445 return 1;
446} 446}
447 447
448void 448EAPI void
449ecore_x_icccm_title_set(Ecore_X_Window win, const char *t) 449ecore_x_icccm_title_set(Ecore_X_Window win, const char *t)
450{ 450{
451 char *list[1]; 451 char *list[1];
@@ -480,7 +480,7 @@ ecore_x_icccm_title_set(Ecore_X_Window win, const char *t)
480 free(list[0]); 480 free(list[0]);
481} 481}
482 482
483char * 483EAPI char *
484ecore_x_icccm_title_get(Ecore_X_Window win) 484ecore_x_icccm_title_get(Ecore_X_Window win)
485{ 485{
486 XTextProperty xprop; 486 XTextProperty xprop;
@@ -537,7 +537,7 @@ ecore_x_icccm_title_get(Ecore_X_Window win)
537 * @param protocol The protocol to enable/disable 537 * @param protocol The protocol to enable/disable
538 * @param on On/Off 538 * @param on On/Off
539 */ 539 */
540void 540EAPI void
541ecore_x_icccm_protocol_set(Ecore_X_Window win, 541ecore_x_icccm_protocol_set(Ecore_X_Window win,
542 Ecore_X_WM_Protocol protocol, int on) 542 Ecore_X_WM_Protocol protocol, int on)
543{ 543{
@@ -618,7 +618,7 @@ ecore_x_icccm_protocol_set(Ecore_X_Window win,
618 * @param protocol The protocol to query 618 * @param protocol The protocol to query
619 * @return 1 if the protocol is set, else 0. 619 * @return 1 if the protocol is set, else 0.
620 */ 620 */
621int 621EAPI int
622ecore_x_icccm_protocol_isset(Ecore_X_Window win, Ecore_X_WM_Protocol protocol) 622ecore_x_icccm_protocol_isset(Ecore_X_Window win, Ecore_X_WM_Protocol protocol)
623{ 623{
624 Atom proto, *protos = NULL; 624 Atom proto, *protos = NULL;
@@ -653,7 +653,7 @@ ecore_x_icccm_protocol_isset(Ecore_X_Window win, Ecore_X_WM_Protocol protocol)
653 * 653 *
654 * Set a window name * class 654 * Set a window name * class
655 */ 655 */
656void 656EAPI void
657ecore_x_icccm_name_class_set(Ecore_X_Window win, const char *n, const char *c) 657ecore_x_icccm_name_class_set(Ecore_X_Window win, const char *n, const char *c)
658{ 658{
659 XClassHint *xch; 659 XClassHint *xch;
@@ -675,7 +675,7 @@ ecore_x_icccm_name_class_set(Ecore_X_Window win, const char *n, const char *c)
675 * 675 *
676 * Get a window name * class 676 * Get a window name * class
677 */ 677 */
678void 678EAPI void
679ecore_x_icccm_name_class_get(Ecore_X_Window win, char **n, char **c) 679ecore_x_icccm_name_class_get(Ecore_X_Window win, char **n, char **c)
680{ 680{
681 XClassHint xch; 681 XClassHint xch;
@@ -706,7 +706,7 @@ ecore_x_icccm_name_class_get(Ecore_X_Window win, char **n, char **c)
706 * 706 *
707 * Return the client machine of a window. String must be free'd when done with. 707 * Return the client machine of a window. String must be free'd when done with.
708 */ 708 */
709char * 709EAPI char *
710ecore_x_icccm_client_machine_get(Ecore_X_Window win) 710ecore_x_icccm_client_machine_get(Ecore_X_Window win)
711{ 711{
712 char *name; 712 char *name;
@@ -722,7 +722,7 @@ ecore_x_icccm_client_machine_get(Ecore_X_Window win)
722 * @param argc Number of arguments. 722 * @param argc Number of arguments.
723 * @param argv Arguments. 723 * @param argv Arguments.
724 */ 724 */
725void 725EAPI void
726ecore_x_icccm_command_set(Ecore_X_Window win, int argc, char **argv) 726ecore_x_icccm_command_set(Ecore_X_Window win, int argc, char **argv)
727{ 727{
728 XSetCommand(_ecore_x_disp, win, argv, argc); 728 XSetCommand(_ecore_x_disp, win, argv, argc);
@@ -737,7 +737,7 @@ ecore_x_icccm_command_set(Ecore_X_Window win, int argc, char **argv)
737 * @param argc Number of arguments. 737 * @param argc Number of arguments.
738 * @param argv Arguments. 738 * @param argv Arguments.
739 */ 739 */
740void 740EAPI void
741ecore_x_icccm_command_get(Ecore_X_Window win, int *argc, char ***argv) 741ecore_x_icccm_command_get(Ecore_X_Window win, int *argc, char ***argv)
742{ 742{
743 XGetCommand(_ecore_x_disp, win, argv, argc); 743 XGetCommand(_ecore_x_disp, win, argv, argc);
@@ -750,7 +750,7 @@ ecore_x_icccm_command_get(Ecore_X_Window win, int *argc, char ***argv)
750 * 750 *
751 * Set a window icon name 751 * Set a window icon name
752 */ 752 */
753void 753EAPI void
754ecore_x_icccm_icon_name_set(Ecore_X_Window win, const char *t) 754ecore_x_icccm_icon_name_set(Ecore_X_Window win, const char *t)
755{ 755{
756 char *list[1]; 756 char *list[1];
@@ -790,7 +790,7 @@ ecore_x_icccm_icon_name_set(Ecore_X_Window win, const char *t)
790 * 790 *
791 * Return the icon name of a window. String must be free'd when done with. 791 * Return the icon name of a window. String must be free'd when done with.
792 */ 792 */
793char * 793EAPI char *
794ecore_x_icccm_icon_name_get(Ecore_X_Window win) 794ecore_x_icccm_icon_name_get(Ecore_X_Window win)
795{ 795{
796 XTextProperty xprop; 796 XTextProperty xprop;
@@ -849,7 +849,7 @@ ecore_x_icccm_icon_name_get(Ecore_X_Window win)
849 * @param win The toplevel window 849 * @param win The toplevel window
850 * @param subwin The subwindow to be added to the colormap windows list 850 * @param subwin The subwindow to be added to the colormap windows list
851 */ 851 */
852void 852EAPI void
853ecore_x_icccm_colormap_window_set(Ecore_X_Window win, Ecore_X_Window subwin) 853ecore_x_icccm_colormap_window_set(Ecore_X_Window win, Ecore_X_Window subwin)
854{ 854{
855 int num = 0, i; 855 int num = 0, i;
@@ -904,7 +904,7 @@ ecore_x_icccm_colormap_window_set(Ecore_X_Window win, Ecore_X_Window subwin)
904 * @param win The toplevel window 904 * @param win The toplevel window
905 * @param subwin The window to be removed from the colormap window list. 905 * @param subwin The window to be removed from the colormap window list.
906 */ 906 */
907void 907EAPI void
908ecore_x_icccm_colormap_window_unset(Ecore_X_Window win, Ecore_X_Window subwin) 908ecore_x_icccm_colormap_window_unset(Ecore_X_Window win, Ecore_X_Window subwin)
909{ 909{
910 int num = 0, i, j, k = 0; 910 int num = 0, i, j, k = 0;
@@ -957,7 +957,7 @@ ecore_x_icccm_colormap_window_unset(Ecore_X_Window win, Ecore_X_Window subwin)
957 * @param win the transient window 957 * @param win the transient window
958 * @param forwin the toplevel window 958 * @param forwin the toplevel window
959 */ 959 */
960void 960EAPI void
961ecore_x_icccm_transient_for_set(Ecore_X_Window win, Ecore_X_Window forwin) 961ecore_x_icccm_transient_for_set(Ecore_X_Window win, Ecore_X_Window forwin)
962{ 962{
963 XSetTransientForHint(_ecore_x_disp, win, forwin); 963 XSetTransientForHint(_ecore_x_disp, win, forwin);
@@ -967,7 +967,7 @@ ecore_x_icccm_transient_for_set(Ecore_X_Window win, Ecore_X_Window forwin)
967 * Remove the transient_for setting from a window. 967 * Remove the transient_for setting from a window.
968 * @param The window 968 * @param The window
969 */ 969 */
970void 970EAPI void
971ecore_x_icccm_transient_for_unset(Ecore_X_Window win) 971ecore_x_icccm_transient_for_unset(Ecore_X_Window win)
972{ 972{
973 XDeleteProperty(_ecore_x_disp, win, ECORE_X_ATOM_WM_TRANSIENT_FOR); 973 XDeleteProperty(_ecore_x_disp, win, ECORE_X_ATOM_WM_TRANSIENT_FOR);
@@ -978,7 +978,7 @@ ecore_x_icccm_transient_for_unset(Ecore_X_Window win)
978 * @param win The window to check 978 * @param win The window to check
979 * @return The window ID of the top-level window, or 0 if the property does not exist. 979 * @return The window ID of the top-level window, or 0 if the property does not exist.
980 */ 980 */
981Ecore_X_Window 981EAPI Ecore_X_Window
982ecore_x_icccm_transient_for_get(Ecore_X_Window win) 982ecore_x_icccm_transient_for_get(Ecore_X_Window win)
983{ 983{
984 Window forwin; 984 Window forwin;
@@ -995,7 +995,7 @@ ecore_x_icccm_transient_for_get(Ecore_X_Window win)
995 * @param win The window 995 * @param win The window
996 * @param role The role string 996 * @param role The role string
997 */ 997 */
998void 998EAPI void
999ecore_x_icccm_window_role_set(Ecore_X_Window win, const char *role) 999ecore_x_icccm_window_role_set(Ecore_X_Window win, const char *role)
1000{ 1000{
1001 ecore_x_window_prop_string_set(win, ECORE_X_ATOM_WM_WINDOW_ROLE, 1001 ecore_x_window_prop_string_set(win, ECORE_X_ATOM_WM_WINDOW_ROLE,
@@ -1007,7 +1007,7 @@ ecore_x_icccm_window_role_set(Ecore_X_Window win, const char *role)
1007 * @param win The window 1007 * @param win The window
1008 * @return The window's role string. 1008 * @return The window's role string.
1009 */ 1009 */
1010char * 1010EAPI char *
1011ecore_x_icccm_window_role_get(Ecore_X_Window win) 1011ecore_x_icccm_window_role_get(Ecore_X_Window win)
1012{ 1012{
1013 return ecore_x_window_prop_string_get(win, ECORE_X_ATOM_WM_WINDOW_ROLE); 1013 return ecore_x_window_prop_string_get(win, ECORE_X_ATOM_WM_WINDOW_ROLE);
@@ -1021,7 +1021,7 @@ ecore_x_icccm_window_role_get(Ecore_X_Window win)
1021 * All non-transient top-level windows created by an app other than 1021 * All non-transient top-level windows created by an app other than
1022 * the main window must have this property set to the app's main window. 1022 * the main window must have this property set to the app's main window.
1023 */ 1023 */
1024void 1024EAPI void
1025ecore_x_icccm_client_leader_set(Ecore_X_Window win, Ecore_X_Window l) 1025ecore_x_icccm_client_leader_set(Ecore_X_Window win, Ecore_X_Window l)
1026{ 1026{
1027 ecore_x_window_prop_window_set(win, ECORE_X_ATOM_WM_CLIENT_LEADER, 1027 ecore_x_window_prop_window_set(win, ECORE_X_ATOM_WM_CLIENT_LEADER,
@@ -1032,7 +1032,7 @@ ecore_x_icccm_client_leader_set(Ecore_X_Window win, Ecore_X_Window l)
1032 * Get the window's client leader. 1032 * Get the window's client leader.
1033 * @param win The window 1033 * @param win The window
1034 * @return The window's client leader window, or 0 if unset */ 1034 * @return The window's client leader window, or 0 if unset */
1035Ecore_X_Window 1035EAPI Ecore_X_Window
1036ecore_x_icccm_client_leader_get(Ecore_X_Window win) 1036ecore_x_icccm_client_leader_get(Ecore_X_Window win)
1037{ 1037{
1038 Ecore_X_Window l; 1038 Ecore_X_Window l;
@@ -1043,7 +1043,7 @@ ecore_x_icccm_client_leader_get(Ecore_X_Window win)
1043 return 0; 1043 return 0;
1044} 1044}
1045 1045
1046void 1046EAPI void
1047ecore_x_icccm_iconic_request_send(Ecore_X_Window win, Ecore_X_Window root) 1047ecore_x_icccm_iconic_request_send(Ecore_X_Window win, Ecore_X_Window root)
1048{ 1048{
1049 XEvent xev; 1049 XEvent xev;
diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_mwm.c b/legacy/ecore/src/lib/ecore_x/ecore_x_mwm.c
index caf9e49..db76035 100644
--- a/legacy/ecore/src/lib/ecore_x/ecore_x_mwm.c
+++ b/legacy/ecore/src/lib/ecore_x/ecore_x_mwm.c
@@ -27,7 +27,7 @@ MWMHints;
27/* Atoms */ 27/* Atoms */
28Ecore_X_Atom ECORE_X_ATOM_MOTIF_WM_HINTS = 0; 28Ecore_X_Atom ECORE_X_ATOM_MOTIF_WM_HINTS = 0;
29 29
30int 30EAPI int
31ecore_x_mwm_hints_get(Ecore_X_Window win, 31ecore_x_mwm_hints_get(Ecore_X_Window win,
32 Ecore_X_MWM_Hint_Func * fhint, 32 Ecore_X_MWM_Hint_Func * fhint,
33 Ecore_X_MWM_Hint_Decor * dhint, 33 Ecore_X_MWM_Hint_Decor * dhint,
@@ -77,7 +77,7 @@ ecore_x_mwm_hints_get(Ecore_X_Window win,
77 return ret; 77 return ret;
78} 78}
79 79
80void 80EAPI void
81ecore_x_mwm_borderless_set(Ecore_X_Window win, int borderless) 81ecore_x_mwm_borderless_set(Ecore_X_Window win, int borderless)
82{ 82{
83 unsigned int data[5] = {0, 0, 0, 0, 0}; 83 unsigned int data[5] = {0, 0, 0, 0, 0};
diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_netwm.c b/legacy/ecore/src/lib/ecore_x/ecore_x_netwm.c
index 021eeb9..a7d9618 100644
--- a/legacy/ecore/src/lib/ecore_x/ecore_x_netwm.c
+++ b/legacy/ecore/src/lib/ecore_x/ecore_x_netwm.c
@@ -157,7 +157,7 @@ Ecore_X_Atom ECORE_X_ATOM_NET_WM_SYNC_REQUEST_COUNTER = 0;
157Ecore_X_Atom ECORE_X_ATOM_NET_STARTUP_INFO_BEGIN = 0; 157Ecore_X_Atom ECORE_X_ATOM_NET_STARTUP_INFO_BEGIN = 0;
158Ecore_X_Atom ECORE_X_ATOM_NET_STARTUP_INFO = 0; 158Ecore_X_Atom ECORE_X_ATOM_NET_STARTUP_INFO = 0;
159 159
160void 160EAPI void
161ecore_x_netwm_init(void) 161ecore_x_netwm_init(void)
162{ 162{
163 ECORE_X_ATOM_NET_SUPPORTED = _ATOM_GET("_NET_SUPPORTED"); 163 ECORE_X_ATOM_NET_SUPPORTED = _ATOM_GET("_NET_SUPPORTED");
@@ -254,7 +254,7 @@ ecore_x_netwm_init(void)
254 } 254 }
255} 255}
256 256
257void 257EAPI void
258ecore_x_netwm_shutdown(void) 258ecore_x_netwm_shutdown(void)
259{ 259{
260 if (startup_info) 260 if (startup_info)
@@ -265,7 +265,7 @@ ecore_x_netwm_shutdown(void)
265/* 265/*
266 * WM identification 266 * WM identification
267 */ 267 */
268void 268EAPI void
269ecore_x_netwm_wm_identify(Ecore_X_Window root, Ecore_X_Window check, 269ecore_x_netwm_wm_identify(Ecore_X_Window root, Ecore_X_Window check,
270 const char *wm_name) 270 const char *wm_name)
271{ 271{
@@ -279,13 +279,13 @@ ecore_x_netwm_wm_identify(Ecore_X_Window root, Ecore_X_Window check,
279/* 279/*
280 * Set supported atoms 280 * Set supported atoms
281 */ 281 */
282void 282EAPI void
283ecore_x_netwm_supported_set(Ecore_X_Window root, Ecore_X_Atom *supported, int num) 283ecore_x_netwm_supported_set(Ecore_X_Window root, Ecore_X_Atom *supported, int num)
284{ 284{
285 ecore_x_window_prop_atom_set(root, ECORE_X_ATOM_NET_SUPPORTED, supported, num); 285 ecore_x_window_prop_atom_set(root, ECORE_X_ATOM_NET_SUPPORTED, supported, num);
286} 286}
287 287
288int 288EAPI int
289ecore_x_netwm_supported_get(Ecore_X_Window root, Ecore_X_Atom **supported, int *num) 289ecore_x_netwm_supported_get(Ecore_X_Window root, Ecore_X_Atom **supported, int *num)
290{ 290{
291 int num_ret; 291 int num_ret;
@@ -305,21 +305,21 @@ ecore_x_netwm_supported_get(Ecore_X_Window root, Ecore_X_Atom **supported, int *
305/* 305/*
306 * Desktop configuration and status 306 * Desktop configuration and status
307 */ 307 */
308void 308EAPI void
309ecore_x_netwm_desk_count_set(Ecore_X_Window root, unsigned int n_desks) 309ecore_x_netwm_desk_count_set(Ecore_X_Window root, unsigned int n_desks)
310{ 310{
311 ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_NUMBER_OF_DESKTOPS, 311 ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_NUMBER_OF_DESKTOPS,
312 &n_desks, 1); 312 &n_desks, 1);
313} 313}
314 314
315void 315EAPI void
316ecore_x_netwm_desk_roots_set(Ecore_X_Window root, 316ecore_x_netwm_desk_roots_set(Ecore_X_Window root,
317 Ecore_X_Window *vroots, unsigned int n_desks) 317 Ecore_X_Window *vroots, unsigned int n_desks)
318{ 318{
319 ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_VIRTUAL_ROOTS, vroots, n_desks); 319 ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_VIRTUAL_ROOTS, vroots, n_desks);
320} 320}
321 321
322void 322EAPI void
323ecore_x_netwm_desk_names_set(Ecore_X_Window root, 323ecore_x_netwm_desk_names_set(Ecore_X_Window root,
324 const char **names, unsigned int n_desks) 324 const char **names, unsigned int n_desks)
325{ 325{
@@ -352,7 +352,7 @@ ecore_x_netwm_desk_names_set(Ecore_X_Window root,
352 free(buf); 352 free(buf);
353} 353}
354 354
355void 355EAPI void
356ecore_x_netwm_desk_size_set(Ecore_X_Window root, unsigned int width, 356ecore_x_netwm_desk_size_set(Ecore_X_Window root, unsigned int width,
357 unsigned int height) 357 unsigned int height)
358{ 358{
@@ -364,7 +364,7 @@ ecore_x_netwm_desk_size_set(Ecore_X_Window root, unsigned int width,
364 2); 364 2);
365} 365}
366 366
367void 367EAPI void
368ecore_x_netwm_desk_viewports_set(Ecore_X_Window root, 368ecore_x_netwm_desk_viewports_set(Ecore_X_Window root,
369 unsigned int *origins, unsigned int n_desks) 369 unsigned int *origins, unsigned int n_desks)
370{ 370{
@@ -372,7 +372,7 @@ ecore_x_netwm_desk_viewports_set(Ecore_X_Window root,
372 origins, 2 * n_desks); 372 origins, 2 * n_desks);
373} 373}
374 374
375void 375EAPI void
376ecore_x_netwm_desk_layout_set(Ecore_X_Window root, int orientation, 376ecore_x_netwm_desk_layout_set(Ecore_X_Window root, int orientation,
377 int columns, int rows, 377 int columns, int rows,
378 int starting_corner) 378 int starting_corner)
@@ -387,7 +387,7 @@ ecore_x_netwm_desk_layout_set(Ecore_X_Window root, int orientation,
387 layout, 4); 387 layout, 4);
388} 388}
389 389
390void 390EAPI void
391ecore_x_netwm_desk_workareas_set(Ecore_X_Window root, 391ecore_x_netwm_desk_workareas_set(Ecore_X_Window root,
392 unsigned int *areas, unsigned int n_desks) 392 unsigned int *areas, unsigned int n_desks)
393{ 393{
@@ -395,14 +395,14 @@ ecore_x_netwm_desk_workareas_set(Ecore_X_Window root,
395 4 * n_desks); 395 4 * n_desks);
396} 396}
397 397
398void 398EAPI void
399ecore_x_netwm_desk_current_set(Ecore_X_Window root, unsigned int desk) 399ecore_x_netwm_desk_current_set(Ecore_X_Window root, unsigned int desk)
400{ 400{
401 ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_CURRENT_DESKTOP, &desk, 401 ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_CURRENT_DESKTOP, &desk,
402 1); 402 1);
403} 403}
404 404
405void 405EAPI void
406ecore_x_netwm_showing_desktop_set(Ecore_X_Window root, int on) 406ecore_x_netwm_showing_desktop_set(Ecore_X_Window root, int on)
407{ 407{
408 unsigned int val; 408 unsigned int val;
@@ -417,7 +417,7 @@ ecore_x_netwm_showing_desktop_set(Ecore_X_Window root, int on)
417 */ 417 */
418 418
419/* Mapping order */ 419/* Mapping order */
420void 420EAPI void
421ecore_x_netwm_client_list_set(Ecore_X_Window root, 421ecore_x_netwm_client_list_set(Ecore_X_Window root,
422 Ecore_X_Window *p_clients, unsigned int n_clients) 422 Ecore_X_Window *p_clients, unsigned int n_clients)
423{ 423{
@@ -426,7 +426,7 @@ ecore_x_netwm_client_list_set(Ecore_X_Window root,
426} 426}
427 427
428/* Stacking order */ 428/* Stacking order */
429void 429EAPI void
430ecore_x_netwm_client_list_stacking_set(Ecore_X_Window root, 430ecore_x_netwm_client_list_stacking_set(Ecore_X_Window root,
431 Ecore_X_Window *p_clients, 431 Ecore_X_Window *p_clients,
432 unsigned int n_clients) 432 unsigned int n_clients)
@@ -435,20 +435,20 @@ ecore_x_netwm_client_list_stacking_set(Ecore_X_Window root,
435 p_clients, n_clients); 435 p_clients, n_clients);
436} 436}
437 437
438void 438EAPI void
439ecore_x_netwm_client_active_set(Ecore_X_Window root, Ecore_X_Window win) 439ecore_x_netwm_client_active_set(Ecore_X_Window root, Ecore_X_Window win)
440{ 440{
441 ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_ACTIVE_WINDOW, 441 ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_ACTIVE_WINDOW,
442 &win, 1); 442 &win, 1);
443} 443}
444 444
445void 445EAPI void
446ecore_x_netwm_name_set(Ecore_X_Window win, const char *name) 446ecore_x_netwm_name_set(Ecore_X_Window win, const char *name)
447{ 447{
448 _ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_NAME, name); 448 _ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_NAME, name);
449} 449}
450 450
451int 451EAPI int
452ecore_x_netwm_name_get(Ecore_X_Window win, char **name) 452ecore_x_netwm_name_get(Ecore_X_Window win, char **name)
453{ 453{
454 if (name) 454 if (name)
@@ -456,13 +456,13 @@ ecore_x_netwm_name_get(Ecore_X_Window win, char **name)
456 return 1; 456 return 1;
457} 457}
458 458
459void 459EAPI void
460ecore_x_netwm_startup_id_set(Ecore_X_Window win, const char *id) 460ecore_x_netwm_startup_id_set(Ecore_X_Window win, const char *id)
461{ 461{
462 _ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_STARTUP_ID, id); 462 _ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_STARTUP_ID, id);
463} 463}
464 464
465int 465EAPI int
466ecore_x_netwm_startup_id_get(Ecore_X_Window win, char **id) 466ecore_x_netwm_startup_id_get(Ecore_X_Window win, char **id)
467{ 467{
468 if (id) 468 if (id)
@@ -470,14 +470,14 @@ ecore_x_netwm_startup_id_get(Ecore_X_Window win, char **id)
470 return 1; 470 return 1;
471} 471}
472 472
473void 473EAPI void
474ecore_x_netwm_visible_name_set(Ecore_X_Window win, const char *name) 474ecore_x_netwm_visible_name_set(Ecore_X_Window win, const char *name)
475{ 475{
476 _ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_VISIBLE_NAME, 476 _ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_VISIBLE_NAME,
477 name); 477 name);
478} 478}
479 479
480int 480EAPI int
481ecore_x_netwm_visible_name_get(Ecore_X_Window win, char **name) 481ecore_x_netwm_visible_name_get(Ecore_X_Window win, char **name)
482{ 482{
483 if (name) 483 if (name)
@@ -486,14 +486,14 @@ ecore_x_netwm_visible_name_get(Ecore_X_Window win, char **name)
486 return 1; 486 return 1;
487} 487}
488 488
489void 489EAPI void
490ecore_x_netwm_icon_name_set(Ecore_X_Window win, const char *name) 490ecore_x_netwm_icon_name_set(Ecore_X_Window win, const char *name)
491{ 491{
492 _ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_ICON_NAME, 492 _ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_ICON_NAME,
493 name); 493 name);
494} 494}
495 495
496int 496EAPI int
497ecore_x_netwm_icon_name_get(Ecore_X_Window win, char **name) 497ecore_x_netwm_icon_name_get(Ecore_X_Window win, char **name)
498{ 498{
499 if (name) 499 if (name)
@@ -502,7 +502,7 @@ ecore_x_netwm_icon_name_get(Ecore_X_Window win, char **name)
502 return 1; 502 return 1;
503} 503}
504 504
505void 505EAPI void
506ecore_x_netwm_visible_icon_name_set(Ecore_X_Window win, const char *name) 506ecore_x_netwm_visible_icon_name_set(Ecore_X_Window win, const char *name)
507{ 507{
508 _ecore_x_window_prop_string_utf8_set(win, 508 _ecore_x_window_prop_string_utf8_set(win,
@@ -510,7 +510,7 @@ ecore_x_netwm_visible_icon_name_set(Ecore_X_Window win, const char *name)
510 name); 510 name);
511} 511}
512 512
513int 513EAPI int
514ecore_x_netwm_visible_icon_name_get(Ecore_X_Window win, char **name) 514ecore_x_netwm_visible_icon_name_get(Ecore_X_Window win, char **name)
515{ 515{
516 if (name) 516 if (name)
@@ -519,13 +519,13 @@ ecore_x_netwm_visible_icon_name_get(Ecore_X_Window win, char **name)
519 return 1; 519 return 1;
520} 520}
521 521
522void 522EAPI void
523ecore_x_netwm_desktop_set(Ecore_X_Window win, unsigned int desk) 523ecore_x_netwm_desktop_set(Ecore_X_Window win, unsigned int desk)
524{ 524{
525 ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_DESKTOP, &desk, 1); 525 ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_DESKTOP, &desk, 1);
526} 526}
527 527
528int 528EAPI int
529ecore_x_netwm_desktop_get(Ecore_X_Window win, unsigned int *desk) 529ecore_x_netwm_desktop_get(Ecore_X_Window win, unsigned int *desk)
530{ 530{
531 int ret; 531 int ret;
@@ -541,7 +541,7 @@ ecore_x_netwm_desktop_get(Ecore_X_Window win, unsigned int *desk)
541/* 541/*
542 * _NET_WM_STRUT is deprecated 542 * _NET_WM_STRUT is deprecated
543 */ 543 */
544void 544EAPI void
545ecore_x_netwm_strut_set(Ecore_X_Window win, int left, int right, 545ecore_x_netwm_strut_set(Ecore_X_Window win, int left, int right,
546 int top, int bottom) 546 int top, int bottom)
547{ 547{
@@ -557,7 +557,7 @@ ecore_x_netwm_strut_set(Ecore_X_Window win, int left, int right,
557/* 557/*
558 * _NET_WM_STRUT is deprecated 558 * _NET_WM_STRUT is deprecated
559 */ 559 */
560int 560EAPI int
561ecore_x_netwm_strut_get(Ecore_X_Window win, int *left, int *right, 561ecore_x_netwm_strut_get(Ecore_X_Window win, int *left, int *right,
562 int *top, int *bottom) 562 int *top, int *bottom)
563{ 563{
@@ -575,7 +575,7 @@ ecore_x_netwm_strut_get(Ecore_X_Window win, int *left, int *right,
575 return 1; 575 return 1;
576} 576}
577 577
578void 578EAPI void
579ecore_x_netwm_strut_partial_set(Ecore_X_Window win, int left, int right, 579ecore_x_netwm_strut_partial_set(Ecore_X_Window win, int left, int right,
580 int top, int bottom, int left_start_y, int left_end_y, 580 int top, int bottom, int left_start_y, int left_end_y,
581 int right_start_y, int right_end_y, int top_start_x, 581 int right_start_y, int right_end_y, int top_start_x,
@@ -598,7 +598,7 @@ ecore_x_netwm_strut_partial_set(Ecore_X_Window win, int left, int right,
598 ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_STRUT_PARTIAL, strut, 12); 598 ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_STRUT_PARTIAL, strut, 12);
599} 599}
600 600
601int 601EAPI int
602ecore_x_netwm_strut_partial_get(Ecore_X_Window win, int *left, int *right, 602ecore_x_netwm_strut_partial_get(Ecore_X_Window win, int *left, int *right,
603 int *top, int *bottom, int *left_start_y, int *left_end_y, 603 int *top, int *bottom, int *left_start_y, int *left_end_y,
604 int *right_start_y, int *right_end_y, int *top_start_x, 604 int *right_start_y, int *right_end_y, int *top_start_x,
@@ -626,7 +626,7 @@ ecore_x_netwm_strut_partial_get(Ecore_X_Window win, int *left, int *right,
626 return 1; 626 return 1;
627} 627}
628 628
629int 629EAPI int
630ecore_x_netwm_icons_get(Ecore_X_Window win, Ecore_X_Icon **icon, int *num) 630ecore_x_netwm_icons_get(Ecore_X_Window win, Ecore_X_Icon **icon, int *num)
631{ 631{
632 unsigned int *data, *p; 632 unsigned int *data, *p;
@@ -710,7 +710,7 @@ ecore_x_netwm_icons_get(Ecore_X_Window win, Ecore_X_Icon **icon, int *num)
710 return 1; 710 return 1;
711} 711}
712 712
713void 713EAPI void
714ecore_x_netwm_icon_geometry_set(Ecore_X_Window win, int x, int y, int width, int height) 714ecore_x_netwm_icon_geometry_set(Ecore_X_Window win, int x, int y, int width, int height)
715{ 715{
716 unsigned int geometry[4]; 716 unsigned int geometry[4];
@@ -722,7 +722,7 @@ ecore_x_netwm_icon_geometry_set(Ecore_X_Window win, int x, int y, int width, int
722 ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_ICON_GEOMETRY, geometry, 4); 722 ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_ICON_GEOMETRY, geometry, 4);
723} 723}
724 724
725int 725EAPI int
726ecore_x_netwm_icon_geometry_get(Ecore_X_Window win, int *x, int *y, int *width, int *height) 726ecore_x_netwm_icon_geometry_get(Ecore_X_Window win, int *x, int *y, int *width, int *height)
727{ 727{
728 int ret; 728 int ret;
@@ -739,7 +739,7 @@ ecore_x_netwm_icon_geometry_get(Ecore_X_Window win, int *x, int *y, int *width,
739 return 1; 739 return 1;
740} 740}
741 741
742void 742EAPI void
743ecore_x_netwm_pid_set(Ecore_X_Window win, int pid) 743ecore_x_netwm_pid_set(Ecore_X_Window win, int pid)
744{ 744{
745 unsigned int tmp; 745 unsigned int tmp;
@@ -749,7 +749,7 @@ ecore_x_netwm_pid_set(Ecore_X_Window win, int pid)
749 &tmp, 1); 749 &tmp, 1);
750} 750}
751 751
752int 752EAPI int
753ecore_x_netwm_pid_get(Ecore_X_Window win, int *pid) 753ecore_x_netwm_pid_get(Ecore_X_Window win, int *pid)
754{ 754{
755 int ret; 755 int ret;
@@ -761,14 +761,14 @@ ecore_x_netwm_pid_get(Ecore_X_Window win, int *pid)
761 return ret == 1 ? 1 : 0; 761 return ret == 1 ? 1 : 0;
762} 762}
763 763
764void 764EAPI void
765ecore_x_netwm_handled_icons_set(Ecore_X_Window win) 765ecore_x_netwm_handled_icons_set(Ecore_X_Window win)
766{ 766{
767 ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_HANDLED_ICONS, 767 ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_HANDLED_ICONS,
768 NULL, 0); 768 NULL, 0);
769} 769}
770 770
771int 771EAPI int
772ecore_x_netwm_handled_icons_get(Ecore_X_Window win) 772ecore_x_netwm_handled_icons_get(Ecore_X_Window win)
773{ 773{
774 int ret = 0; 774 int ret = 0;
@@ -777,14 +777,14 @@ ecore_x_netwm_handled_icons_get(Ecore_X_Window win)
777 return ret == 0 ? 1 : 0; 777 return ret == 0 ? 1 : 0;
778} 778}
779 779
780void 780EAPI void
781ecore_x_netwm_user_time_set(Ecore_X_Window win, unsigned int time) 781ecore_x_netwm_user_time_set(Ecore_X_Window win, unsigned int time)
782{ 782{
783 ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_USER_TIME, 783 ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_USER_TIME,
784 &time, 1); 784 &time, 1);
785} 785}
786 786
787int 787EAPI int
788ecore_x_netwm_user_time_get(Ecore_X_Window win, unsigned int *time) 788ecore_x_netwm_user_time_get(Ecore_X_Window win, unsigned int *time)
789{ 789{
790 int ret; 790 int ret;
@@ -861,7 +861,7 @@ _ecore_x_netwm_state_atom_get(Ecore_X_Window_State s)
861 } 861 }
862} 862}
863 863
864void 864EAPI void
865ecore_x_netwm_window_state_set(Ecore_X_Window win, Ecore_X_Window_State *state, unsigned int num) 865ecore_x_netwm_window_state_set(Ecore_X_Window win, Ecore_X_Window_State *state, unsigned int num)
866{ 866{
867 Ecore_X_Atom *set; 867 Ecore_X_Atom *set;
@@ -884,7 +884,7 @@ ecore_x_netwm_window_state_set(Ecore_X_Window win, Ecore_X_Window_State *state,
884 free(set); 884 free(set);
885} 885}
886 886
887int 887EAPI int
888ecore_x_netwm_window_state_get(Ecore_X_Window win, Ecore_X_Window_State **state, unsigned int *num) 888ecore_x_netwm_window_state_get(Ecore_X_Window win, Ecore_X_Window_State **state, unsigned int *num)
889{ 889{
890 int num_ret, i; 890 int num_ret, i;
@@ -965,7 +965,7 @@ _ecore_x_netwm_window_type_atom_get(Ecore_X_Window_Type type)
965 * FIXME: We should set WM_TRANSIENT_FOR if type is ECORE_X_WINDOW_TYPE_TOOLBAR 965 * FIXME: We should set WM_TRANSIENT_FOR if type is ECORE_X_WINDOW_TYPE_TOOLBAR
966 * , ECORE_X_WINDOW_TYPE_MENU or ECORE_X_WINDOW_TYPE_DIALOG 966 * , ECORE_X_WINDOW_TYPE_MENU or ECORE_X_WINDOW_TYPE_DIALOG
967 */ 967 */
968void 968EAPI void
969ecore_x_netwm_window_type_set(Ecore_X_Window win, Ecore_X_Window_Type type) 969ecore_x_netwm_window_type_set(Ecore_X_Window win, Ecore_X_Window_Type type)
970{ 970{
971 Ecore_X_Atom atom; 971 Ecore_X_Atom atom;
@@ -976,7 +976,7 @@ ecore_x_netwm_window_type_set(Ecore_X_Window win, Ecore_X_Window_Type type)
976} 976}
977 977
978/* FIXME: Maybe return 0 on some conditions? */ 978/* FIXME: Maybe return 0 on some conditions? */
979int 979EAPI int
980ecore_x_netwm_window_type_get(Ecore_X_Window win, Ecore_X_Window_Type *type) 980ecore_x_netwm_window_type_get(Ecore_X_Window win, Ecore_X_Window_Type *type)
981{ 981{
982 int num, i; 982 int num, i;
@@ -1040,7 +1040,7 @@ _ecore_x_netwm_action_atom_get(Ecore_X_Action action)
1040} 1040}
1041 1041
1042/* FIXME: Get complete list */ 1042/* FIXME: Get complete list */
1043int 1043EAPI int
1044ecore_x_netwm_allowed_action_isset(Ecore_X_Window win, Ecore_X_Action action) 1044ecore_x_netwm_allowed_action_isset(Ecore_X_Window win, Ecore_X_Action action)
1045{ 1045{
1046 int num, i, ret = 0; 1046 int num, i, ret = 0;
@@ -1067,7 +1067,7 @@ ecore_x_netwm_allowed_action_isset(Ecore_X_Window win, Ecore_X_Action action)
1067} 1067}
1068 1068
1069/* FIXME: Set complete list */ 1069/* FIXME: Set complete list */
1070void 1070EAPI void
1071ecore_x_netwm_allowed_action_set(Ecore_X_Window win, Ecore_X_Action action, int on) 1071ecore_x_netwm_allowed_action_set(Ecore_X_Window win, Ecore_X_Action action, int on)
1072{ 1072{
1073 Ecore_X_Atom atom; 1073 Ecore_X_Atom atom;
@@ -1079,14 +1079,14 @@ ecore_x_netwm_allowed_action_set(Ecore_X_Window win, Ecore_X_Action action, int
1079 atom, on); 1079 atom, on);
1080} 1080}
1081 1081
1082void 1082EAPI void
1083ecore_x_netwm_opacity_set(Ecore_X_Window win, unsigned int opacity) 1083ecore_x_netwm_opacity_set(Ecore_X_Window win, unsigned int opacity)
1084{ 1084{
1085 ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_WINDOW_OPACITY, 1085 ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_WINDOW_OPACITY,
1086 &opacity, 1); 1086 &opacity, 1);
1087} 1087}
1088 1088
1089int 1089EAPI int
1090ecore_x_netwm_opacity_get(Ecore_X_Window win, unsigned int *opacity) 1090ecore_x_netwm_opacity_get(Ecore_X_Window win, unsigned int *opacity)
1091{ 1091{
1092 int ret; 1092 int ret;
@@ -1098,7 +1098,7 @@ ecore_x_netwm_opacity_get(Ecore_X_Window win, unsigned int *opacity)
1098 return ret == 1 ? 1 : 0; 1098 return ret == 1 ? 1 : 0;
1099} 1099}
1100 1100
1101void 1101EAPI void
1102ecore_x_netwm_frame_size_set(Ecore_X_Window win, int fl, int fr, int ft, int fb) 1102ecore_x_netwm_frame_size_set(Ecore_X_Window win, int fl, int fr, int ft, int fb)
1103{ 1103{
1104 unsigned int frames[4]; 1104 unsigned int frames[4];
@@ -1110,7 +1110,7 @@ ecore_x_netwm_frame_size_set(Ecore_X_Window win, int fl, int fr, int ft, int fb)
1110 ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_FRAME_EXTENTS, frames, 4); 1110 ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_FRAME_EXTENTS, frames, 4);
1111} 1111}
1112 1112
1113int 1113EAPI int
1114ecore_x_netwm_frame_size_get(Ecore_X_Window win, int *fl, int *fr, int *ft, int *fb) 1114ecore_x_netwm_frame_size_get(Ecore_X_Window win, int *fl, int *fr, int *ft, int *fb)
1115{ 1115{
1116 int ret = 0; 1116 int ret = 0;
@@ -1127,7 +1127,7 @@ ecore_x_netwm_frame_size_get(Ecore_X_Window win, int *fl, int *fr, int *ft, int
1127 return 1; 1127 return 1;
1128} 1128}
1129 1129
1130int 1130EAPI int
1131ecore_x_netwm_sync_counter_get(Ecore_X_Window win, Ecore_X_Sync_Counter *counter) 1131ecore_x_netwm_sync_counter_get(Ecore_X_Window win, Ecore_X_Sync_Counter *counter)
1132{ 1132{
1133 int ret; 1133 int ret;
@@ -1140,7 +1140,7 @@ ecore_x_netwm_sync_counter_get(Ecore_X_Window win, Ecore_X_Sync_Counter *counter
1140 return ret == 1 ? 1 : 0; 1140 return ret == 1 ? 1 : 0;
1141} 1141}
1142 1142
1143void 1143EAPI void
1144ecore_x_netwm_ping_send(Ecore_X_Window win) 1144ecore_x_netwm_ping_send(Ecore_X_Window win)
1145{ 1145{
1146 XEvent xev; 1146 XEvent xev;
@@ -1162,7 +1162,7 @@ ecore_x_netwm_ping_send(Ecore_X_Window win)
1162 XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev); 1162 XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev);
1163} 1163}
1164 1164
1165void 1165EAPI void
1166ecore_x_netwm_sync_request_send(Ecore_X_Window win, unsigned int serial) 1166ecore_x_netwm_sync_request_send(Ecore_X_Window win, unsigned int serial)
1167{ 1167{
1168 XSyncValue value; 1168 XSyncValue value;
@@ -1186,7 +1186,7 @@ ecore_x_netwm_sync_request_send(Ecore_X_Window win, unsigned int serial)
1186 XSendEvent(_ecore_x_disp, win, False, 0, &xev); 1186 XSendEvent(_ecore_x_disp, win, False, 0, &xev);
1187} 1187}
1188 1188
1189void 1189EAPI void
1190ecore_x_netwm_state_request_send(Ecore_X_Window win, Ecore_X_Window root, 1190ecore_x_netwm_state_request_send(Ecore_X_Window win, Ecore_X_Window root,
1191 Ecore_X_Window_State s1, Ecore_X_Window_State s2, int set) 1191 Ecore_X_Window_State s1, Ecore_X_Window_State s2, int set)
1192{ 1192{
@@ -1213,7 +1213,7 @@ ecore_x_netwm_state_request_send(Ecore_X_Window win, Ecore_X_Window root,
1213 XSendEvent(_ecore_x_disp, root, False, 0, &xev); 1213 XSendEvent(_ecore_x_disp, root, False, 0, &xev);
1214} 1214}
1215 1215
1216void 1216EAPI void
1217ecore_x_netwm_desktop_request_send(Ecore_X_Window win, Ecore_X_Window root, unsigned int desktop) 1217ecore_x_netwm_desktop_request_send(Ecore_X_Window win, Ecore_X_Window root, unsigned int desktop)
1218{ 1218{
1219 XEvent xev; 1219 XEvent xev;
diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_pixmap.c b/legacy/ecore/src/lib/ecore_x/ecore_x_pixmap.c
index bfc96a2..9911200 100644
--- a/legacy/ecore/src/lib/ecore_x/ecore_x_pixmap.c
+++ b/legacy/ecore/src/lib/ecore_x/ecore_x_pixmap.c
@@ -20,7 +20,7 @@
20 * @return New pixmap. 20 * @return New pixmap.
21 * @ingroup Ecore_X_Pixmap_Group 21 * @ingroup Ecore_X_Pixmap_Group
22 */ 22 */
23Ecore_X_Pixmap 23EAPI Ecore_X_Pixmap
24ecore_x_pixmap_new(Ecore_X_Window win, int w, int h, int dep) 24ecore_x_pixmap_new(Ecore_X_Window win, int w, int h, int dep)
25{ 25{
26 if (win == 0) win = DefaultRootWindow(_ecore_x_disp); 26 if (win == 0) win = DefaultRootWindow(_ecore_x_disp);
@@ -37,7 +37,7 @@ ecore_x_pixmap_new(Ecore_X_Window win, int w, int h, int dep)
37 * @param pmap The given pixmap. 37 * @param pmap The given pixmap.
38 * @ingroup Ecore_X_Pixmap_Group 38 * @ingroup Ecore_X_Pixmap_Group
39 */ 39 */
40void 40EAPI void
41ecore_x_pixmap_del(Ecore_X_Pixmap pmap) 41ecore_x_pixmap_del(Ecore_X_Pixmap pmap)
42{ 42{
43 XFreePixmap(_ecore_x_disp, pmap); 43 XFreePixmap(_ecore_x_disp, pmap);
@@ -57,7 +57,7 @@ ecore_x_pixmap_del(Ecore_X_Pixmap pmap)
57 * @param dy The Y position at which to paste the area on @p dest. 57 * @param dy The Y position at which to paste the area on @p dest.
58 * @ingroup Ecore_X_Pixmap_Group 58 * @ingroup Ecore_X_Pixmap_Group
59 */ 59 */
60void 60EAPI void
61ecore_x_pixmap_paste(Ecore_X_Pixmap pmap, Ecore_X_Drawable dest, 61ecore_x_pixmap_paste(Ecore_X_Pixmap pmap, Ecore_X_Drawable dest,
62 Ecore_X_GC gc, int sx, int sy, 62 Ecore_X_GC gc, int sx, int sy,
63 int w, int h, int dx, int dy) 63 int w, int h, int dx, int dy)
@@ -74,7 +74,7 @@ ecore_x_pixmap_paste(Ecore_X_Pixmap pmap, Ecore_X_Drawable dest,
74 * @param h Pointer to an integer in which to store the height. 74 * @param h Pointer to an integer in which to store the height.
75 * @ingroup Ecore_X_Pixmap_Group 75 * @ingroup Ecore_X_Pixmap_Group
76 */ 76 */
77void 77EAPI void
78ecore_x_pixmap_geometry_get(Ecore_X_Pixmap pmap, int *x, int *y, int *w, int *h) 78ecore_x_pixmap_geometry_get(Ecore_X_Pixmap pmap, int *x, int *y, int *w, int *h)
79{ 79{
80 if (pmap) 80 if (pmap)
@@ -87,7 +87,7 @@ ecore_x_pixmap_geometry_get(Ecore_X_Pixmap pmap, int *x, int *y, int *w, int *h)
87 * @return The depth of the pixmap. 87 * @return The depth of the pixmap.
88 * @ingroup Ecore_X_Pixmap_Group 88 * @ingroup Ecore_X_Pixmap_Group
89 */ 89 */
90int 90EAPI int
91ecore_x_pixmap_depth_get(Ecore_X_Pixmap pmap) 91ecore_x_pixmap_depth_get(Ecore_X_Pixmap pmap)
92{ 92{
93 return ecore_x_drawable_depth_get(pmap); 93 return ecore_x_drawable_depth_get(pmap);
diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_randr.c b/legacy/ecore/src/lib/ecore_x/ecore_x_randr.c
index 9834416..d961c07 100644
--- a/legacy/ecore/src/lib/ecore_x/ecore_x_randr.c
+++ b/legacy/ecore/src/lib/ecore_x/ecore_x_randr.c
@@ -3,7 +3,7 @@
3 */ 3 */
4#include "ecore_x_private.h" 4#include "ecore_x_private.h"
5 5
6int 6EAPI int
7ecore_x_randr_events_select(Ecore_X_Window win, int on) 7ecore_x_randr_events_select(Ecore_X_Window win, int on)
8{ 8{
9#ifdef ECORE_XRANDR 9#ifdef ECORE_XRANDR
@@ -18,7 +18,7 @@ ecore_x_randr_events_select(Ecore_X_Window win, int on)
18#endif 18#endif
19} 19}
20 20
21Ecore_X_Screen_Size * 21EAPI Ecore_X_Screen_Size *
22ecore_x_randr_screen_sizes_get(Ecore_X_Window root, int *num) 22ecore_x_randr_screen_sizes_get(Ecore_X_Window root, int *num)
23{ 23{
24#ifdef ECORE_XRANDR 24#ifdef ECORE_XRANDR
@@ -46,7 +46,7 @@ ecore_x_randr_screen_sizes_get(Ecore_X_Window root, int *num)
46#endif 46#endif
47} 47}
48 48
49Ecore_X_Screen_Size 49EAPI Ecore_X_Screen_Size
50ecore_x_randr_current_screen_size_get(Ecore_X_Window root) 50ecore_x_randr_current_screen_size_get(Ecore_X_Window root)
51{ 51{
52 Ecore_X_Screen_Size ret = { -1, -1 }; 52 Ecore_X_Screen_Size ret = { -1, -1 };
@@ -75,7 +75,7 @@ ecore_x_randr_current_screen_size_get(Ecore_X_Window root)
75 return ret; 75 return ret;
76} 76}
77 77
78int 78EAPI int
79ecore_x_randr_screen_size_set(Ecore_X_Window root, Ecore_X_Screen_Size size) 79ecore_x_randr_screen_size_set(Ecore_X_Window root, Ecore_X_Screen_Size size)
80{ 80{
81#ifdef ECORE_XRANDR 81#ifdef ECORE_XRANDR
diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_selection.c b/legacy/ecore/src/lib/ecore_x/ecore_x_selection.c
index a7160d3..8f7ef98 100644
--- a/legacy/ecore/src/lib/ecore_x/ecore_x_selection.c
+++ b/legacy/ecore/src/lib/ecore_x/ecore_x_selection.c
@@ -152,7 +152,7 @@ _ecore_x_selection_set(Window w, unsigned char *data, int size, Ecore_X_Atom sel
152 * @return Returns 1 if the ownership of the selection was successfully 152 * @return Returns 1 if the ownership of the selection was successfully
153 * claimed, or 0 if unsuccessful. 153 * claimed, or 0 if unsuccessful.
154 */ 154 */
155int 155EAPI int
156ecore_x_selection_primary_set(Ecore_X_Window w, unsigned char *data, int size) 156ecore_x_selection_primary_set(Ecore_X_Window w, unsigned char *data, int size)
157{ 157{
158 return _ecore_x_selection_set(w, data, size, ECORE_X_ATOM_SELECTION_PRIMARY); 158 return _ecore_x_selection_set(w, data, size, ECORE_X_ATOM_SELECTION_PRIMARY);
@@ -164,7 +164,7 @@ ecore_x_selection_primary_set(Ecore_X_Window w, unsigned char *data, int size)
164 * or 0 if unsuccessful. 164 * or 0 if unsuccessful.
165 * 165 *
166 */ 166 */
167int 167EAPI int
168ecore_x_selection_primary_clear(void) 168ecore_x_selection_primary_clear(void)
169{ 169{
170 return _ecore_x_selection_set(None, NULL, 0, ECORE_X_ATOM_SELECTION_PRIMARY); 170 return _ecore_x_selection_set(None, NULL, 0, ECORE_X_ATOM_SELECTION_PRIMARY);
@@ -178,7 +178,7 @@ ecore_x_selection_primary_clear(void)
178 * @return Returns 1 if the ownership of the selection was successfully 178 * @return Returns 1 if the ownership of the selection was successfully
179 * claimed, or 0 if unsuccessful. 179 * claimed, or 0 if unsuccessful.
180 */ 180 */
181int 181EAPI int
182ecore_x_selection_secondary_set(Ecore_X_Window w, unsigned char *data, int size) 182ecore_x_selection_secondary_set(Ecore_X_Window w, unsigned char *data, int size)
183{ 183{
184 return _ecore_x_selection_set(w, data, size, ECORE_X_ATOM_SELECTION_SECONDARY); 184 return _ecore_x_selection_set(w, data, size, ECORE_X_ATOM_SELECTION_SECONDARY);
@@ -190,7 +190,7 @@ ecore_x_selection_secondary_set(Ecore_X_Window w, unsigned char *data, int size)
190 * or 0 if unsuccessful. 190 * or 0 if unsuccessful.
191 * 191 *
192 */ 192 */
193int 193EAPI int
194ecore_x_selection_secondary_clear(void) 194ecore_x_selection_secondary_clear(void)
195{ 195{
196 return _ecore_x_selection_set(None, NULL, 0, ECORE_X_ATOM_SELECTION_SECONDARY); 196 return _ecore_x_selection_set(None, NULL, 0, ECORE_X_ATOM_SELECTION_SECONDARY);
@@ -204,7 +204,7 @@ ecore_x_selection_secondary_clear(void)
204 * @return Returns 1 if the ownership of the selection was successfully 204 * @return Returns 1 if the ownership of the selection was successfully
205 * claimed, or 0 if unsuccessful. 205 * claimed, or 0 if unsuccessful.
206 */ 206 */
207int 207EAPI int
208ecore_x_selection_xdnd_set(Ecore_X_Window w, unsigned char *data, int size) 208ecore_x_selection_xdnd_set(Ecore_X_Window w, unsigned char *data, int size)
209{ 209{
210 return _ecore_x_selection_set(w, data, size, ECORE_X_ATOM_SELECTION_XDND); 210 return _ecore_x_selection_set(w, data, size, ECORE_X_ATOM_SELECTION_XDND);
@@ -216,7 +216,7 @@ ecore_x_selection_xdnd_set(Ecore_X_Window w, unsigned char *data, int size)
216 * or 0 if unsuccessful. 216 * or 0 if unsuccessful.
217 * 217 *
218 */ 218 */
219int 219EAPI int
220ecore_x_selection_xdnd_clear(void) 220ecore_x_selection_xdnd_clear(void)
221{ 221{
222 return _ecore_x_selection_set(None, NULL, 0, ECORE_X_ATOM_SELECTION_XDND); 222 return _ecore_x_selection_set(None, NULL, 0, ECORE_X_ATOM_SELECTION_XDND);
@@ -233,7 +233,7 @@ ecore_x_selection_xdnd_clear(void)
233 * Get the converted data from a previous CLIPBOARD selection 233 * Get the converted data from a previous CLIPBOARD selection
234 * request. The buffer must be freed when done with. 234 * request. The buffer must be freed when done with.
235 */ 235 */
236int 236EAPI int
237ecore_x_selection_clipboard_set(Ecore_X_Window w, unsigned char *data, int size) 237ecore_x_selection_clipboard_set(Ecore_X_Window w, unsigned char *data, int size)
238{ 238{
239 return _ecore_x_selection_set(w, data, size, ECORE_X_ATOM_SELECTION_CLIPBOARD); 239 return _ecore_x_selection_set(w, data, size, ECORE_X_ATOM_SELECTION_CLIPBOARD);
@@ -245,7 +245,7 @@ ecore_x_selection_clipboard_set(Ecore_X_Window w, unsigned char *data, int size)
245 * or 0 if unsuccessful. 245 * or 0 if unsuccessful.
246 * 246 *
247 */ 247 */
248int 248EAPI int
249ecore_x_selection_clipboard_clear(void) 249ecore_x_selection_clipboard_clear(void)
250{ 250{
251 return _ecore_x_selection_set(None, NULL, 0, ECORE_X_ATOM_SELECTION_CLIPBOARD); 251 return _ecore_x_selection_set(None, NULL, 0, ECORE_X_ATOM_SELECTION_CLIPBOARD);
@@ -309,19 +309,19 @@ _ecore_x_selection_request(Ecore_X_Window w, Ecore_X_Atom selection, char *targe
309 w, CurrentTime); 309 w, CurrentTime);
310} 310}
311 311
312void 312EAPI void
313ecore_x_selection_primary_request(Ecore_X_Window w, char *target) 313ecore_x_selection_primary_request(Ecore_X_Window w, char *target)
314{ 314{
315 _ecore_x_selection_request(w, ECORE_X_ATOM_SELECTION_PRIMARY, target); 315 _ecore_x_selection_request(w, ECORE_X_ATOM_SELECTION_PRIMARY, target);
316} 316}
317 317
318void 318EAPI void
319ecore_x_selection_secondary_request(Ecore_X_Window w, char *target) 319ecore_x_selection_secondary_request(Ecore_X_Window w, char *target)
320{ 320{
321 _ecore_x_selection_request(w, ECORE_X_ATOM_SELECTION_SECONDARY, target); 321 _ecore_x_selection_request(w, ECORE_X_ATOM_SELECTION_SECONDARY, target);
322} 322}
323 323
324void 324EAPI void
325ecore_x_selection_xdnd_request(Ecore_X_Window w, char *target) 325ecore_x_selection_xdnd_request(Ecore_X_Window w, char *target)
326{ 326{
327 Ecore_X_Atom atom; 327 Ecore_X_Atom atom;
@@ -334,13 +334,13 @@ ecore_x_selection_xdnd_request(Ecore_X_Window w, char *target)
334 _target->time); 334 _target->time);
335} 335}
336 336
337void 337EAPI void
338ecore_x_selection_clipboard_request(Ecore_X_Window w, char *target) 338ecore_x_selection_clipboard_request(Ecore_X_Window w, char *target)
339{ 339{
340 _ecore_x_selection_request(w, ECORE_X_ATOM_SELECTION_CLIPBOARD, target); 340 _ecore_x_selection_request(w, ECORE_X_ATOM_SELECTION_CLIPBOARD, target);
341} 341}
342 342
343void 343EAPI void
344ecore_x_selection_converter_atom_add(Ecore_X_Atom target, 344ecore_x_selection_converter_atom_add(Ecore_X_Atom target,
345 int (*func)(char *target, void *data, int size, void **data_ret, int *size_ret)) 345 int (*func)(char *target, void *data, int size, void **data_ret, int *size_ret))
346{ 346{
@@ -374,7 +374,7 @@ ecore_x_selection_converter_atom_add(Ecore_X_Atom target,
374 cnv->convert = func; 374 cnv->convert = func;
375} 375}
376 376
377void 377EAPI void
378ecore_x_selection_converter_add(char *target, 378ecore_x_selection_converter_add(char *target,
379 int (*func)(char *target, void *data, int size, void **data_ret, int *size_ret)) 379 int (*func)(char *target, void *data, int size, void **data_ret, int *size_ret))
380{ 380{
@@ -388,7 +388,7 @@ ecore_x_selection_converter_add(char *target,
388 ecore_x_selection_converter_atom_add(x_target, func); 388 ecore_x_selection_converter_atom_add(x_target, func);
389} 389}
390 390
391void 391EAPI void
392ecore_x_selection_converter_atom_del(Ecore_X_Atom target) 392ecore_x_selection_converter_atom_del(Ecore_X_Atom target)
393{ 393{
394 Ecore_X_Selection_Converter *cnv, *prev_cnv; 394 Ecore_X_Selection_Converter *cnv, *prev_cnv;
@@ -413,7 +413,7 @@ ecore_x_selection_converter_atom_del(Ecore_X_Atom target)
413 } 413 }
414} 414}
415 415
416void 416EAPI void
417ecore_x_selection_converter_del(char *target) 417ecore_x_selection_converter_del(char *target)
418{ 418{
419 Ecore_X_Atom x_target; 419 Ecore_X_Atom x_target;
@@ -521,7 +521,7 @@ _ecore_x_selection_converter_text(char *target, void *data, int size, void **dat
521 } 521 }
522} 522}
523 523
524void 524EAPI void
525ecore_x_selection_parser_add(const char *target, 525ecore_x_selection_parser_add(const char *target,
526 void *(*func)(const char *target, unsigned char *data, int size)) 526 void *(*func)(const char *target, unsigned char *data, int size))
527{ 527{
@@ -555,7 +555,7 @@ ecore_x_selection_parser_add(const char *target,
555 prs->parse = func; 555 prs->parse = func;
556} 556}
557 557
558void 558EAPI void
559ecore_x_selection_parser_del(const char *target) 559ecore_x_selection_parser_del(const char *target)
560{ 560{
561 Ecore_X_Selection_Parser *prs, *prev_prs; 561 Ecore_X_Selection_Parser *prs, *prev_prs;
diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_sync.c b/legacy/ecore/src/lib/ecore_x/ecore_x_sync.c
index 0b567bf..feaaa27 100644
--- a/legacy/ecore/src/lib/ecore_x/ecore_x_sync.c
+++ b/legacy/ecore/src/lib/ecore_x/ecore_x_sync.c
@@ -9,7 +9,7 @@
9#include "Ecore_X.h" 9#include "Ecore_X.h"
10#include "Ecore_X_Atoms.h" 10#include "Ecore_X_Atoms.h"
11 11
12Ecore_X_Sync_Alarm 12EAPI Ecore_X_Sync_Alarm
13ecore_x_sync_alarm_new(Ecore_X_Sync_Counter counter) 13ecore_x_sync_alarm_new(Ecore_X_Sync_Counter counter)
14{ 14{
15 Ecore_X_Sync_Alarm alarm; 15 Ecore_X_Sync_Alarm alarm;
@@ -41,7 +41,7 @@ ecore_x_sync_alarm_new(Ecore_X_Sync_Counter counter)
41 return alarm; 41 return alarm;
42} 42}
43 43
44int 44EAPI int
45ecore_x_sync_alarm_free(Ecore_X_Sync_Alarm alarm) 45ecore_x_sync_alarm_free(Ecore_X_Sync_Alarm alarm)
46{ 46{
47 return XSyncDestroyAlarm(_ecore_x_disp, alarm); 47 return XSyncDestroyAlarm(_ecore_x_disp, alarm);
diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_window.c b/legacy/ecore/src/lib/ecore_x/ecore_x_window.c
index 0e49cb7..7ca633f 100644
--- a/legacy/ecore/src/lib/ecore_x/ecore_x_window.c
+++ b/legacy/ecore/src/lib/ecore_x/ecore_x_window.c
@@ -26,7 +26,7 @@ static Ecore_X_Window *ignore_list = NULL;
26 * @return The new window handle. 26 * @return The new window handle.
27 * @ingroup Ecore_X_Window_Create_Group 27 * @ingroup Ecore_X_Window_Create_Group
28 */ 28 */
29Ecore_X_Window 29EAPI Ecore_X_Window
30ecore_x_window_new(Ecore_X_Window parent, int x, int y, int w, int h) 30ecore_x_window_new(Ecore_X_Window parent, int x, int y, int w, int h)
31{ 31{
32 Window win; 32 Window win;
@@ -87,7 +87,7 @@ ecore_x_window_new(Ecore_X_Window parent, int x, int y, int w, int h)
87 * @return The new window handle. 87 * @return The new window handle.
88 * @ingroup Ecore_X_Window_Create_Group 88 * @ingroup Ecore_X_Window_Create_Group
89 */ 89 */
90Ecore_X_Window 90EAPI Ecore_X_Window
91ecore_x_window_override_new(Ecore_X_Window parent, int x, int y, int w, int h) 91ecore_x_window_override_new(Ecore_X_Window parent, int x, int y, int w, int h)
92{ 92{
93 Window win; 93 Window win;
@@ -148,7 +148,7 @@ ecore_x_window_override_new(Ecore_X_Window parent, int x, int y, int w, int h)
148 * @return The new window. 148 * @return The new window.
149 * @ingroup Ecore_X_Window_Create_Group 149 * @ingroup Ecore_X_Window_Create_Group
150 */ 150 */
151Ecore_X_Window 151EAPI Ecore_X_Window
152ecore_x_window_input_new(Ecore_X_Window parent, int x, int y, int w, int h) 152ecore_x_window_input_new(Ecore_X_Window parent, int x, int y, int w, int h)
153{ 153{
154 Window win; 154 Window win;
@@ -201,7 +201,7 @@ ecore_x_window_input_new(Ecore_X_Window parent, int x, int y, int w, int h)
201 * @param win The given window. 201 * @param win The given window.
202 * @ingroup Evas_X_Window_Properties_Groups 202 * @ingroup Evas_X_Window_Properties_Groups
203 */ 203 */
204void 204EAPI void
205ecore_x_window_defaults_set(Ecore_X_Window win) 205ecore_x_window_defaults_set(Ecore_X_Window win)
206{ 206{
207 long pid; 207 long pid;
@@ -239,7 +239,7 @@ ecore_x_window_defaults_set(Ecore_X_Window win)
239 ecore_x_icccm_command_set(win, argc, argv); 239 ecore_x_icccm_command_set(win, argc, argv);
240} 240}
241 241
242void 242EAPI void
243ecore_x_window_configure(Ecore_X_Window win, 243ecore_x_window_configure(Ecore_X_Window win,
244 Ecore_X_Window_Configure_Mask mask, 244 Ecore_X_Window_Configure_Mask mask,
245 int x, int y, int w, int h, 245 int x, int y, int w, int h,
@@ -273,7 +273,7 @@ ecore_x_window_configure(Ecore_X_Window win,
273 * @param win The given window. 273 * @param win The given window.
274 * @ingroup Evas_X_Window_Destroy_Group 274 * @ingroup Evas_X_Window_Destroy_Group
275 */ 275 */
276void 276EAPI void
277ecore_x_window_del(Ecore_X_Window win) 277ecore_x_window_del(Ecore_X_Window win)
278{ 278{
279 /* sorry sir, deleting the root window doesn't sound like 279 /* sorry sir, deleting the root window doesn't sound like
@@ -288,7 +288,7 @@ ecore_x_window_del(Ecore_X_Window win)
288 * @param win The given window. 288 * @param win The given window.
289 * @param ignore if to ignore 289 * @param ignore if to ignore
290 */ 290 */
291void 291EAPI void
292ecore_x_window_ignore_set(Ecore_X_Window win, int ignore) 292ecore_x_window_ignore_set(Ecore_X_Window win, int ignore)
293{ 293{
294 int i, j; 294 int i, j;
@@ -332,7 +332,7 @@ ecore_x_window_ignore_set(Ecore_X_Window win, int ignore)
332 * @param num number of windows in the list 332 * @param num number of windows in the list
333 * @return list of windows to ignore 333 * @return list of windows to ignore
334 */ 334 */
335Ecore_X_Window * 335EAPI Ecore_X_Window *
336ecore_x_window_ignore_list(int *num) 336ecore_x_window_ignore_list(int *num)
337{ 337{
338 if (num) *num = ignore_num; 338 if (num) *num = ignore_num;
@@ -344,7 +344,7 @@ ecore_x_window_ignore_list(int *num)
344 * @param win The given window. 344 * @param win The given window.
345 * @ingroup Evas_X_Window_Destroy_Group 345 * @ingroup Evas_X_Window_Destroy_Group
346 */ 346 */
347void 347EAPI void
348ecore_x_window_delete_request_send(Ecore_X_Window win) 348ecore_x_window_delete_request_send(Ecore_X_Window win)
349{ 349{
350 XEvent xev; 350 XEvent xev;
@@ -380,7 +380,7 @@ ecore_x_window_delete_request_send(Ecore_X_Window win)
380 * @param win The window to show. 380 * @param win The window to show.
381 * @ingroup Evas_X_Window_Visibility 381 * @ingroup Evas_X_Window_Visibility
382 */ 382 */
383void 383EAPI void
384ecore_x_window_show(Ecore_X_Window win) 384ecore_x_window_show(Ecore_X_Window win)
385{ 385{
386 XMapWindow(_ecore_x_disp, win); 386 XMapWindow(_ecore_x_disp, win);
@@ -394,7 +394,7 @@ ecore_x_window_show(Ecore_X_Window win)
394 * @param win The window to hide. 394 * @param win The window to hide.
395 * @ingroup Evas_X_Window_Visibility 395 * @ingroup Evas_X_Window_Visibility
396 */ 396 */
397void 397EAPI void
398ecore_x_window_hide(Ecore_X_Window win) 398ecore_x_window_hide(Ecore_X_Window win)
399{ 399{
400 XUnmapWindow(_ecore_x_disp, win); 400 XUnmapWindow(_ecore_x_disp, win);
@@ -417,7 +417,7 @@ ecore_x_window_hide(Ecore_X_Window win)
417 * @param y Y position. 417 * @param y Y position.
418 * @ingroup Ecore_X_Window_Geometry_Group 418 * @ingroup Ecore_X_Window_Geometry_Group
419 */ 419 */
420void 420EAPI void
421ecore_x_window_move(Ecore_X_Window win, int x, int y) 421ecore_x_window_move(Ecore_X_Window win, int x, int y)
422{ 422{
423 XMoveWindow(_ecore_x_disp, win, x, y); 423 XMoveWindow(_ecore_x_disp, win, x, y);
@@ -430,7 +430,7 @@ ecore_x_window_move(Ecore_X_Window win, int x, int y)
430 * @param h New height of the window. 430 * @param h New height of the window.
431 * @ingroup Ecore_X_Window_Geometry_Group 431 * @ingroup Ecore_X_Window_Geometry_Group
432 */ 432 */
433void 433EAPI void
434ecore_x_window_resize(Ecore_X_Window win, int w, int h) 434ecore_x_window_resize(Ecore_X_Window win, int w, int h)
435{ 435{
436 if (w < 1) w = 1; 436 if (w < 1) w = 1;
@@ -447,7 +447,7 @@ ecore_x_window_resize(Ecore_X_Window win, int w, int h)
447 * @param h New height of the window. 447 * @param h New height of the window.
448 * @ingroup Ecore_X_Window_Geometry_Group 448 * @ingroup Ecore_X_Window_Geometry_Group
449 */ 449 */
450void 450EAPI void
451ecore_x_window_move_resize(Ecore_X_Window win, int x, int y, int w, int h) 451ecore_x_window_move_resize(Ecore_X_Window win, int x, int y, int w, int h)
452{ 452{
453 if (w < 1) w = 1; 453 if (w < 1) w = 1;
@@ -466,7 +466,7 @@ ecore_x_window_move_resize(Ecore_X_Window win, int x, int y, int w, int h)
466 * @param win The window to focus. 466 * @param win The window to focus.
467 * @ingroup Ecore_X_Window_Focus_Functions 467 * @ingroup Ecore_X_Window_Focus_Functions
468 */ 468 */
469void 469EAPI void
470ecore_x_window_focus(Ecore_X_Window win) 470ecore_x_window_focus(Ecore_X_Window win)
471{ 471{
472 if (win == 0) win = DefaultRootWindow(_ecore_x_disp); 472 if (win == 0) win = DefaultRootWindow(_ecore_x_disp);
@@ -480,7 +480,7 @@ ecore_x_window_focus(Ecore_X_Window win)
480 * @param t When to set the focus to the window. 480 * @param t When to set the focus to the window.
481 * @ingroup Ecore_X_Window_Focus_Functions 481 * @ingroup Ecore_X_Window_Focus_Functions
482 */ 482 */
483void 483EAPI void
484ecore_x_window_focus_at_time(Ecore_X_Window win, Ecore_X_Time t) 484ecore_x_window_focus_at_time(Ecore_X_Window win, Ecore_X_Time t)
485{ 485{
486 if (win == 0) win = DefaultRootWindow(_ecore_x_disp); 486 if (win == 0) win = DefaultRootWindow(_ecore_x_disp);
@@ -493,7 +493,7 @@ ecore_x_window_focus_at_time(Ecore_X_Window win, Ecore_X_Time t)
493 * @return The window that has focus. 493 * @return The window that has focus.
494 * @ingroup Ecore_X_Window_Focus_Functions 494 * @ingroup Ecore_X_Window_Focus_Functions
495 */ 495 */
496Ecore_X_Window 496EAPI Ecore_X_Window
497ecore_x_window_focus_get(void) 497ecore_x_window_focus_get(void)
498{ 498{
499 Window win; 499 Window win;
@@ -516,7 +516,7 @@ ecore_x_window_focus_get(void)
516 * @param win The window to raise. 516 * @param win The window to raise.
517 * @ingroup Ecore_X_Window_Z_Order_Group 517 * @ingroup Ecore_X_Window_Z_Order_Group
518 */ 518 */
519void 519EAPI void
520ecore_x_window_raise(Ecore_X_Window win) 520ecore_x_window_raise(Ecore_X_Window win)
521{ 521{
522 XRaiseWindow(_ecore_x_disp, win); 522 XRaiseWindow(_ecore_x_disp, win);
@@ -527,7 +527,7 @@ ecore_x_window_raise(Ecore_X_Window win)
527 * @param win The window to lower. 527 * @param win The window to lower.
528 * @ingroup Ecore_X_Window_Z_Order_Group 528 * @ingroup Ecore_X_Window_Z_Order_Group
529 */ 529 */
530void 530EAPI void
531ecore_x_window_lower(Ecore_X_Window win) 531ecore_x_window_lower(Ecore_X_Window win)
532{ 532{
533 XLowerWindow(_ecore_x_disp, win); 533 XLowerWindow(_ecore_x_disp, win);
@@ -547,7 +547,7 @@ ecore_x_window_lower(Ecore_X_Window win)
547 * @param y Y position within new parent window. 547 * @param y Y position within new parent window.
548 * @ingroup Ecore_X_Window_Parent_Group 548 * @ingroup Ecore_X_Window_Parent_Group
549 */ 549 */
550void 550EAPI void
551ecore_x_window_reparent(Ecore_X_Window win, Ecore_X_Window new_parent, int x, int y) 551ecore_x_window_reparent(Ecore_X_Window win, Ecore_X_Window new_parent, int x, int y)
552{ 552{
553 if (new_parent == 0) new_parent = DefaultRootWindow(_ecore_x_disp); 553 if (new_parent == 0) new_parent = DefaultRootWindow(_ecore_x_disp);
@@ -561,7 +561,7 @@ ecore_x_window_reparent(Ecore_X_Window win, Ecore_X_Window new_parent, int x, in
561 * @param h Pointer to an integer into which the height is to be stored. 561 * @param h Pointer to an integer into which the height is to be stored.
562 * @ingroup Ecore_X_Window_Geometry_Group 562 * @ingroup Ecore_X_Window_Geometry_Group
563 */ 563 */
564void 564EAPI void
565ecore_x_window_size_get(Ecore_X_Window win, int *w, int *h) 565ecore_x_window_size_get(Ecore_X_Window win, int *w, int *h)
566{ 566{
567 int dummy_x, dummy_y; 567 int dummy_x, dummy_y;
@@ -581,7 +581,7 @@ ecore_x_window_size_get(Ecore_X_Window win, int *w, int *h)
581 * @param h Pointer to an integer in which the height is to be stored. 581 * @param h Pointer to an integer in which the height is to be stored.
582 * @ingroup Ecore_X_Window_Geometry_Group 582 * @ingroup Ecore_X_Window_Geometry_Group
583 */ 583 */
584void 584EAPI void
585ecore_x_window_geometry_get(Ecore_X_Window win, int *x, int *y, int *w, int *h) 585ecore_x_window_geometry_get(Ecore_X_Window win, int *x, int *y, int *w, int *h)
586{ 586{
587 if (!win) 587 if (!win)
@@ -596,7 +596,7 @@ ecore_x_window_geometry_get(Ecore_X_Window win, int *x, int *y, int *w, int *h)
596 * @return Width of the border of @p win. 596 * @return Width of the border of @p win.
597 * @ingroup Ecore_X_Window_Geometry_Group 597 * @ingroup Ecore_X_Window_Geometry_Group
598 */ 598 */
599int 599EAPI int
600ecore_x_window_border_width_get(Ecore_X_Window win) 600ecore_x_window_border_width_get(Ecore_X_Window win)
601{ 601{
602 /* doesn't make sense to call this on a root window */ 602 /* doesn't make sense to call this on a root window */
@@ -612,7 +612,7 @@ ecore_x_window_border_width_get(Ecore_X_Window win)
612 * @param width The new border width. 612 * @param width The new border width.
613 * @ingroup Ecore_X_Window_Geometry_Group 613 * @ingroup Ecore_X_Window_Geometry_Group
614 */ 614 */
615void 615EAPI void
616ecore_x_window_border_width_set(Ecore_X_Window win, int width) 616ecore_x_window_border_width_set(Ecore_X_Window win, int width)
617{ 617{
618 /* doesn't make sense to call this on a root window */ 618 /* doesn't make sense to call this on a root window */
@@ -627,7 +627,7 @@ ecore_x_window_border_width_set(Ecore_X_Window win, int width)
627 * @param win The given window. 627 * @param win The given window.
628 * @return Depth of the window. 628 * @return Depth of the window.
629 */ 629 */
630int 630EAPI int
631ecore_x_window_depth_get(Ecore_X_Window win) 631ecore_x_window_depth_get(Ecore_X_Window win)
632{ 632{
633 return ecore_x_drawable_depth_get(win); 633 return ecore_x_drawable_depth_get(win);
@@ -638,7 +638,7 @@ ecore_x_window_depth_get(Ecore_X_Window win)
638 * 638 *
639 * FIXME: To be fixed. 639 * FIXME: To be fixed.
640 */ 640 */
641void 641EAPI void
642ecore_x_window_cursor_show(Ecore_X_Window win, int show) 642ecore_x_window_cursor_show(Ecore_X_Window win, int show)
643{ 643{
644 if (win == 0) win = DefaultRootWindow(_ecore_x_disp); 644 if (win == 0) win = DefaultRootWindow(_ecore_x_disp);
@@ -668,7 +668,7 @@ ecore_x_window_cursor_show(Ecore_X_Window win, int show)
668 } 668 }
669} 669}
670 670
671void 671EAPI void
672ecore_x_window_cursor_set(Ecore_X_Window win, Ecore_X_Cursor c) 672ecore_x_window_cursor_set(Ecore_X_Window win, Ecore_X_Cursor c)
673{ 673{
674 if (c == 0) 674 if (c == 0)
@@ -683,7 +683,7 @@ ecore_x_window_cursor_set(Ecore_X_Window win, Ecore_X_Cursor c)
683 * @return 1 if the window is visible, otherwise 0. 683 * @return 1 if the window is visible, otherwise 0.
684 * @ingroup Ecore_X_Window_Visibility_Group 684 * @ingroup Ecore_X_Window_Visibility_Group
685 */ 685 */
686int 686EAPI int
687ecore_x_window_visible_get(Ecore_X_Window win) 687ecore_x_window_visible_get(Ecore_X_Window win)
688{ 688{
689 XWindowAttributes attr; 689 XWindowAttributes attr;
@@ -758,7 +758,7 @@ _ecore_x_window_at_xy_get(Window base, int bx, int by, int x, int y,
758 * @return The window at that position. 758 * @return The window at that position.
759 * @ingroup Ecore_X_Window_Geometry_Group 759 * @ingroup Ecore_X_Window_Geometry_Group
760 */ 760 */
761Ecore_X_Window 761EAPI Ecore_X_Window
762ecore_x_window_at_xy_get(int x, int y) 762ecore_x_window_at_xy_get(int x, int y)
763{ 763{
764 Ecore_X_Window win, root; 764 Ecore_X_Window win, root;
@@ -782,7 +782,7 @@ ecore_x_window_at_xy_get(int x, int y)
782 * @return The window at that position. 782 * @return The window at that position.
783 * @ingroup Ecore_X_Window_Geometry_Group 783 * @ingroup Ecore_X_Window_Geometry_Group
784 */ 784 */
785Ecore_X_Window 785EAPI Ecore_X_Window
786ecore_x_window_at_xy_with_skip_get(int x, int y, Ecore_X_Window *skip, int skip_num) 786ecore_x_window_at_xy_with_skip_get(int x, int y, Ecore_X_Window *skip, int skip_num)
787{ 787{
788 Ecore_X_Window win, root; 788 Ecore_X_Window win, root;
@@ -804,7 +804,7 @@ ecore_x_window_at_xy_with_skip_get(int x, int y, Ecore_X_Window *skip, int skip_
804 * @return The parent window of @p win. 804 * @return The parent window of @p win.
805 * @ingroup Ecore_X_Window_Parent_Group 805 * @ingroup Ecore_X_Window_Parent_Group
806 */ 806 */
807Ecore_X_Window 807EAPI Ecore_X_Window
808ecore_x_window_parent_get(Ecore_X_Window win) 808ecore_x_window_parent_get(Ecore_X_Window win)
809{ 809{
810 Window root, parent, *children = NULL; 810 Window root, parent, *children = NULL;
@@ -823,7 +823,7 @@ ecore_x_window_parent_get(Ecore_X_Window win)
823 * @param win The given window 823 * @param win The given window
824 * @param color The color to set to (i.e. 0xff0000) 824 * @param color The color to set to (i.e. 0xff0000)
825 */ 825 */
826void 826EAPI void
827ecore_x_window_background_color_set(Ecore_X_Window win, unsigned short r, 827ecore_x_window_background_color_set(Ecore_X_Window win, unsigned short r,
828 unsigned short g, unsigned short b) 828 unsigned short g, unsigned short b)
829{ 829{
@@ -842,7 +842,7 @@ ecore_x_window_background_color_set(Ecore_X_Window win, unsigned short r,
842 XChangeWindowAttributes(_ecore_x_disp, win, CWBackPixel, &attr); 842 XChangeWindowAttributes(_ecore_x_disp, win, CWBackPixel, &attr);
843} 843}
844 844
845void 845EAPI void
846ecore_x_window_gravity_set(Ecore_X_Window win, Ecore_X_Gravity grav) 846ecore_x_window_gravity_set(Ecore_X_Window win, Ecore_X_Gravity grav)
847{ 847{
848 XSetWindowAttributes att; 848 XSetWindowAttributes att;
@@ -851,7 +851,7 @@ ecore_x_window_gravity_set(Ecore_X_Window win, Ecore_X_Gravity grav)
851 XChangeWindowAttributes(_ecore_x_disp, win, CWWinGravity, &att); 851 XChangeWindowAttributes(_ecore_x_disp, win, CWWinGravity, &att);
852} 852}
853 853
854void 854EAPI void
855ecore_x_window_pixel_gravity_set(Ecore_X_Window win, Ecore_X_Gravity grav) 855ecore_x_window_pixel_gravity_set(Ecore_X_Window win, Ecore_X_Gravity grav)
856{ 856{
857 XSetWindowAttributes att; 857 XSetWindowAttributes att;
@@ -860,19 +860,19 @@ ecore_x_window_pixel_gravity_set(Ecore_X_Window win, Ecore_X_Gravity grav)
860 XChangeWindowAttributes(_ecore_x_disp, win, CWBitGravity, &att); 860 XChangeWindowAttributes(_ecore_x_disp, win, CWBitGravity, &att);
861} 861}
862 862
863void 863EAPI void
864ecore_x_window_pixmap_set(Ecore_X_Window win, Ecore_X_Pixmap pmap) 864ecore_x_window_pixmap_set(Ecore_X_Window win, Ecore_X_Pixmap pmap)
865{ 865{
866 XSetWindowBackgroundPixmap(_ecore_x_disp, win, pmap); 866 XSetWindowBackgroundPixmap(_ecore_x_disp, win, pmap);
867} 867}
868 868
869void 869EAPI void
870ecore_x_window_area_clear(Ecore_X_Window win, int x, int y, int w, int h) 870ecore_x_window_area_clear(Ecore_X_Window win, int x, int y, int w, int h)
871{ 871{
872 XClearArea(_ecore_x_disp, win, x, y, w, h, False); 872 XClearArea(_ecore_x_disp, win, x, y, w, h, False);
873} 873}
874 874
875void 875EAPI void
876ecore_x_window_area_expose(Ecore_X_Window win, int x, int y, int w, int h) 876ecore_x_window_area_expose(Ecore_X_Window win, int x, int y, int w, int h)
877{ 877{
878 XClearArea(_ecore_x_disp, win, x, y, w, h, True); 878 XClearArea(_ecore_x_disp, win, x, y, w, h, True);
diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_window_prop.c b/legacy/ecore/src/lib/ecore_x/ecore_x_window_prop.c
index 83243f3..d8cbd18 100644
--- a/legacy/ecore/src/lib/ecore_x/ecore_x_window_prop.c
+++ b/legacy/ecore/src/lib/ecore_x/ecore_x_window_prop.c
@@ -15,7 +15,7 @@
15/* 15/*
16 * Set CARD32 (array) property 16 * Set CARD32 (array) property
17 */ 17 */
18void 18EAPI void
19ecore_x_window_prop_card32_set(Ecore_X_Window win, Ecore_X_Atom atom, 19ecore_x_window_prop_card32_set(Ecore_X_Window win, Ecore_X_Atom atom,
20 unsigned int *val, unsigned int num) 20 unsigned int *val, unsigned int num)
21{ 21{
@@ -43,7 +43,7 @@ ecore_x_window_prop_card32_set(Ecore_X_Window win, Ecore_X_Atom atom,
43 * val is returned, otherwise -1 is returned. 43 * val is returned, otherwise -1 is returned.
44 * Note: Return value 0 means that the property exists but has no elements. 44 * Note: Return value 0 means that the property exists but has no elements.
45 */ 45 */
46int 46EAPI int
47ecore_x_window_prop_card32_get(Ecore_X_Window win, Ecore_X_Atom atom, 47ecore_x_window_prop_card32_get(Ecore_X_Window win, Ecore_X_Atom atom,
48 unsigned int *val, unsigned int len) 48 unsigned int *val, unsigned int len)
49{ 49{
@@ -85,7 +85,7 @@ ecore_x_window_prop_card32_get(Ecore_X_Window win, Ecore_X_Atom atom,
85 * val is returned, otherwise -1 is returned. 85 * val is returned, otherwise -1 is returned.
86 * Note: Return value 0 means that the property exists but has no elements. 86 * Note: Return value 0 means that the property exists but has no elements.
87 */ 87 */
88int 88EAPI int
89ecore_x_window_prop_card32_list_get(Ecore_X_Window win, Ecore_X_Atom atom, 89ecore_x_window_prop_card32_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
90 unsigned int **plst) 90 unsigned int **plst)
91{ 91{
@@ -129,7 +129,7 @@ ecore_x_window_prop_card32_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
129/* 129/*
130 * Set X ID (array) property 130 * Set X ID (array) property
131 */ 131 */
132void 132EAPI void
133ecore_x_window_prop_xid_set(Ecore_X_Window win, Ecore_X_Atom atom, 133ecore_x_window_prop_xid_set(Ecore_X_Window win, Ecore_X_Atom atom,
134 Ecore_X_Atom type, Ecore_X_ID * lst, 134 Ecore_X_Atom type, Ecore_X_ID * lst,
135 unsigned int num) 135 unsigned int num)
@@ -160,7 +160,7 @@ ecore_x_window_prop_xid_set(Ecore_X_Window win, Ecore_X_Atom atom,
160 * val is returned, otherwise -1 is returned. 160 * val is returned, otherwise -1 is returned.
161 * Note: Return value 0 means that the property exists but has no elements. 161 * Note: Return value 0 means that the property exists but has no elements.
162 */ 162 */
163int 163EAPI int
164ecore_x_window_prop_xid_get(Ecore_X_Window win, Ecore_X_Atom atom, 164ecore_x_window_prop_xid_get(Ecore_X_Window win, Ecore_X_Atom atom,
165 Ecore_X_Atom type, Ecore_X_ID * lst, 165 Ecore_X_Atom type, Ecore_X_ID * lst,
166 unsigned int len) 166 unsigned int len)
@@ -208,7 +208,7 @@ ecore_x_window_prop_xid_get(Ecore_X_Window win, Ecore_X_Atom atom,
208 * The returned array must be freed with free(). 208 * The returned array must be freed with free().
209 * Note: Return value 0 means that the property exists but has no elements. 209 * Note: Return value 0 means that the property exists but has no elements.
210 */ 210 */
211int 211EAPI int
212ecore_x_window_prop_xid_list_get(Ecore_X_Window win, Ecore_X_Atom atom, 212ecore_x_window_prop_xid_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
213 Ecore_X_Atom type, Ecore_X_ID ** val) 213 Ecore_X_Atom type, Ecore_X_ID ** val)
214{ 214{
@@ -252,7 +252,7 @@ ecore_x_window_prop_xid_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
252/* 252/*
253 * Remove/add/toggle X ID list item. 253 * Remove/add/toggle X ID list item.
254 */ 254 */
255void 255EAPI void
256ecore_x_window_prop_xid_list_change(Ecore_X_Window win, Ecore_X_Atom atom, 256ecore_x_window_prop_xid_list_change(Ecore_X_Window win, Ecore_X_Atom atom,
257 Ecore_X_Atom type, Ecore_X_ID item, int op) 257 Ecore_X_Atom type, Ecore_X_ID item, int op)
258{ 258{
@@ -301,7 +301,7 @@ ecore_x_window_prop_xid_list_change(Ecore_X_Window win, Ecore_X_Atom atom,
301/* 301/*
302 * Set Atom (array) property 302 * Set Atom (array) property
303 */ 303 */
304void 304EAPI void
305ecore_x_window_prop_atom_set(Ecore_X_Window win, Ecore_X_Atom atom, 305ecore_x_window_prop_atom_set(Ecore_X_Window win, Ecore_X_Atom atom,
306 Ecore_X_Atom * lst, unsigned int num) 306 Ecore_X_Atom * lst, unsigned int num)
307{ 307{
@@ -316,7 +316,7 @@ ecore_x_window_prop_atom_set(Ecore_X_Window win, Ecore_X_Atom atom,
316 * val is returned, otherwise -1 is returned. 316 * val is returned, otherwise -1 is returned.
317 * Note: Return value 0 means that the property exists but has no elements. 317 * Note: Return value 0 means that the property exists but has no elements.
318 */ 318 */
319int 319EAPI int
320ecore_x_window_prop_atom_get(Ecore_X_Window win, Ecore_X_Atom atom, 320ecore_x_window_prop_atom_get(Ecore_X_Window win, Ecore_X_Atom atom,
321 Ecore_X_Atom * lst, unsigned int len) 321 Ecore_X_Atom * lst, unsigned int len)
322{ 322{
@@ -331,7 +331,7 @@ ecore_x_window_prop_atom_get(Ecore_X_Window win, Ecore_X_Atom atom,
331 * The returned array must be freed with free(). 331 * The returned array must be freed with free().
332 * Note: Return value 0 means that the property exists but has no elements. 332 * Note: Return value 0 means that the property exists but has no elements.
333 */ 333 */
334int 334EAPI int
335ecore_x_window_prop_atom_list_get(Ecore_X_Window win, Ecore_X_Atom atom, 335ecore_x_window_prop_atom_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
336 Ecore_X_Atom ** plst) 336 Ecore_X_Atom ** plst)
337{ 337{
@@ -341,7 +341,7 @@ ecore_x_window_prop_atom_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
341/* 341/*
342 * Remove/add/toggle atom list item. 342 * Remove/add/toggle atom list item.
343 */ 343 */
344void 344EAPI void
345ecore_x_window_prop_atom_list_change(Ecore_X_Window win, Ecore_X_Atom atom, 345ecore_x_window_prop_atom_list_change(Ecore_X_Window win, Ecore_X_Atom atom,
346 Ecore_X_Atom item, int op) 346 Ecore_X_Atom item, int op)
347{ 347{
@@ -351,7 +351,7 @@ ecore_x_window_prop_atom_list_change(Ecore_X_Window win, Ecore_X_Atom atom,
351/* 351/*
352 * Set Window (array) property 352 * Set Window (array) property
353 */ 353 */
354void 354EAPI void
355ecore_x_window_prop_window_set(Ecore_X_Window win, Ecore_X_Atom atom, 355ecore_x_window_prop_window_set(Ecore_X_Window win, Ecore_X_Atom atom,
356 Ecore_X_Window * lst, unsigned int num) 356 Ecore_X_Window * lst, unsigned int num)
357{ 357{
@@ -366,7 +366,7 @@ ecore_x_window_prop_window_set(Ecore_X_Window win, Ecore_X_Atom atom,
366 * val is returned, otherwise -1 is returned. 366 * val is returned, otherwise -1 is returned.
367 * Note: Return value 0 means that the property exists but has no elements. 367 * Note: Return value 0 means that the property exists but has no elements.
368 */ 368 */
369int 369EAPI int
370ecore_x_window_prop_window_get(Ecore_X_Window win, Ecore_X_Atom atom, 370ecore_x_window_prop_window_get(Ecore_X_Window win, Ecore_X_Atom atom,
371 Ecore_X_Window * lst, unsigned int len) 371 Ecore_X_Window * lst, unsigned int len)
372{ 372{
@@ -381,7 +381,7 @@ ecore_x_window_prop_window_get(Ecore_X_Window win, Ecore_X_Atom atom,
381 * The returned array must be freed with free(). 381 * The returned array must be freed with free().
382 * Note: Return value 0 means that the property exists but has no elements. 382 * Note: Return value 0 means that the property exists but has no elements.
383 */ 383 */
384int 384EAPI int
385ecore_x_window_prop_window_list_get(Ecore_X_Window win, Ecore_X_Atom atom, 385ecore_x_window_prop_window_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
386 Ecore_X_Window ** plst) 386 Ecore_X_Window ** plst)
387{ 387{
@@ -393,7 +393,7 @@ ecore_x_window_prop_window_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
393 * 393 *
394 * FIXME: To be fixed. 394 * FIXME: To be fixed.
395 */ 395 */
396Ecore_X_Atom 396EAPI Ecore_X_Atom
397ecore_x_window_prop_any_type(void) 397ecore_x_window_prop_any_type(void)
398{ 398{
399 return AnyPropertyType; 399 return AnyPropertyType;
@@ -404,7 +404,7 @@ ecore_x_window_prop_any_type(void)
404 * 404 *
405 * FIXME: To be fixed. 405 * FIXME: To be fixed.
406 */ 406 */
407void 407EAPI void
408ecore_x_window_prop_property_set(Ecore_X_Window win, Ecore_X_Atom property, Ecore_X_Atom type, int size, void *data, int number) 408ecore_x_window_prop_property_set(Ecore_X_Window win, Ecore_X_Atom property, Ecore_X_Atom type, int size, void *data, int number)
409{ 409{
410 if (win == 0) win = DefaultRootWindow(_ecore_x_disp); 410 if (win == 0) win = DefaultRootWindow(_ecore_x_disp);
@@ -432,7 +432,7 @@ ecore_x_window_prop_property_set(Ecore_X_Window win, Ecore_X_Atom property, Ecor
432 * 432 *
433 * FIXME: To be fixed. 433 * FIXME: To be fixed.
434 */ 434 */
435int 435EAPI int
436ecore_x_window_prop_property_get(Ecore_X_Window win, Ecore_X_Atom property, Ecore_X_Atom type, int size, unsigned char **data, int *num) 436ecore_x_window_prop_property_get(Ecore_X_Window win, Ecore_X_Atom property, Ecore_X_Atom type, int size, unsigned char **data, int *num)
437{ 437{
438 Atom type_ret = 0; 438 Atom type_ret = 0;
@@ -488,13 +488,13 @@ ecore_x_window_prop_property_get(Ecore_X_Window win, Ecore_X_Atom property, Ecor
488 return 1; 488 return 1;
489} 489}
490 490
491void 491EAPI void
492ecore_x_window_prop_property_del(Ecore_X_Window win, Ecore_X_Atom property) 492ecore_x_window_prop_property_del(Ecore_X_Window win, Ecore_X_Atom property)
493{ 493{
494 XDeleteProperty(_ecore_x_disp, win, property); 494 XDeleteProperty(_ecore_x_disp, win, property);
495} 495}
496 496
497Ecore_X_Atom * 497EAPI Ecore_X_Atom *
498ecore_x_window_prop_list(Ecore_X_Window win, int *num_ret) 498ecore_x_window_prop_list(Ecore_X_Window win, int *num_ret)
499{ 499{
500 Ecore_X_Atom *atoms; 500 Ecore_X_Atom *atoms;
@@ -524,7 +524,7 @@ ecore_x_window_prop_list(Ecore_X_Window win, int *num_ret)
524 * 524 *
525 * Set a window string property 525 * Set a window string property
526 */ 526 */
527void 527EAPI void
528ecore_x_window_prop_string_set(Ecore_X_Window win, Ecore_X_Atom type, const char *str) 528ecore_x_window_prop_string_set(Ecore_X_Window win, Ecore_X_Atom type, const char *str)
529{ 529{
530 XTextProperty xtp; 530 XTextProperty xtp;
@@ -544,7 +544,7 @@ ecore_x_window_prop_string_set(Ecore_X_Window win, Ecore_X_Atom type, const char
544 * 544 *
545 * Return window string property of a window. String must be free'd when done. 545 * Return window string property of a window. String must be free'd when done.
546 */ 546 */
547char * 547EAPI char *
548ecore_x_window_prop_string_get(Ecore_X_Window win, Ecore_X_Atom type) 548ecore_x_window_prop_string_get(Ecore_X_Window win, Ecore_X_Atom type)
549{ 549{
550 XTextProperty xtp; 550 XTextProperty xtp;
@@ -587,7 +587,7 @@ ecore_x_window_prop_string_get(Ecore_X_Window win, Ecore_X_Atom type)
587 return str; 587 return str;
588} 588}
589 589
590int 590EAPI int
591ecore_x_window_prop_protocol_isset(Ecore_X_Window win, 591ecore_x_window_prop_protocol_isset(Ecore_X_Window win,
592 Ecore_X_WM_Protocol protocol) 592 Ecore_X_WM_Protocol protocol)
593{ 593{
@@ -620,7 +620,7 @@ ecore_x_window_prop_protocol_isset(Ecore_X_Window win,
620 * 620 *
621 * FIXME: To be fixed. 621 * FIXME: To be fixed.
622 */ 622 */
623Ecore_X_WM_Protocol * 623EAPI Ecore_X_WM_Protocol *
624ecore_x_window_prop_protocol_list_get(Ecore_X_Window win, int *num_ret) 624ecore_x_window_prop_protocol_list_get(Ecore_X_Window win, int *num_ret)
625{ 625{
626 Atom *protos = NULL; 626 Atom *protos = NULL;
diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_window_shape.c b/legacy/ecore/src/lib/ecore_x/ecore_x_window_shape.c
index 92088ea..52ed342 100644
--- a/legacy/ecore/src/lib/ecore_x/ecore_x_window_shape.c
+++ b/legacy/ecore/src/lib/ecore_x/ecore_x_window_shape.c
@@ -16,25 +16,25 @@
16 * window. 16 * window.
17 * @ingroup Ecore_X_Window_Shape 17 * @ingroup Ecore_X_Window_Shape
18 */ 18 */
19void 19EAPI void
20ecore_x_window_shape_mask_set(Ecore_X_Window win, Ecore_X_Pixmap mask) 20ecore_x_window_shape_mask_set(Ecore_X_Window win, Ecore_X_Pixmap mask)
21{ 21{
22 XShapeCombineMask(_ecore_x_disp, win, ShapeBounding, 0, 0, mask, ShapeSet); 22 XShapeCombineMask(_ecore_x_disp, win, ShapeBounding, 0, 0, mask, ShapeSet);
23} 23}
24 24
25void 25EAPI void
26ecore_x_window_shape_window_set(Ecore_X_Window win, Ecore_X_Window shape_win) 26ecore_x_window_shape_window_set(Ecore_X_Window win, Ecore_X_Window shape_win)
27{ 27{
28 XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, 0, 0, shape_win, ShapeBounding, ShapeSet); 28 XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, 0, 0, shape_win, ShapeBounding, ShapeSet);
29} 29}
30 30
31void 31EAPI void
32ecore_x_window_shape_window_set_xy(Ecore_X_Window win, Ecore_X_Window shape_win, int x, int y) 32ecore_x_window_shape_window_set_xy(Ecore_X_Window win, Ecore_X_Window shape_win, int x, int y)
33{ 33{
34 XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, x, y, shape_win, ShapeBounding, ShapeSet); 34 XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, x, y, shape_win, ShapeBounding, ShapeSet);
35} 35}
36 36
37void 37EAPI void
38ecore_x_window_shape_rectangle_set(Ecore_X_Window win, int x, int y, int w, int h) 38ecore_x_window_shape_rectangle_set(Ecore_X_Window win, int x, int y, int w, int h)
39{ 39{
40 XRectangle rect; 40 XRectangle rect;
@@ -46,7 +46,7 @@ ecore_x_window_shape_rectangle_set(Ecore_X_Window win, int x, int y, int w, int
46 XShapeCombineRectangles(_ecore_x_disp, win, ShapeBounding, 0, 0, &rect, 1, ShapeSet, Unsorted); 46 XShapeCombineRectangles(_ecore_x_disp, win, ShapeBounding, 0, 0, &rect, 1, ShapeSet, Unsorted);
47} 47}
48 48
49void 49EAPI void
50ecore_x_window_shape_rectangles_set(Ecore_X_Window win, Ecore_X_Rectangle *rects, int num) 50ecore_x_window_shape_rectangles_set(Ecore_X_Window win, Ecore_X_Rectangle *rects, int num)
51{ 51{
52 XRectangle *rect = NULL; 52 XRectangle *rect = NULL;
@@ -72,19 +72,19 @@ ecore_x_window_shape_rectangles_set(Ecore_X_Window win, Ecore_X_Rectangle *rects
72 if (rect) free(rect); 72 if (rect) free(rect);
73} 73}
74 74
75void 75EAPI void
76ecore_x_window_shape_window_add(Ecore_X_Window win, Ecore_X_Window shape_win) 76ecore_x_window_shape_window_add(Ecore_X_Window win, Ecore_X_Window shape_win)
77{ 77{
78 XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, 0, 0, shape_win, ShapeBounding, ShapeUnion); 78 XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, 0, 0, shape_win, ShapeBounding, ShapeUnion);
79} 79}
80 80
81void 81EAPI void
82ecore_x_window_shape_window_add_xy(Ecore_X_Window win, Ecore_X_Window shape_win, int x, int y) 82ecore_x_window_shape_window_add_xy(Ecore_X_Window win, Ecore_X_Window shape_win, int x, int y)
83{ 83{
84 XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, x, y, shape_win, ShapeBounding, ShapeUnion); 84 XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, x, y, shape_win, ShapeBounding, ShapeUnion);
85} 85}
86 86
87void 87EAPI void
88ecore_x_window_shape_rectangle_add(Ecore_X_Window win, int x, int y, int w, int h) 88ecore_x_window_shape_rectangle_add(Ecore_X_Window win, int x, int y, int w, int h)
89{ 89{
90 XRectangle rect; 90 XRectangle rect;
@@ -96,7 +96,7 @@ ecore_x_window_shape_rectangle_add(Ecore_X_Window win, int x, int y, int w, int
96 XShapeCombineRectangles(_ecore_x_disp, win, ShapeBounding, 0, 0, &rect, 1, ShapeUnion, Unsorted); 96 XShapeCombineRectangles(_ecore_x_disp, win, ShapeBounding, 0, 0, &rect, 1, ShapeUnion, Unsorted);
97} 97}
98 98
99void 99EAPI void
100ecore_x_window_shape_rectangle_clip(Ecore_X_Window win, int x, int y, int w, int h) 100ecore_x_window_shape_rectangle_clip(Ecore_X_Window win, int x, int y, int w, int h)
101{ 101{
102 XRectangle rect; 102 XRectangle rect;
@@ -108,7 +108,7 @@ ecore_x_window_shape_rectangle_clip(Ecore_X_Window win, int x, int y, int w, int
108 XShapeCombineRectangles(_ecore_x_disp, win, ShapeBounding, 0, 0, &rect, 1, ShapeIntersect, Unsorted); 108 XShapeCombineRectangles(_ecore_x_disp, win, ShapeBounding, 0, 0, &rect, 1, ShapeIntersect, Unsorted);
109} 109}
110 110
111void 111EAPI void
112ecore_x_window_shape_rectangles_add(Ecore_X_Window win, Ecore_X_Rectangle *rects, int num) 112ecore_x_window_shape_rectangles_add(Ecore_X_Window win, Ecore_X_Rectangle *rects, int num)
113{ 113{
114 XRectangle *rect = NULL; 114 XRectangle *rect = NULL;
@@ -134,7 +134,7 @@ ecore_x_window_shape_rectangles_add(Ecore_X_Window win, Ecore_X_Rectangle *rects
134 if (rect) free(rect); 134 if (rect) free(rect);
135} 135}
136 136
137Ecore_X_Rectangle * 137EAPI Ecore_X_Rectangle *
138ecore_x_window_shape_rectangles_get(Ecore_X_Window win, int *num_ret) 138ecore_x_window_shape_rectangles_get(Ecore_X_Window win, int *num_ret)
139{ 139{
140 XRectangle *rect; 140 XRectangle *rect;
@@ -161,7 +161,7 @@ ecore_x_window_shape_rectangles_get(Ecore_X_Window win, int *num_ret)
161 return rects; 161 return rects;
162} 162}
163 163
164void 164EAPI void
165ecore_x_window_shape_events_select(Ecore_X_Window win, int on) 165ecore_x_window_shape_events_select(Ecore_X_Window win, int on)
166{ 166{
167 if (on) 167 if (on)
diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_xinerama.c b/legacy/ecore/src/lib/ecore_x/ecore_x_xinerama.c
index 2a00250..4c7353d 100644
--- a/legacy/ecore/src/lib/ecore_x/ecore_x_xinerama.c
+++ b/legacy/ecore/src/lib/ecore_x/ecore_x_xinerama.c
@@ -14,7 +14,7 @@ static XineramaScreenInfo *_xin_info = NULL;
14static int _xin_scr_num = 0; 14static int _xin_scr_num = 0;
15#endif 15#endif
16 16
17int 17EAPI int
18ecore_x_xinerama_screen_count_get(void) 18ecore_x_xinerama_screen_count_get(void)
19{ 19{
20#ifdef ECORE_XINERAMA 20#ifdef ECORE_XINERAMA
@@ -31,7 +31,7 @@ ecore_x_xinerama_screen_count_get(void)
31 return 0; 31 return 0;
32} 32}
33 33
34int 34EAPI int
35ecore_x_xinerama_screen_geometry_get(int screen, int *x, int *y, int *w, int *h) 35ecore_x_xinerama_screen_geometry_get(int screen, int *x, int *y, int *w, int *h)
36{ 36{
37#ifdef ECORE_XINERAMA 37#ifdef ECORE_XINERAMA