remove annoying trailing comments

SVN revision: 65851
This commit is contained in:
Mike Blumenkrantz 2011-12-03 19:41:12 +00:00
parent 0f3df65317
commit 6b13c32a78
30 changed files with 635 additions and 635 deletions

View File

@ -80,7 +80,7 @@ _ecore_directfb_event_free_key_down(void *data __UNUSED__, void *ev)
free(e->key_compose); free(e->key_compose);
free(e); free(e);
} /* _ecore_directfb_event_free_key_down */ }
static void static void
_ecore_directfb_event_free_key_up(void *data __UNUSED__, void *ev) _ecore_directfb_event_free_key_up(void *data __UNUSED__, void *ev)
@ -98,7 +98,7 @@ _ecore_directfb_event_free_key_up(void *data __UNUSED__, void *ev)
free(e->key_compose); free(e->key_compose);
free(e); free(e);
} /* _ecore_directfb_event_free_key_up */ }
/* directfb window input events handler */ /* directfb window input events handler */
/****************************************/ /****************************************/
@ -131,7 +131,7 @@ _ecore_directfb_event_handle_motion(DFBEvent *evt)
default: default:
return; return;
} /* switch */ }
e->win = _ecore_directfb_fullscreen_window_id; e->win = _ecore_directfb_fullscreen_window_id;
e->time = 0; e->time = 0;
break; break;
@ -146,9 +146,9 @@ _ecore_directfb_event_handle_motion(DFBEvent *evt)
default: default:
break; break;
} /* switch */ }
ecore_event_add(ECORE_DIRECTFB_EVENT_MOTION, e, NULL, NULL); ecore_event_add(ECORE_DIRECTFB_EVENT_MOTION, e, NULL, NULL);
} /* _ecore_directfb_event_handle_motion */ }
static void static void
_ecore_directfb_event_handle_key_down(DFBEvent *evt) _ecore_directfb_event_handle_key_down(DFBEvent *evt)
@ -197,10 +197,10 @@ _ecore_directfb_event_handle_key_down(DFBEvent *evt)
default: default:
break; break;
} /* switch */ }
ecore_event_add(ECORE_DIRECTFB_EVENT_KEY_DOWN, e, _ecore_directfb_event_free_key_down, NULL); ecore_event_add(ECORE_DIRECTFB_EVENT_KEY_DOWN, e, _ecore_directfb_event_free_key_down, NULL);
} /* _ecore_directfb_event_handle_key_down */ }
static void static void
_ecore_directfb_event_handle_key_up(DFBEvent *evt) _ecore_directfb_event_handle_key_up(DFBEvent *evt)
@ -249,9 +249,9 @@ _ecore_directfb_event_handle_key_up(DFBEvent *evt)
default: default:
break; break;
} /* switch */ }
ecore_event_add(ECORE_DIRECTFB_EVENT_KEY_UP, e, _ecore_directfb_event_free_key_up, NULL); ecore_event_add(ECORE_DIRECTFB_EVENT_KEY_UP, e, _ecore_directfb_event_free_key_up, NULL);
} /* _ecore_directfb_event_handle_key_up */ }
static void static void
_ecore_directfb_event_handle_button_down(DFBEvent *evt) _ecore_directfb_event_handle_button_down(DFBEvent *evt)
@ -283,10 +283,10 @@ _ecore_directfb_event_handle_button_down(DFBEvent *evt)
default: default:
break; break;
} /* switch */ }
ecore_event_add(ECORE_DIRECTFB_EVENT_BUTTON_DOWN, e, NULL, NULL); ecore_event_add(ECORE_DIRECTFB_EVENT_BUTTON_DOWN, e, NULL, NULL);
} /* _ecore_directfb_event_handle_button_down */ }
static void static void
_ecore_directfb_event_handle_button_up(DFBEvent *evt) _ecore_directfb_event_handle_button_up(DFBEvent *evt)
@ -317,9 +317,9 @@ _ecore_directfb_event_handle_button_up(DFBEvent *evt)
default: default:
break; break;
} /* switch */ }
ecore_event_add(ECORE_DIRECTFB_EVENT_BUTTON_UP, e, NULL, NULL); ecore_event_add(ECORE_DIRECTFB_EVENT_BUTTON_UP, e, NULL, NULL);
} /* _ecore_directfb_event_handle_button_up */ }
static void static void
_ecore_directfb_event_handle_enter(DFBWindowEvent *evt) _ecore_directfb_event_handle_enter(DFBWindowEvent *evt)
@ -334,7 +334,7 @@ _ecore_directfb_event_handle_enter(DFBWindowEvent *evt)
e->time = 0; e->time = 0;
ecore_event_add(ECORE_DIRECTFB_EVENT_ENTER, e, NULL, NULL); ecore_event_add(ECORE_DIRECTFB_EVENT_ENTER, e, NULL, NULL);
} /* _ecore_directfb_event_handle_enter */ }
static void static void
_ecore_directfb_event_handle_leave(DFBWindowEvent *evt) _ecore_directfb_event_handle_leave(DFBWindowEvent *evt)
@ -349,7 +349,7 @@ _ecore_directfb_event_handle_leave(DFBWindowEvent *evt)
e->time = 0; e->time = 0;
ecore_event_add(ECORE_DIRECTFB_EVENT_LEAVE, e, NULL, NULL); ecore_event_add(ECORE_DIRECTFB_EVENT_LEAVE, e, NULL, NULL);
} /* _ecore_directfb_event_handle_leave */ }
static void static void
_ecore_directfb_event_handle_wheel(DFBWindowEvent *evt) _ecore_directfb_event_handle_wheel(DFBWindowEvent *evt)
@ -365,7 +365,7 @@ _ecore_directfb_event_handle_wheel(DFBWindowEvent *evt)
e->time = 0; e->time = 0;
ecore_event_add(ECORE_DIRECTFB_EVENT_WHEEL, e, NULL, NULL); ecore_event_add(ECORE_DIRECTFB_EVENT_WHEEL, e, NULL, NULL);
} /* _ecore_directfb_event_handle_wheel */ }
static void static void
_ecore_directfb_event_handle_got_focus(DFBWindowEvent *evt) _ecore_directfb_event_handle_got_focus(DFBWindowEvent *evt)
@ -377,7 +377,7 @@ _ecore_directfb_event_handle_got_focus(DFBWindowEvent *evt)
e->time = 0; e->time = 0;
ecore_event_add(ECORE_DIRECTFB_EVENT_GOT_FOCUS, e, NULL, NULL); ecore_event_add(ECORE_DIRECTFB_EVENT_GOT_FOCUS, e, NULL, NULL);
} /* _ecore_directfb_event_handle_got_focus */ }
static void static void
_ecore_directfb_event_handle_lost_focus(DFBWindowEvent *evt) _ecore_directfb_event_handle_lost_focus(DFBWindowEvent *evt)
@ -389,7 +389,7 @@ _ecore_directfb_event_handle_lost_focus(DFBWindowEvent *evt)
e->time = 0; e->time = 0;
ecore_event_add(ECORE_DIRECTFB_EVENT_LOST_FOCUS, e, NULL, NULL); ecore_event_add(ECORE_DIRECTFB_EVENT_LOST_FOCUS, e, NULL, NULL);
} /* _ecore_directfb_event_handle_lost_focus */ }
/* inputs and windows fds handlers */ /* inputs and windows fds handlers */
/***********************************/ /***********************************/
@ -428,7 +428,7 @@ _ecore_directfb_input_event_fd_handler(void *data __UNUSED__,Ecore_Fd_Handler *f
_ecore_directfb_event_handle_motion(&evt); _ecore_directfb_event_handle_motion(&evt);
return EINA_TRUE; return EINA_TRUE;
} /* _ecore_directfb_input_event_fd_handler */ }
static Eina_Bool static Eina_Bool
_ecore_directfb_window_event_fd_handler(void *data __UNUSED__,Ecore_Fd_Handler *fd_handler __UNUSED__) _ecore_directfb_window_event_fd_handler(void *data __UNUSED__,Ecore_Fd_Handler *fd_handler __UNUSED__)
@ -486,7 +486,7 @@ _ecore_directfb_window_event_fd_handler(void *data __UNUSED__,Ecore_Fd_Handler *
_ecore_directfb_event_handle_wheel(&evt.window); _ecore_directfb_event_handle_wheel(&evt.window);
return EINA_TRUE; return EINA_TRUE;
} /* _ecore_directfb_window_event_fd_handler */ }
/* api functions */ /* api functions */
/*****************/ /*****************/
@ -495,7 +495,7 @@ EAPI IDirectFB *
ecore_directfb_interface_get(void) ecore_directfb_interface_get(void)
{ {
return _dfb; return _dfb;
} /* ecore_directfb_interface_get */ }
EAPI Ecore_DirectFB_Window * EAPI Ecore_DirectFB_Window *
ecore_directfb_window_new(int x, int y, int w, int h) ecore_directfb_window_new(int x, int y, int w, int h)
@ -530,7 +530,7 @@ ecore_directfb_window_new(int x, int y, int w, int h)
window->cursor = NULL; window->cursor = NULL;
return window; return window;
} /* ecore_directfb_window_new */ }
EAPI void EAPI void
ecore_directfb_window_free(Ecore_DirectFB_Window *ecore_window) ecore_directfb_window_free(Ecore_DirectFB_Window *ecore_window)
@ -538,37 +538,37 @@ ecore_directfb_window_free(Ecore_DirectFB_Window *ecore_window)
DFBCHECK(ecore_window->surface->Release(ecore_window->surface)); DFBCHECK(ecore_window->surface->Release(ecore_window->surface));
DFBCHECK(ecore_window->window->Release(ecore_window->window)); DFBCHECK(ecore_window->window->Release(ecore_window->window));
free(ecore_window); free(ecore_window);
} /* ecore_directfb_window_free */ }
EAPI void EAPI void
ecore_directfb_window_move(Ecore_DirectFB_Window *ecore_window, int x, int y) ecore_directfb_window_move(Ecore_DirectFB_Window *ecore_window, int x, int y)
{ {
DFBCHECK(ecore_window->window->MoveTo(ecore_window->window, x, y)); DFBCHECK(ecore_window->window->MoveTo(ecore_window->window, x, y));
} /* ecore_directfb_window_move */ }
EAPI void EAPI void
ecore_directfb_window_resize(Ecore_DirectFB_Window *ecore_window, int w, int h) ecore_directfb_window_resize(Ecore_DirectFB_Window *ecore_window, int w, int h)
{ {
DFBCHECK(ecore_window->window->Resize(ecore_window->window, w, h)); DFBCHECK(ecore_window->window->Resize(ecore_window->window, w, h));
} /* ecore_directfb_window_resize */ }
EAPI void EAPI void
ecore_directfb_window_focus(Ecore_DirectFB_Window *ecore_window) ecore_directfb_window_focus(Ecore_DirectFB_Window *ecore_window)
{ {
DFBCHECK(ecore_window->window->RequestFocus(ecore_window->window)); DFBCHECK(ecore_window->window->RequestFocus(ecore_window->window));
} /* ecore_directfb_window_focus */ }
EAPI void EAPI void
ecore_directfb_window_hide(Ecore_DirectFB_Window *ecore_window) ecore_directfb_window_hide(Ecore_DirectFB_Window *ecore_window)
{ {
DFBCHECK(ecore_window->window->SetOpacity(ecore_window->window, 0)); DFBCHECK(ecore_window->window->SetOpacity(ecore_window->window, 0));
} /* ecore_directfb_window_hide */ }
EAPI void EAPI void
ecore_directfb_window_show(Ecore_DirectFB_Window *ecore_window) ecore_directfb_window_show(Ecore_DirectFB_Window *ecore_window)
{ {
DFBCHECK(ecore_window->window->SetOpacity(ecore_window->window, 0xFF)); DFBCHECK(ecore_window->window->SetOpacity(ecore_window->window, 0xFF));
} /* ecore_directfb_window_show */ }
EAPI void EAPI void
ecore_directfb_window_shaped_set(Ecore_DirectFB_Window *ecore_window, Eina_Bool set) ecore_directfb_window_shaped_set(Ecore_DirectFB_Window *ecore_window, Eina_Bool set)
@ -588,7 +588,7 @@ ecore_directfb_window_shaped_set(Ecore_DirectFB_Window *ecore_window, Eina_Bool
opts &= ~DWOP_ALPHACHANNEL; opts &= ~DWOP_ALPHACHANNEL;
DFBCHECK(ecore_window->window->SetOptions(ecore_window->window, opts)); DFBCHECK(ecore_window->window->SetOptions(ecore_window->window, opts));
} }
} /* ecore_directfb_window_shaped_set */ }
EAPI void EAPI void
ecore_directfb_window_cursor_show(Ecore_DirectFB_Window *ecore_window, Eina_Bool show) ecore_directfb_window_cursor_show(Ecore_DirectFB_Window *ecore_window, Eina_Bool show)
@ -622,7 +622,7 @@ ecore_directfb_window_cursor_show(Ecore_DirectFB_Window *ecore_window, Eina_Bool
DFBCHECK(ecore_window->window->SetCursorShape(ecore_window->window, NULL, 0, 0)); DFBCHECK(ecore_window->window->SetCursorShape(ecore_window->window, NULL, 0, 0));
} }
} }
} /* ecore_directfb_window_cursor_show */ }
EAPI void EAPI void
ecore_directfb_window_cursor_set(Ecore_DirectFB_Window *ecore_window, Ecore_DirectFB_Cursor *cursor) ecore_directfb_window_cursor_set(Ecore_DirectFB_Window *ecore_window, Ecore_DirectFB_Cursor *cursor)
@ -639,7 +639,7 @@ ecore_directfb_window_cursor_set(Ecore_DirectFB_Window *ecore_window, Ecore_Dire
ecore_window->cursor = cursor; ecore_window->cursor = cursor;
DFBCHECK(ecore_window->window->SetCursorShape(ecore_window->window, cursor->surface, cursor->hot_x, cursor->hot_y)); DFBCHECK(ecore_window->window->SetCursorShape(ecore_window->window, cursor->surface, cursor->hot_x, cursor->hot_y));
} }
} /* ecore_directfb_window_cursor_set */ }
EAPI void EAPI void
ecore_directfb_window_fullscreen_set(Ecore_DirectFB_Window *ecore_window, Eina_Bool on) ecore_directfb_window_fullscreen_set(Ecore_DirectFB_Window *ecore_window, Eina_Bool on)
@ -666,14 +666,14 @@ ecore_directfb_window_fullscreen_set(Ecore_DirectFB_Window *ecore_window, Eina_B
DFBCHECK(ecore_window->window->GetSurface(ecore_window->window, &ecore_window->surface)); DFBCHECK(ecore_window->window->GetSurface(ecore_window->window, &ecore_window->surface));
_ecore_directfb_fullscreen_window_id = 0; _ecore_directfb_fullscreen_window_id = 0;
} }
} /* ecore_directfb_window_fullscreen_set */ }
EAPI void EAPI void
ecore_directfb_window_size_get(Ecore_DirectFB_Window *ecore_window, int *w, int *h) ecore_directfb_window_size_get(Ecore_DirectFB_Window *ecore_window, int *w, int *h)
{ {
DFBCHECK(ecore_window->surface->GetSize(ecore_window->surface,w,h)); DFBCHECK(ecore_window->surface->GetSize(ecore_window->surface,w,h));
return; return;
} /* ecore_directfb_window_size_get */ }
EAPI int EAPI int
ecore_directfb_init(const char *name __UNUSED__) ecore_directfb_init(const char *name __UNUSED__)
@ -730,7 +730,7 @@ ecore_directfb_init(const char *name __UNUSED__)
} }
/* create the hash for the windows(key = windowid, val = Ecore_DirectFB_Window struct) */ /* create the hash for the windows(key = windowid, val = Ecore_DirectFB_Window struct) */
return _ecore_directfb_init_count; return _ecore_directfb_init_count;
} /* ecore_directfb_init */ }
EAPI int EAPI int
ecore_directfb_shutdown(void) ecore_directfb_shutdown(void)
@ -753,5 +753,5 @@ ecore_directfb_shutdown(void)
eina_log_domain_unregister(_ecore_directfb_log_dom); eina_log_domain_unregister(_ecore_directfb_log_dom);
_ecore_directfb_log_dom = -1; _ecore_directfb_log_dom = -1;
return _ecore_directfb_init_count; return _ecore_directfb_init_count;
} /* ecore_directfb_shutdown */ }

View File

@ -159,7 +159,7 @@ _logrt_init(void)
_logrt_real_reply = dlsym(lib, "_XReply"); _logrt_real_reply = dlsym(lib, "_XReply");
t0 = ecore_time_get(); t0 = ecore_time_get();
} /* _logrt_init */ }
Status Status
_XReply(Display *disp, _XReply(Display *disp,
@ -207,7 +207,7 @@ _XReply(Display *disp,
// fixme: logme // fixme: logme
return _logrt_real_reply(disp, rep, extra, discard); return _logrt_real_reply(disp, rep, extra, discard);
} /* _XReply */ }
#endif /* ifdef LOGRT */ #endif /* ifdef LOGRT */
@ -641,7 +641,7 @@ shutdown_eina:
eina_shutdown(); eina_shutdown();
return --_ecore_x_init_count; return --_ecore_x_init_count;
} /* ecore_x_init */ }
static int static int
_ecore_x_shutdown(int close_display) _ecore_x_shutdown(int close_display)
@ -683,7 +683,7 @@ _ecore_x_shutdown(int close_display)
eina_shutdown(); eina_shutdown();
return _ecore_x_init_count; return _ecore_x_init_count;
} /* _ecore_x_shutdown */ }
/** /**
* Shuts down the Ecore X library. * Shuts down the Ecore X library.
@ -699,7 +699,7 @@ EAPI int
ecore_x_shutdown(void) ecore_x_shutdown(void)
{ {
return _ecore_x_shutdown(1); return _ecore_x_shutdown(1);
} /* ecore_x_shutdown */ }
/** /**
* Shuts down the Ecore X library. * Shuts down the Ecore X library.
@ -712,7 +712,7 @@ EAPI int
ecore_x_disconnect(void) ecore_x_disconnect(void)
{ {
return _ecore_x_shutdown(0); return _ecore_x_shutdown(0);
} /* ecore_x_disconnect */ }
/** /**
* @defgroup Ecore_X_Display_Attr_Group X Display Attributes * @defgroup Ecore_X_Display_Attr_Group X Display Attributes
@ -729,7 +729,7 @@ EAPI Ecore_X_Display *
ecore_x_display_get(void) ecore_x_display_get(void)
{ {
return (Ecore_X_Display *)_ecore_x_disp; return (Ecore_X_Display *)_ecore_x_disp;
} /* ecore_x_display_get */ }
/** /**
* Retrieves the X display file descriptor. * Retrieves the X display file descriptor.
@ -741,7 +741,7 @@ ecore_x_fd_get(void)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ConnectionNumber(_ecore_x_disp); return ConnectionNumber(_ecore_x_disp);
} /* ecore_x_fd_get */ }
/** /**
* Retrieves the Ecore_X_Screen handle used for the current X connection. * Retrieves the Ecore_X_Screen handle used for the current X connection.
@ -753,7 +753,7 @@ ecore_x_default_screen_get(void)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return (Ecore_X_Screen *)DefaultScreenOfDisplay(_ecore_x_disp); return (Ecore_X_Screen *)DefaultScreenOfDisplay(_ecore_x_disp);
} /* ecore_x_default_screen_get */ }
/** /**
* Retrieves the size of an Ecore_X_Screen. * Retrieves the size of an Ecore_X_Screen.
@ -840,7 +840,7 @@ ecore_x_double_click_time_set(double t)
t = 0.0; t = 0.0;
_ecore_x_double_click_time = t; _ecore_x_double_click_time = t;
} /* ecore_x_double_click_time_set */ }
/** /**
* Retrieves the double and triple click flag timeout. * Retrieves the double and triple click flag timeout.
@ -854,7 +854,7 @@ EAPI double
ecore_x_double_click_time_get(void) ecore_x_double_click_time_get(void)
{ {
return _ecore_x_double_click_time; return _ecore_x_double_click_time;
} /* ecore_x_double_click_time_get */ }
/** /**
* @defgroup Ecore_X_Flush_Group X Synchronization Functions * @defgroup Ecore_X_Flush_Group X Synchronization Functions
@ -872,7 +872,7 @@ ecore_x_flush(void)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFlush(_ecore_x_disp); XFlush(_ecore_x_disp);
} /* ecore_x_flush */ }
/** /**
* Flushes the command buffer and waits until all requests have been * Flushes the command buffer and waits until all requests have been
@ -884,7 +884,7 @@ ecore_x_sync(void)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSync(_ecore_x_disp, False); XSync(_ecore_x_disp, False);
} /* ecore_x_sync */ }
/** /**
* Kill all clients with subwindows under a given window. * Kill all clients with subwindows under a given window.
@ -920,7 +920,7 @@ ecore_x_killall(Ecore_X_Window root)
} }
XUngrabServer(_ecore_x_disp); XUngrabServer(_ecore_x_disp);
XSync(_ecore_x_disp, False); XSync(_ecore_x_disp, False);
} /* ecore_x_killall */ }
/** /**
* Kill a specific client * Kill a specific client
@ -934,7 +934,7 @@ ecore_x_kill(Ecore_X_Window win)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XKillClient(_ecore_x_disp, win); XKillClient(_ecore_x_disp, win);
} /* ecore_x_kill */ }
/** /**
* Return the last event time * Return the last event time
@ -943,7 +943,7 @@ EAPI Ecore_X_Time
ecore_x_current_time_get(void) ecore_x_current_time_get(void)
{ {
return _ecore_x_event_last_time; return _ecore_x_event_last_time;
} /* ecore_x_current_time_get */ }
/** /**
* Return the screen DPI * Return the screen DPI
@ -965,7 +965,7 @@ ecore_x_dpi_get(void)
return 75; return 75;
return (((s->width * 254) / s->mwidth) + 5) / 10; return (((s->width * 254) / s->mwidth) + 5) / 10;
} /* ecore_x_dpi_get */ }
/** /**
* Invoke the standard system beep to alert users * Invoke the standard system beep to alert users
@ -989,7 +989,7 @@ ecore_x_bell(int percent)
return EINA_FALSE; return EINA_FALSE;
return EINA_TRUE; return EINA_TRUE;
} /* ecore_x_bell */ }
static Eina_Bool static Eina_Bool
_ecore_x_fd_handler(void *data, _ecore_x_fd_handler(void *data,
@ -1021,7 +1021,7 @@ _ecore_x_fd_handler(void *data,
} }
} }
return ECORE_CALLBACK_RENEW; return ECORE_CALLBACK_RENEW;
} /* _ecore_x_fd_handler */ }
static Eina_Bool static Eina_Bool
_ecore_x_fd_handler_buf(void *data, _ecore_x_fd_handler_buf(void *data,
@ -1034,7 +1034,7 @@ _ecore_x_fd_handler_buf(void *data,
return ECORE_CALLBACK_RENEW; return ECORE_CALLBACK_RENEW;
return ECORE_CALLBACK_CANCEL; return ECORE_CALLBACK_CANCEL;
} /* _ecore_x_fd_handler_buf */ }
static int static int
_ecore_x_key_mask_get(KeySym sym) _ecore_x_key_mask_get(KeySym sym)
@ -1080,7 +1080,7 @@ _ecore_x_key_mask_get(KeySym sym)
} }
return 0; return 0;
} /* _ecore_x_key_mask_get */ }
/*****************************************************************************/ /*****************************************************************************/
/*****************************************************************************/ /*****************************************************************************/
@ -1195,7 +1195,7 @@ ecore_x_window_root_list(int *num_ret)
roots[i] = RootWindow(_ecore_x_disp, i); roots[i] = RootWindow(_ecore_x_disp, i);
#endif /* ifdef ECORE_XPRINT */ #endif /* ifdef ECORE_XPRINT */
return roots; return roots;
} /* ecore_x_window_root_list */ }
EAPI Ecore_X_Window EAPI Ecore_X_Window
ecore_x_window_root_first_get(void) ecore_x_window_root_first_get(void)
@ -1217,7 +1217,7 @@ ecore_x_window_root_first_get(void)
free(roots); free(roots);
return root; return root;
*/ */
} /* ecore_x_window_root_first_get */ }
static void _ecore_x_window_manage_error(void *data); static void _ecore_x_window_manage_error(void *data);
@ -1228,7 +1228,7 @@ _ecore_x_window_manage_error(void *data __UNUSED__)
if ((ecore_x_error_request_get() == X_ChangeWindowAttributes) && if ((ecore_x_error_request_get() == X_ChangeWindowAttributes) &&
(ecore_x_error_code_get() == BadAccess)) (ecore_x_error_code_get() == BadAccess))
_ecore_x_window_manage_failed = 1; _ecore_x_window_manage_failed = 1;
} /* _ecore_x_window_manage_error */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_window_manage(Ecore_X_Window win) ecore_x_window_manage(Ecore_X_Window win)
@ -1262,7 +1262,7 @@ ecore_x_window_manage(Ecore_X_Window win)
} }
return EINA_TRUE; return EINA_TRUE;
} /* ecore_x_window_manage */ }
EAPI void EAPI void
ecore_x_window_container_manage(Ecore_X_Window win) ecore_x_window_container_manage(Ecore_X_Window win)
@ -1271,7 +1271,7 @@ ecore_x_window_container_manage(Ecore_X_Window win)
XSelectInput(_ecore_x_disp, win, XSelectInput(_ecore_x_disp, win,
SubstructureRedirectMask | SubstructureRedirectMask |
SubstructureNotifyMask); SubstructureNotifyMask);
} /* ecore_x_window_container_manage */ }
EAPI void EAPI void
ecore_x_window_client_manage(Ecore_X_Window win) ecore_x_window_client_manage(Ecore_X_Window win)
@ -1287,7 +1287,7 @@ ecore_x_window_client_manage(Ecore_X_Window win)
SubstructureNotifyMask SubstructureNotifyMask
); );
XShapeSelectInput(_ecore_x_disp, win, ShapeNotifyMask); XShapeSelectInput(_ecore_x_disp, win, ShapeNotifyMask);
} /* ecore_x_window_client_manage */ }
EAPI void EAPI void
ecore_x_window_sniff(Ecore_X_Window win) ecore_x_window_sniff(Ecore_X_Window win)
@ -1296,7 +1296,7 @@ ecore_x_window_sniff(Ecore_X_Window win)
XSelectInput(_ecore_x_disp, win, XSelectInput(_ecore_x_disp, win,
PropertyChangeMask | PropertyChangeMask |
SubstructureNotifyMask); SubstructureNotifyMask);
} /* ecore_x_window_sniff */ }
EAPI void EAPI void
ecore_x_window_client_sniff(Ecore_X_Window win) ecore_x_window_client_sniff(Ecore_X_Window win)
@ -1310,7 +1310,7 @@ ecore_x_window_client_sniff(Ecore_X_Window win)
StructureNotifyMask | StructureNotifyMask |
SubstructureNotifyMask); SubstructureNotifyMask);
XShapeSelectInput(_ecore_x_disp, win, ShapeNotifyMask); XShapeSelectInput(_ecore_x_disp, win, ShapeNotifyMask);
} /* ecore_x_window_client_sniff */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_window_attributes_get(Ecore_X_Window win, ecore_x_window_attributes_get(Ecore_X_Window win,
@ -1353,21 +1353,21 @@ ecore_x_window_attributes_get(Ecore_X_Window win,
att_ret->colormap = att.colormap; att_ret->colormap = att.colormap;
att_ret->visual = att.visual; att_ret->visual = att.visual;
return EINA_TRUE; return EINA_TRUE;
} /* ecore_x_window_attributes_get */ }
EAPI void EAPI void
ecore_x_window_save_set_add(Ecore_X_Window win) ecore_x_window_save_set_add(Ecore_X_Window win)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XAddToSaveSet(_ecore_x_disp, win); XAddToSaveSet(_ecore_x_disp, win);
} /* ecore_x_window_save_set_add */ }
EAPI void EAPI void
ecore_x_window_save_set_del(Ecore_X_Window win) ecore_x_window_save_set_del(Ecore_X_Window win)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XRemoveFromSaveSet(_ecore_x_disp, win); XRemoveFromSaveSet(_ecore_x_disp, win);
} /* ecore_x_window_save_set_del */ }
EAPI Ecore_X_Window * EAPI Ecore_X_Window *
ecore_x_window_children_get(Ecore_X_Window win, ecore_x_window_children_get(Ecore_X_Window win,
@ -1398,7 +1398,7 @@ ecore_x_window_children_get(Ecore_X_Window win,
} }
return windows; return windows;
} /* ecore_x_window_children_get */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_pointer_control_set(int accel_num, ecore_x_pointer_control_set(int accel_num,
@ -1408,7 +1408,7 @@ ecore_x_pointer_control_set(int accel_num,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XChangePointerControl(_ecore_x_disp, 1, 1, return XChangePointerControl(_ecore_x_disp, 1, 1,
accel_num, accel_denom, threshold) ? EINA_TRUE : EINA_FALSE; accel_num, accel_denom, threshold) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_pointer_control_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_pointer_control_get(int *accel_num, ecore_x_pointer_control_get(int *accel_num,
@ -1418,7 +1418,7 @@ ecore_x_pointer_control_get(int *accel_num,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XGetPointerControl(_ecore_x_disp, return XGetPointerControl(_ecore_x_disp,
accel_num, accel_denom, threshold) ? EINA_TRUE : EINA_FALSE; accel_num, accel_denom, threshold) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_pointer_control_get */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_pointer_mapping_set(unsigned char *map, ecore_x_pointer_mapping_set(unsigned char *map,
@ -1426,7 +1426,7 @@ ecore_x_pointer_mapping_set(unsigned char *map,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XSetPointerMapping(_ecore_x_disp, map, nmap) ? EINA_TRUE : EINA_FALSE; return XSetPointerMapping(_ecore_x_disp, map, nmap) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_pointer_mapping_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_pointer_mapping_get(unsigned char *map, ecore_x_pointer_mapping_get(unsigned char *map,
@ -1434,7 +1434,7 @@ ecore_x_pointer_mapping_get(unsigned char *map,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XGetPointerMapping(_ecore_x_disp, map, nmap) ? EINA_TRUE : EINA_FALSE; return XGetPointerMapping(_ecore_x_disp, map, nmap) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_pointer_mapping_get */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_pointer_grab(Ecore_X_Window win) ecore_x_pointer_grab(Ecore_X_Window win)
@ -1448,7 +1448,7 @@ ecore_x_pointer_grab(Ecore_X_Window win)
return EINA_TRUE; return EINA_TRUE;
return EINA_FALSE; return EINA_FALSE;
} /* ecore_x_pointer_grab */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_pointer_confine_grab(Ecore_X_Window win) ecore_x_pointer_confine_grab(Ecore_X_Window win)
@ -1462,14 +1462,14 @@ ecore_x_pointer_confine_grab(Ecore_X_Window win)
return EINA_TRUE; return EINA_TRUE;
return EINA_FALSE; return EINA_FALSE;
} /* ecore_x_pointer_confine_grab */ }
EAPI void EAPI void
ecore_x_pointer_ungrab(void) ecore_x_pointer_ungrab(void)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XUngrabPointer(_ecore_x_disp, CurrentTime); XUngrabPointer(_ecore_x_disp, CurrentTime);
} /* ecore_x_pointer_ungrab */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_pointer_warp(Ecore_X_Window win, ecore_x_pointer_warp(Ecore_X_Window win,
@ -1478,7 +1478,7 @@ ecore_x_pointer_warp(Ecore_X_Window win,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XWarpPointer(_ecore_x_disp, None, win, 0, 0, 0, 0, x, y) ? EINA_TRUE : EINA_FALSE; return XWarpPointer(_ecore_x_disp, None, win, 0, 0, 0, 0, x, y) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_pointer_warp */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_keyboard_grab(Ecore_X_Window win) ecore_x_keyboard_grab(Ecore_X_Window win)
@ -1490,14 +1490,14 @@ ecore_x_keyboard_grab(Ecore_X_Window win)
return EINA_TRUE; return EINA_TRUE;
return EINA_FALSE; return EINA_FALSE;
} /* ecore_x_keyboard_grab */ }
EAPI void EAPI void
ecore_x_keyboard_ungrab(void) ecore_x_keyboard_ungrab(void)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XUngrabKeyboard(_ecore_x_disp, CurrentTime); XUngrabKeyboard(_ecore_x_disp, CurrentTime);
} /* ecore_x_keyboard_ungrab */ }
EAPI void EAPI void
ecore_x_grab(void) ecore_x_grab(void)
@ -1506,7 +1506,7 @@ ecore_x_grab(void)
_ecore_x_grab_count++; _ecore_x_grab_count++;
if (_ecore_x_grab_count == 1) if (_ecore_x_grab_count == 1)
XGrabServer(_ecore_x_disp); XGrabServer(_ecore_x_disp);
} /* ecore_x_grab */ }
EAPI void EAPI void
ecore_x_ungrab(void) ecore_x_ungrab(void)
@ -1518,7 +1518,7 @@ ecore_x_ungrab(void)
if (_ecore_x_grab_count == 0) if (_ecore_x_grab_count == 0)
XUngrabServer(_ecore_x_disp); XUngrabServer(_ecore_x_disp);
} /* ecore_x_ungrab */ }
int _ecore_window_grabs_num = 0; int _ecore_window_grabs_num = 0;
Window *_ecore_window_grabs = NULL; Window *_ecore_window_grabs = NULL;
@ -1536,7 +1536,7 @@ ecore_x_passive_grab_replay_func_set(Eina_Bool (*fun
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_window_grab_replay_func = func; _ecore_window_grab_replay_func = func;
_ecore_window_grab_replay_data = data; _ecore_window_grab_replay_data = data;
} /* ecore_x_passive_grab_replay_func_set */ }
EAPI void EAPI void
ecore_x_window_button_grab(Ecore_X_Window win, ecore_x_window_button_grab(Ecore_X_Window win,
@ -1578,7 +1578,7 @@ ecore_x_window_button_grab(Ecore_X_Window win,
if (!t) return; if (!t) return;
_ecore_window_grabs = t; _ecore_window_grabs = t;
_ecore_window_grabs[_ecore_window_grabs_num - 1] = win; _ecore_window_grabs[_ecore_window_grabs_num - 1] = win;
} /* ecore_x_window_button_grab */ }
void void
_ecore_x_sync_magic_send(int val, _ecore_x_sync_magic_send(int val,
@ -1597,7 +1597,7 @@ _ecore_x_sync_magic_send(int val,
xev.xclient.data.l[1] = 0x10000000 + val; xev.xclient.data.l[1] = 0x10000000 + val;
xev.xclient.data.l[2] = swin; xev.xclient.data.l[2] = swin;
XSendEvent(_ecore_x_disp, _ecore_x_private_win, False, NoEventMask, &xev); XSendEvent(_ecore_x_disp, _ecore_x_private_win, False, NoEventMask, &xev);
} /* _ecore_x_sync_magic_send */ }
void void
_ecore_x_window_grab_remove(Ecore_X_Window win) _ecore_x_window_grab_remove(Ecore_X_Window win)
@ -1631,7 +1631,7 @@ _ecore_x_window_grab_remove(Ecore_X_Window win)
_ecore_window_grabs = t; _ecore_window_grabs = t;
} }
} }
} /* _ecore_x_window_grab_remove */ }
EAPI void EAPI void
ecore_x_window_button_ungrab(Ecore_X_Window win, ecore_x_window_button_ungrab(Ecore_X_Window win,
@ -1664,7 +1664,7 @@ ecore_x_window_button_ungrab(Ecore_X_Window win,
for (i = 0; i < 8; i++) for (i = 0; i < 8; i++)
XUngrabButton(_ecore_x_disp, b, m | locks[i], win); XUngrabButton(_ecore_x_disp, b, m | locks[i], win);
_ecore_x_sync_magic_send(1, win); _ecore_x_sync_magic_send(1, win);
} /* ecore_x_window_button_ungrab */ }
int _ecore_key_grabs_num = 0; int _ecore_key_grabs_num = 0;
Window *_ecore_key_grabs = NULL; Window *_ecore_key_grabs = NULL;
@ -1718,7 +1718,7 @@ ecore_x_window_key_grab(Ecore_X_Window win,
if (!t) return; if (!t) return;
_ecore_key_grabs = t; _ecore_key_grabs = t;
_ecore_key_grabs[_ecore_key_grabs_num - 1] = win; _ecore_key_grabs[_ecore_key_grabs_num - 1] = win;
} /* ecore_x_window_key_grab */ }
void void
_ecore_x_key_grab_remove(Ecore_X_Window win) _ecore_x_key_grab_remove(Ecore_X_Window win)
@ -1751,7 +1751,7 @@ _ecore_x_key_grab_remove(Ecore_X_Window win)
_ecore_key_grabs = t; _ecore_key_grabs = t;
} }
} }
} /* _ecore_x_key_grab_remove */ }
EAPI void EAPI void
ecore_x_window_key_ungrab(Ecore_X_Window win, ecore_x_window_key_ungrab(Ecore_X_Window win,
@ -1795,7 +1795,7 @@ ecore_x_window_key_ungrab(Ecore_X_Window win,
for (i = 0; i < 8; i++) for (i = 0; i < 8; i++)
XUngrabKey(_ecore_x_disp, keycode, m | locks[i], win); XUngrabKey(_ecore_x_disp, keycode, m | locks[i], win);
_ecore_x_sync_magic_send(2, win); _ecore_x_sync_magic_send(2, win);
} /* ecore_x_window_key_ungrab */ }
/** /**
* Send client message with given type and format 32. * Send client message with given type and format 32.
@ -1834,7 +1834,7 @@ ecore_x_client_message32_send(Ecore_X_Window win,
xev.xclient.data.l[4] = d4; xev.xclient.data.l[4] = d4;
return XSendEvent(_ecore_x_disp, win, False, mask, &xev) ? EINA_TRUE : EINA_FALSE; return XSendEvent(_ecore_x_disp, win, False, mask, &xev) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_client_message32_send */ }
/** /**
* Send client message with given type and format 8. * Send client message with given type and format 8.
@ -1866,7 +1866,7 @@ ecore_x_client_message8_send(Ecore_X_Window win,
memset(xev.xclient.data.b + len, 0, 20 - len); memset(xev.xclient.data.b + len, 0, 20 - len);
return XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev) ? EINA_TRUE : EINA_FALSE; return XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_client_message8_send */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_mouse_move_send(Ecore_X_Window win, ecore_x_mouse_move_send(Ecore_X_Window win,
@ -1894,7 +1894,7 @@ ecore_x_mouse_move_send(Ecore_X_Window win,
xev.xmotion.is_hint = 0; xev.xmotion.is_hint = 0;
xev.xmotion.same_screen = 1; xev.xmotion.same_screen = 1;
return XSendEvent(_ecore_x_disp, win, True, PointerMotionMask, &xev) ? EINA_TRUE : EINA_FALSE; return XSendEvent(_ecore_x_disp, win, True, PointerMotionMask, &xev) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_mouse_move_send */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_mouse_down_send(Ecore_X_Window win, ecore_x_mouse_down_send(Ecore_X_Window win,
@ -1923,7 +1923,7 @@ ecore_x_mouse_down_send(Ecore_X_Window win,
xev.xbutton.button = b; xev.xbutton.button = b;
xev.xbutton.same_screen = 1; xev.xbutton.same_screen = 1;
return XSendEvent(_ecore_x_disp, win, True, ButtonPressMask, &xev) ? EINA_TRUE : EINA_FALSE; return XSendEvent(_ecore_x_disp, win, True, ButtonPressMask, &xev) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_mouse_down_send */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_mouse_up_send(Ecore_X_Window win, ecore_x_mouse_up_send(Ecore_X_Window win,
@ -1952,21 +1952,21 @@ ecore_x_mouse_up_send(Ecore_X_Window win,
xev.xbutton.button = b; xev.xbutton.button = b;
xev.xbutton.same_screen = 1; xev.xbutton.same_screen = 1;
return XSendEvent(_ecore_x_disp, win, True, ButtonReleaseMask, &xev) ? EINA_TRUE : EINA_FALSE; return XSendEvent(_ecore_x_disp, win, True, ButtonReleaseMask, &xev) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_mouse_up_send */ }
EAPI void EAPI void
ecore_x_focus_reset(void) ecore_x_focus_reset(void)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSetInputFocus(_ecore_x_disp, PointerRoot, RevertToPointerRoot, CurrentTime); XSetInputFocus(_ecore_x_disp, PointerRoot, RevertToPointerRoot, CurrentTime);
} /* ecore_x_focus_reset */ }
EAPI void EAPI void
ecore_x_events_allow_all(void) ecore_x_events_allow_all(void)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XAllowEvents(_ecore_x_disp, AsyncBoth, CurrentTime); XAllowEvents(_ecore_x_disp, AsyncBoth, CurrentTime);
} /* ecore_x_events_allow_all */ }
EAPI void EAPI void
ecore_x_pointer_last_xy_get(int *x, ecore_x_pointer_last_xy_get(int *x,
@ -1977,7 +1977,7 @@ ecore_x_pointer_last_xy_get(int *x,
if (y) if (y)
*y = _ecore_x_event_last_root_y; *y = _ecore_x_event_last_root_y;
} /* ecore_x_pointer_last_xy_get */ }
EAPI void EAPI void
ecore_x_pointer_xy_get(Ecore_X_Window win, ecore_x_pointer_xy_get(Ecore_X_Window win,
@ -1996,7 +1996,7 @@ ecore_x_pointer_xy_get(Ecore_X_Window win,
if (x) *x = wx; if (x) *x = wx;
if (y) *y = wy; if (y) *y = wy;
} /* ecore_x_pointer_xy_get */ }
/** /**
* Retrieve the Visual ID from a given Visual. * Retrieve the Visual ID from a given Visual.
@ -2094,5 +2094,5 @@ _ecore_x_event_modifier(unsigned int state)
xmodifiers |= ECORE_X_LOCK_SHIFT; xmodifiers |= ECORE_X_LOCK_SHIFT;
return xmodifiers; return xmodifiers;
} /* _ecore_x_event_modifier */ }

View File

@ -294,7 +294,7 @@ _ecore_x_atoms_init(void)
for (i = 0; i < num; i++) names[i] = (char *)items[i].name; for (i = 0; i < num; i++) names[i] = (char *)items[i].name;
XInternAtoms(_ecore_x_disp, names, num, False, atoms); XInternAtoms(_ecore_x_disp, names, num, False, atoms);
for (i = 0; i < num; i++) *(items[i].atom) = atoms[i]; for (i = 0; i < num; i++) *(items[i].atom) = atoms[i];
} /* _ecore_x_atoms_init */ }
/** /**
* Retrieves the atom value associated with the given name. * Retrieves the atom value associated with the given name.
@ -309,7 +309,7 @@ ecore_x_atom_get(const char *name)
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XInternAtom(_ecore_x_disp, name, False); return XInternAtom(_ecore_x_disp, name, False);
} /* ecore_x_atom_get */ }
EAPI void EAPI void
ecore_x_atoms_get(const char **names, ecore_x_atoms_get(const char **names,
@ -327,7 +327,7 @@ ecore_x_atoms_get(const char **names,
XInternAtoms(_ecore_x_disp, (char **)names, num, False, atoms_int); XInternAtoms(_ecore_x_disp, (char **)names, num, False, atoms_int);
for (i = 0; i < num; i++) for (i = 0; i < num; i++)
atoms[i] = atoms_int[i]; atoms[i] = atoms_int[i];
} /* ecore_x_atoms_get */ }
EAPI char * EAPI char *
ecore_x_atom_name_get(Ecore_X_Atom atom) ecore_x_atom_name_get(Ecore_X_Atom atom)
@ -348,5 +348,5 @@ ecore_x_atom_name_get(Ecore_X_Atom atom)
XFree(xname); XFree(xname);
return name; return name;
} /* ecore_x_atom_name_get */ }

View File

@ -30,14 +30,14 @@ _ecore_x_composite_init(void)
# endif # endif
} }
#endif #endif
} /* _ecore_x_composite_init */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_composite_query(void) ecore_x_composite_query(void)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _composite_available; return _composite_available;
} /* ecore_x_composite_query */ }
EAPI void EAPI void
ecore_x_composite_redirect_window(Ecore_X_Window win, ecore_x_composite_redirect_window(Ecore_X_Window win,
@ -56,10 +56,10 @@ ecore_x_composite_redirect_window(Ecore_X_Window win,
case ECORE_X_COMPOSITE_UPDATE_MANUAL: case ECORE_X_COMPOSITE_UPDATE_MANUAL:
update = CompositeRedirectManual; update = CompositeRedirectManual;
break; break;
} /* switch */ }
XCompositeRedirectWindow(_ecore_x_disp, win, update); XCompositeRedirectWindow(_ecore_x_disp, win, update);
#endif /* ifdef ECORE_XCOMPOSITE */ #endif /* ifdef ECORE_XCOMPOSITE */
} /* ecore_x_composite_redirect_window */ }
EAPI void EAPI void
ecore_x_composite_redirect_subwindows(Ecore_X_Window win, ecore_x_composite_redirect_subwindows(Ecore_X_Window win,
@ -78,10 +78,10 @@ ecore_x_composite_redirect_subwindows(Ecore_X_Window win,
case ECORE_X_COMPOSITE_UPDATE_MANUAL: case ECORE_X_COMPOSITE_UPDATE_MANUAL:
update = CompositeRedirectManual; update = CompositeRedirectManual;
break; break;
} /* switch */ }
XCompositeRedirectSubwindows(_ecore_x_disp, win, update); XCompositeRedirectSubwindows(_ecore_x_disp, win, update);
#endif /* ifdef ECORE_XCOMPOSITE */ #endif /* ifdef ECORE_XCOMPOSITE */
} /* ecore_x_composite_redirect_subwindows */ }
EAPI void EAPI void
ecore_x_composite_unredirect_window(Ecore_X_Window win, ecore_x_composite_unredirect_window(Ecore_X_Window win,
@ -100,10 +100,10 @@ ecore_x_composite_unredirect_window(Ecore_X_Window win,
case ECORE_X_COMPOSITE_UPDATE_MANUAL: case ECORE_X_COMPOSITE_UPDATE_MANUAL:
update = CompositeRedirectManual; update = CompositeRedirectManual;
break; break;
} /* switch */ }
XCompositeUnredirectWindow(_ecore_x_disp, win, update); XCompositeUnredirectWindow(_ecore_x_disp, win, update);
#endif /* ifdef ECORE_XCOMPOSITE */ #endif /* ifdef ECORE_XCOMPOSITE */
} /* ecore_x_composite_unredirect_window */ }
EAPI void EAPI void
ecore_x_composite_unredirect_subwindows(Ecore_X_Window win, ecore_x_composite_unredirect_subwindows(Ecore_X_Window win,
@ -122,10 +122,10 @@ ecore_x_composite_unredirect_subwindows(Ecore_X_Window win,
case ECORE_X_COMPOSITE_UPDATE_MANUAL: case ECORE_X_COMPOSITE_UPDATE_MANUAL:
update = CompositeRedirectManual; update = CompositeRedirectManual;
break; break;
} /* switch */ }
XCompositeUnredirectSubwindows(_ecore_x_disp, win, update); XCompositeUnredirectSubwindows(_ecore_x_disp, win, update);
#endif /* ifdef ECORE_XCOMPOSITE */ #endif /* ifdef ECORE_XCOMPOSITE */
} /* ecore_x_composite_unredirect_subwindows */ }
EAPI Ecore_X_Pixmap EAPI Ecore_X_Pixmap
ecore_x_composite_name_window_pixmap_get(Ecore_X_Window win) ecore_x_composite_name_window_pixmap_get(Ecore_X_Window win)
@ -136,7 +136,7 @@ ecore_x_composite_name_window_pixmap_get(Ecore_X_Window win)
pixmap = XCompositeNameWindowPixmap(_ecore_x_disp, win); pixmap = XCompositeNameWindowPixmap(_ecore_x_disp, win);
#endif /* ifdef ECORE_XCOMPOSITE */ #endif /* ifdef ECORE_XCOMPOSITE */
return pixmap; return pixmap;
} /* ecore_x_composite_name_window_pixmap_get */ }
EAPI void EAPI void
ecore_x_composite_window_events_disable(Ecore_X_Window win) ecore_x_composite_window_events_disable(Ecore_X_Window win)
@ -163,7 +163,7 @@ ecore_x_composite_render_window_enable(Ecore_X_Window root)
ecore_x_composite_window_events_disable(win); ecore_x_composite_window_events_disable(win);
#endif /* ifdef ECORE_XCOMPOSITE */ #endif /* ifdef ECORE_XCOMPOSITE */
return win; return win;
} /* ecore_x_composite_render_window_enable */ }
EAPI void EAPI void
ecore_x_composite_render_window_disable(Ecore_X_Window root) ecore_x_composite_render_window_disable(Ecore_X_Window root)
@ -172,5 +172,5 @@ ecore_x_composite_render_window_disable(Ecore_X_Window root)
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XCompositeReleaseOverlayWindow(_ecore_x_disp, root); XCompositeReleaseOverlayWindow(_ecore_x_disp, root);
#endif /* ifdef ECORE_XCOMPOSITE */ #endif /* ifdef ECORE_XCOMPOSITE */
} /* ecore_x_composite_render_window_disable */ }

View File

@ -10,7 +10,7 @@ EAPI Eina_Bool
ecore_x_cursor_color_supported_get(void) ecore_x_cursor_color_supported_get(void)
{ {
return _ecore_x_xcursor; return _ecore_x_xcursor;
} /* ecore_x_cursor_color_supported_get */ }
EAPI Ecore_X_Cursor EAPI Ecore_X_Cursor
ecore_x_cursor_new(Ecore_X_Window win, ecore_x_cursor_new(Ecore_X_Window win,
@ -200,14 +200,14 @@ ecore_x_cursor_new(Ecore_X_Window win,
} }
return 0; return 0;
} /* ecore_x_cursor_new */ }
EAPI void EAPI void
ecore_x_cursor_free(Ecore_X_Cursor c) ecore_x_cursor_free(Ecore_X_Cursor c)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFreeCursor(_ecore_x_disp, c); XFreeCursor(_ecore_x_disp, c);
} /* ecore_x_cursor_free */ }
/* /*
* Returns the cursor for the given shape. * Returns the cursor for the given shape.
@ -220,7 +220,7 @@ ecore_x_cursor_shape_get(int shape)
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
/* Shapes are defined in Ecore_X_Cursor.h */ /* Shapes are defined in Ecore_X_Cursor.h */
return XCreateFontCursor(_ecore_x_disp, shape); return XCreateFontCursor(_ecore_x_disp, shape);
} /* ecore_x_cursor_shape_get */ }
EAPI void EAPI void
ecore_x_cursor_size_set(int size) ecore_x_cursor_size_set(int size)
@ -231,7 +231,7 @@ ecore_x_cursor_size_set(int size)
#else /* ifdef ECORE_XCURSOR */ #else /* ifdef ECORE_XCURSOR */
size = 0; size = 0;
#endif /* ifdef ECORE_XCURSOR */ #endif /* ifdef ECORE_XCURSOR */
} /* ecore_x_cursor_size_set */ }
EAPI int EAPI int
ecore_x_cursor_size_get(void) ecore_x_cursor_size_get(void)
@ -242,5 +242,5 @@ ecore_x_cursor_size_get(void)
#else /* ifdef ECORE_XCURSOR */ #else /* ifdef ECORE_XCURSOR */
return 0; return 0;
#endif /* ifdef ECORE_XCURSOR */ #endif /* ifdef ECORE_XCURSOR */
} /* ecore_x_cursor_size_get */ }

View File

@ -26,13 +26,13 @@ _ecore_x_damage_init(void)
#else /* ifdef ECORE_XDAMAGE */ #else /* ifdef ECORE_XDAMAGE */
_damage_available = EINA_FALSE; _damage_available = EINA_FALSE;
#endif /* ifdef ECORE_XDAMAGE */ #endif /* ifdef ECORE_XDAMAGE */
} /* _ecore_x_damage_init */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_damage_query(void) ecore_x_damage_query(void)
{ {
return _damage_available; return _damage_available;
} /* ecore_x_damage_query */ }
EAPI Ecore_X_Damage EAPI Ecore_X_Damage
ecore_x_damage_new(Ecore_X_Drawable d, ecore_x_damage_new(Ecore_X_Drawable d,
@ -47,7 +47,7 @@ ecore_x_damage_new(Ecore_X_Drawable d,
#else /* ifdef ECORE_XDAMAGE */ #else /* ifdef ECORE_XDAMAGE */
return 0; return 0;
#endif /* ifdef ECORE_XDAMAGE */ #endif /* ifdef ECORE_XDAMAGE */
} /* ecore_x_damage_new */ }
EAPI void EAPI void
ecore_x_damage_free(Ecore_X_Damage damage) ecore_x_damage_free(Ecore_X_Damage damage)
@ -56,7 +56,7 @@ ecore_x_damage_free(Ecore_X_Damage damage)
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XDamageDestroy(_ecore_x_disp, damage); XDamageDestroy(_ecore_x_disp, damage);
#endif /* ifdef ECORE_XDAMAGE */ #endif /* ifdef ECORE_XDAMAGE */
} /* ecore_x_damage_free */ }
EAPI void EAPI void
ecore_x_damage_subtract(Ecore_X_Damage damage, ecore_x_damage_subtract(Ecore_X_Damage damage,
@ -67,5 +67,5 @@ ecore_x_damage_subtract(Ecore_X_Damage damage,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XDamageSubtract(_ecore_x_disp, damage, repair, parts); XDamageSubtract(_ecore_x_disp, damage, repair, parts);
#endif /* ifdef ECORE_XDAMAGE */ #endif /* ifdef ECORE_XDAMAGE */
} /* ecore_x_damage_subtract */ }

View File

@ -65,7 +65,7 @@ _ecore_x_dnd_init(void)
} }
_ecore_x_dnd_init_count++; _ecore_x_dnd_init_count++;
} /* _ecore_x_dnd_init */ }
void void
_ecore_x_dnd_shutdown(void) _ecore_x_dnd_shutdown(void)
@ -85,7 +85,7 @@ _ecore_x_dnd_shutdown(void)
_target = NULL; _target = NULL;
_ecore_x_dnd_init_count = 0; _ecore_x_dnd_init_count = 0;
} /* _ecore_x_dnd_shutdown */ }
static Eina_Bool static Eina_Bool
_ecore_x_dnd_converter_copy(char *target __UNUSED__, _ecore_x_dnd_converter_copy(char *target __UNUSED__,
@ -130,7 +130,7 @@ _ecore_x_dnd_converter_copy(char *target __UNUSED__,
free(mystr); free(mystr);
return EINA_FALSE; return EINA_FALSE;
} }
} /* _ecore_x_dnd_converter_copy */ }
EAPI void EAPI void
ecore_x_dnd_aware_set(Ecore_X_Window win, ecore_x_dnd_aware_set(Ecore_X_Window win,
@ -144,7 +144,7 @@ ecore_x_dnd_aware_set(Ecore_X_Window win,
XA_ATOM, 32, &prop_data, 1); XA_ATOM, 32, &prop_data, 1);
else else
ecore_x_window_prop_property_del(win, ECORE_X_ATOM_XDND_AWARE); ecore_x_window_prop_property_del(win, ECORE_X_ATOM_XDND_AWARE);
} /* ecore_x_dnd_aware_set */ }
EAPI int EAPI int
ecore_x_dnd_version_get(Ecore_X_Window win) ecore_x_dnd_version_get(Ecore_X_Window win)
@ -208,7 +208,7 @@ ecore_x_dnd_version_get(Ecore_X_Window win)
} }
return 0; return 0;
} /* ecore_x_dnd_version_get */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_dnd_type_isset(Ecore_X_Window win, ecore_x_dnd_type_isset(Ecore_X_Window win,
@ -237,7 +237,7 @@ ecore_x_dnd_type_isset(Ecore_X_Window win,
XFree(data); XFree(data);
return ret; return ret;
} /* ecore_x_dnd_type_isset */ }
EAPI void EAPI void
ecore_x_dnd_type_set(Ecore_X_Window win, ecore_x_dnd_type_set(Ecore_X_Window win,
@ -305,7 +305,7 @@ ecore_x_dnd_type_set(Ecore_X_Window win,
XFree(oldset); XFree(oldset);
free(newset); free(newset);
} /* ecore_x_dnd_type_set */ }
EAPI void EAPI void
ecore_x_dnd_types_set(Ecore_X_Window win, ecore_x_dnd_types_set(Ecore_X_Window win,
@ -336,7 +336,7 @@ ecore_x_dnd_types_set(Ecore_X_Window win,
XA_ATOM, 32, data, num_types); XA_ATOM, 32, data, num_types);
free(newset); free(newset);
} }
} /* ecore_x_dnd_types_set */ }
EAPI void EAPI void
ecore_x_dnd_actions_set(Ecore_X_Window win, ecore_x_dnd_actions_set(Ecore_X_Window win,
@ -360,7 +360,7 @@ ecore_x_dnd_actions_set(Ecore_X_Window win,
ecore_x_window_prop_property_set(win, ECORE_X_ATOM_XDND_ACTION_LIST, ecore_x_window_prop_property_set(win, ECORE_X_ATOM_XDND_ACTION_LIST,
XA_ATOM, 32, data, num_actions); XA_ATOM, 32, data, num_actions);
} }
} /* ecore_x_dnd_actions_set */ }
/** /**
* The DND position update cb is called Ecore_X sends a DND position to a * The DND position update cb is called Ecore_X sends a DND position to a
@ -390,13 +390,13 @@ Ecore_X_DND_Source *
_ecore_x_dnd_source_get(void) _ecore_x_dnd_source_get(void)
{ {
return _source; return _source;
} /* _ecore_x_dnd_source_get */ }
Ecore_X_DND_Target * Ecore_X_DND_Target *
_ecore_x_dnd_target_get(void) _ecore_x_dnd_target_get(void)
{ {
return _target; return _target;
} /* _ecore_x_dnd_target_get */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_dnd_begin(Ecore_X_Window source, ecore_x_dnd_begin(Ecore_X_Window source,
@ -433,7 +433,7 @@ ecore_x_dnd_begin(Ecore_X_Window source,
_source->dest = None; _source->dest = None;
return EINA_TRUE; return EINA_TRUE;
} /* ecore_x_dnd_begin */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_dnd_drop(void) ecore_x_dnd_drop(void)
@ -480,7 +480,7 @@ ecore_x_dnd_drop(void)
_source->prev.window = 0; _source->prev.window = 0;
return status; return status;
} /* ecore_x_dnd_drop */ }
EAPI void EAPI void
ecore_x_dnd_send_status(Eina_Bool will_accept, ecore_x_dnd_send_status(Eina_Bool will_accept,
@ -532,7 +532,7 @@ ecore_x_dnd_send_status(Eina_Bool will_accept,
} }
XSendEvent(_ecore_x_disp, _target->source, False, 0, &xev); XSendEvent(_ecore_x_disp, _target->source, False, 0, &xev);
} /* ecore_x_dnd_send_status */ }
EAPI void EAPI void
ecore_x_dnd_send_finished(void) ecore_x_dnd_send_finished(void)
@ -561,7 +561,7 @@ ecore_x_dnd_send_finished(void)
XSendEvent(_ecore_x_disp, _target->source, False, 0, &xev); XSendEvent(_ecore_x_disp, _target->source, False, 0, &xev);
_target->state = ECORE_X_DND_TARGET_IDLE; _target->state = ECORE_X_DND_TARGET_IDLE;
} /* ecore_x_dnd_send_finished */ }
EAPI void EAPI void
ecore_x_dnd_source_action_set(Ecore_X_Atom action) ecore_x_dnd_source_action_set(Ecore_X_Atom action)
@ -569,13 +569,13 @@ ecore_x_dnd_source_action_set(Ecore_X_Atom action)
_source->action = action; _source->action = action;
if (_source->prev.window) if (_source->prev.window)
_ecore_x_dnd_drag(_source->prev.window, _source->prev.x, _source->prev.y); _ecore_x_dnd_drag(_source->prev.window, _source->prev.x, _source->prev.y);
} /* ecore_x_dnd_source_action_set */ }
EAPI Ecore_X_Atom EAPI Ecore_X_Atom
ecore_x_dnd_source_action_get(void) ecore_x_dnd_source_action_get(void)
{ {
return _source->action; return _source->action;
} /* ecore_x_dnd_source_action_get */ }
void void
_ecore_x_dnd_drag(Ecore_X_Window root, _ecore_x_dnd_drag(Ecore_X_Window root,
@ -701,6 +701,6 @@ _ecore_x_dnd_drag(Ecore_X_Window root,
_source->prev.y = y; _source->prev.y = y;
_source->prev.window = root; _source->prev.window = root;
_source->dest = win; _source->dest = win;
} /* _ecore_x_dnd_drag */ }
/* vim:set ts=8 sw=3 sts=3 expandtab cino=>5n-2f0^-2{2(0W1st0 :*/ /* vim:set ts=8 sw=3 sts=3 expandtab cino=>5n-2f0^-2{2(0W1st0 :*/

View File

@ -23,7 +23,7 @@ _ecore_x_dpms_init(void)
#else /* ifdef ECORE_XDPMS */ #else /* ifdef ECORE_XDPMS */
_dpms_available = EINA_FALSE; _dpms_available = EINA_FALSE;
#endif /* ifdef ECORE_XDPMS */ #endif /* ifdef ECORE_XDPMS */
} /* _ecore_x_dpms_init */ }
/** /**
* @defgroup Ecore_X_DPMS_Group X DPMS Extension Functions * @defgroup Ecore_X_DPMS_Group X DPMS Extension Functions
@ -40,7 +40,7 @@ EAPI Eina_Bool
ecore_x_dpms_query(void) ecore_x_dpms_query(void)
{ {
return _dpms_available; return _dpms_available;
} /* ecore_x_dpms_query */ }
/** /**
* Checks if the X server is capable of DPMS. * Checks if the X server is capable of DPMS.
@ -56,7 +56,7 @@ ecore_x_dpms_capable_get(void)
#else /* ifdef ECORE_XDPMS */ #else /* ifdef ECORE_XDPMS */
return EINA_FALSE; return EINA_FALSE;
#endif /* ifdef ECORE_XDPMS */ #endif /* ifdef ECORE_XDPMS */
} /* ecore_x_dpms_capable_get */ }
/** /**
* Checks the DPMS state of the display. * Checks the DPMS state of the display.
@ -76,7 +76,7 @@ ecore_x_dpms_enabled_get(void)
#else /* ifdef ECORE_XDPMS */ #else /* ifdef ECORE_XDPMS */
return EINA_FALSE; return EINA_FALSE;
#endif /* ifdef ECORE_XDPMS */ #endif /* ifdef ECORE_XDPMS */
} /* ecore_x_dpms_enabled_get */ }
/** /**
* Sets the DPMS state of the display. * Sets the DPMS state of the display.
@ -94,7 +94,7 @@ ecore_x_dpms_enabled_set(int enabled)
DPMSDisable(_ecore_x_disp); DPMSDisable(_ecore_x_disp);
#endif /* ifdef ECORE_XDPMS */ #endif /* ifdef ECORE_XDPMS */
} /* ecore_x_dpms_enabled_set */ }
/** /**
* Gets the timeouts. The values are in unit of seconds. * Gets the timeouts. The values are in unit of seconds.
@ -113,7 +113,7 @@ ecore_x_dpms_timeouts_get(unsigned int *standby,
DPMSGetTimeouts(_ecore_x_disp, (unsigned short *)standby, DPMSGetTimeouts(_ecore_x_disp, (unsigned short *)standby,
(unsigned short *)suspend, (unsigned short *)off); (unsigned short *)suspend, (unsigned short *)off);
#endif /* ifdef ECORE_XDPMS */ #endif /* ifdef ECORE_XDPMS */
} /* ecore_x_dpms_timeouts_get */ }
/** /**
* Sets the timeouts. The values are in unit of seconds. * Sets the timeouts. The values are in unit of seconds.
@ -133,7 +133,7 @@ ecore_x_dpms_timeouts_set(unsigned int standby,
#else /* ifdef ECORE_XDPMS */ #else /* ifdef ECORE_XDPMS */
return EINA_FALSE; return EINA_FALSE;
#endif /* ifdef ECORE_XDPMS */ #endif /* ifdef ECORE_XDPMS */
} /* ecore_x_dpms_timeouts_set */ }
/** /**
* Returns the amount of time of inactivity before standby mode is invoked. * Returns the amount of time of inactivity before standby mode is invoked.
@ -152,7 +152,7 @@ ecore_x_dpms_timeout_standby_get(void)
#else /* ifdef ECORE_XDPMS */ #else /* ifdef ECORE_XDPMS */
return 0; return 0;
#endif /* ifdef ECORE_XDPMS */ #endif /* ifdef ECORE_XDPMS */
} /* ecore_x_dpms_timeout_standby_get */ }
/** /**
* Returns the amount of time of inactivity before the second level of * Returns the amount of time of inactivity before the second level of
@ -172,7 +172,7 @@ ecore_x_dpms_timeout_suspend_get(void)
#else /* ifdef ECORE_XDPMS */ #else /* ifdef ECORE_XDPMS */
return 0; return 0;
#endif /* ifdef ECORE_XDPMS */ #endif /* ifdef ECORE_XDPMS */
} /* ecore_x_dpms_timeout_suspend_get */ }
/** /**
* Returns the amount of time of inactivity before the third and final * Returns the amount of time of inactivity before the third and final
@ -192,7 +192,7 @@ ecore_x_dpms_timeout_off_get(void)
#else /* ifdef ECORE_XDPMS */ #else /* ifdef ECORE_XDPMS */
return 0; return 0;
#endif /* ifdef ECORE_XDPMS */ #endif /* ifdef ECORE_XDPMS */
} /* ecore_x_dpms_timeout_off_get */ }
/** /**
* Sets the standby timeout (in unit of seconds). * Sets the standby timeout (in unit of seconds).
@ -209,7 +209,7 @@ ecore_x_dpms_timeout_standby_set(unsigned int new_timeout)
DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off); DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
DPMSSetTimeouts(_ecore_x_disp, new_timeout, suspend, off); DPMSSetTimeouts(_ecore_x_disp, new_timeout, suspend, off);
#endif /* ifdef ECORE_XDPMS */ #endif /* ifdef ECORE_XDPMS */
} /* ecore_x_dpms_timeout_standby_set */ }
/** /**
* Sets the suspend timeout (in unit of seconds). * Sets the suspend timeout (in unit of seconds).
@ -226,7 +226,7 @@ ecore_x_dpms_timeout_suspend_set(unsigned int new_timeout)
DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off); DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
DPMSSetTimeouts(_ecore_x_disp, standby, new_timeout, off); DPMSSetTimeouts(_ecore_x_disp, standby, new_timeout, off);
#endif /* ifdef ECORE_XDPMS */ #endif /* ifdef ECORE_XDPMS */
} /* ecore_x_dpms_timeout_suspend_set */ }
/** /**
* Sets the off timeout (in unit of seconds). * Sets the off timeout (in unit of seconds).
@ -243,5 +243,5 @@ ecore_x_dpms_timeout_off_set(unsigned int new_timeout)
DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off); DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
DPMSSetTimeouts(_ecore_x_disp, standby, suspend, new_timeout); DPMSSetTimeouts(_ecore_x_disp, standby, suspend, new_timeout);
#endif /* ifdef ECORE_XDPMS */ #endif /* ifdef ECORE_XDPMS */
} /* ecore_x_dpms_timeout_off_set */ }

View File

@ -51,7 +51,7 @@ ecore_x_drawable_geometry_get(Ecore_X_Drawable d,
if (h) if (h)
*h = (int)ret_h; *h = (int)ret_h;
} /* ecore_x_drawable_geometry_get */ }
/** /**
* Retrieves the width of the border of the given drawable. * Retrieves the width of the border of the given drawable.
@ -72,7 +72,7 @@ ecore_x_drawable_border_width_get(Ecore_X_Drawable d)
border_ret = 0; border_ret = 0;
return (int)border_ret; return (int)border_ret;
} /* ecore_x_drawable_border_width_get */ }
/** /**
* Retrieves the depth of the given drawable. * Retrieves the depth of the given drawable.
@ -93,7 +93,7 @@ ecore_x_drawable_depth_get(Ecore_X_Drawable d)
depth_ret = 0; depth_ret = 0;
return (int)depth_ret; return (int)depth_ret;
} /* ecore_x_drawable_depth_get */ }
/** /**
* Fill the specified rectangle on a drawable. * Fill the specified rectangle on a drawable.
@ -114,5 +114,5 @@ ecore_x_drawable_rectangle_fill(Ecore_X_Drawable d,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFillRectangle(_ecore_x_disp, d, gc, x, y, width, height); XFillRectangle(_ecore_x_disp, d, gc, x, y, width, height);
} /* ecore_x_drawable_rectangle_fill */ }

View File

@ -14,7 +14,7 @@
EAPI void EAPI void
ecore_x_e_init(void) ecore_x_e_init(void)
{ {
} /* ecore_x_e_init */ }
EAPI void EAPI void
ecore_x_e_frame_size_set(Ecore_X_Window win, ecore_x_e_frame_size_set(Ecore_X_Window win,
@ -31,7 +31,7 @@ ecore_x_e_frame_size_set(Ecore_X_Window win,
frames[2] = ft; frames[2] = ft;
frames[3] = fb; frames[3] = fb;
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_FRAME_SIZE, frames, 4); ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_FRAME_SIZE, frames, 4);
} /* ecore_x_e_frame_size_set */ }
EAPI void EAPI void
ecore_x_e_virtual_keyboard_set(Ecore_X_Window win, ecore_x_e_virtual_keyboard_set(Ecore_X_Window win,
@ -40,7 +40,7 @@ ecore_x_e_virtual_keyboard_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_VIRTUAL_KEYBOARD, ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_VIRTUAL_KEYBOARD,
&is_keyboard, 1); &is_keyboard, 1);
} /* ecore_x_e_virtual_keyboard_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_e_virtual_keyboard_get(Ecore_X_Window win) ecore_x_e_virtual_keyboard_get(Ecore_X_Window win)
@ -53,7 +53,7 @@ ecore_x_e_virtual_keyboard_get(Ecore_X_Window win)
return EINA_FALSE; return EINA_FALSE;
return val ? EINA_TRUE : EINA_FALSE; return val ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_e_virtual_keyboard_get */ }
static Ecore_X_Virtual_Keyboard_State static Ecore_X_Virtual_Keyboard_State
_ecore_x_e_vkbd_state_get(Ecore_X_Atom atom) _ecore_x_e_vkbd_state_get(Ecore_X_Atom atom)
@ -104,7 +104,7 @@ _ecore_x_e_vkbd_state_get(Ecore_X_Atom atom)
return ECORE_X_VIRTUAL_KEYBOARD_STATE_J2ME; return ECORE_X_VIRTUAL_KEYBOARD_STATE_J2ME;
return ECORE_X_VIRTUAL_KEYBOARD_STATE_UNKNOWN; return ECORE_X_VIRTUAL_KEYBOARD_STATE_UNKNOWN;
} /* _ecore_x_e_vkbd_state_get */ }
static Ecore_X_Atom static Ecore_X_Atom
_ecore_x_e_vkbd_atom_get(Ecore_X_Virtual_Keyboard_State state) _ecore_x_e_vkbd_atom_get(Ecore_X_Virtual_Keyboard_State state)
@ -157,9 +157,9 @@ _ecore_x_e_vkbd_atom_get(Ecore_X_Virtual_Keyboard_State state)
return ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_J2ME; return ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_J2ME;
default: break; default: break;
} /* switch */ }
return 0; return 0;
} /* _ecore_x_e_vkbd_atom_get */ }
EAPI void EAPI void
ecore_x_e_virtual_keyboard_state_set(Ecore_X_Window win, ecore_x_e_virtual_keyboard_state_set(Ecore_X_Window win,
@ -171,7 +171,7 @@ ecore_x_e_virtual_keyboard_state_set(Ecore_X_Window win,
atom = _ecore_x_e_vkbd_atom_get(state); atom = _ecore_x_e_vkbd_atom_get(state);
ecore_x_window_prop_atom_set(win, ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_STATE, ecore_x_window_prop_atom_set(win, ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_STATE,
&atom, 1); &atom, 1);
} /* ecore_x_e_virtual_keyboard_state_set */ }
EAPI Ecore_X_Virtual_Keyboard_State EAPI Ecore_X_Virtual_Keyboard_State
ecore_x_e_virtual_keyboard_state_get(Ecore_X_Window win) ecore_x_e_virtual_keyboard_state_get(Ecore_X_Window win)
@ -184,7 +184,7 @@ ecore_x_e_virtual_keyboard_state_get(Ecore_X_Window win)
return ECORE_X_VIRTUAL_KEYBOARD_STATE_UNKNOWN; return ECORE_X_VIRTUAL_KEYBOARD_STATE_UNKNOWN;
return _ecore_x_e_vkbd_state_get(atom); return _ecore_x_e_vkbd_state_get(atom);
} /* ecore_x_e_virtual_keyboard_state_get */ }
EAPI void EAPI void
ecore_x_e_virtual_keyboard_state_send(Ecore_X_Window win, ecore_x_e_virtual_keyboard_state_send(Ecore_X_Window win,
@ -195,7 +195,7 @@ ecore_x_e_virtual_keyboard_state_send(Ecore_X_Window win,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE, ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
_ecore_x_e_vkbd_atom_get(state), _ecore_x_e_vkbd_atom_get(state),
0, 0, 0, 0); 0, 0, 0, 0);
} /* ecore_x_e_virtual_keyboard_state_send */ }
static Ecore_X_Atom static Ecore_X_Atom
_ecore_x_e_illume_atom_get(Ecore_X_Illume_Mode mode) _ecore_x_e_illume_atom_get(Ecore_X_Illume_Mode mode)
@ -213,9 +213,9 @@ _ecore_x_e_illume_atom_get(Ecore_X_Illume_Mode mode)
default: default:
break; break;
} /* switch */ }
return ECORE_X_ILLUME_MODE_UNKNOWN; return ECORE_X_ILLUME_MODE_UNKNOWN;
} /* _ecore_x_e_illume_atom_get */ }
static Ecore_X_Illume_Mode static Ecore_X_Illume_Mode
_ecore_x_e_illume_mode_get(Ecore_X_Atom atom) _ecore_x_e_illume_mode_get(Ecore_X_Atom atom)
@ -230,7 +230,7 @@ _ecore_x_e_illume_mode_get(Ecore_X_Atom atom)
return ECORE_X_ILLUME_MODE_DUAL_LEFT; return ECORE_X_ILLUME_MODE_DUAL_LEFT;
return ECORE_X_ILLUME_MODE_UNKNOWN; return ECORE_X_ILLUME_MODE_UNKNOWN;
} /* _ecore_x_e_illume_mode_get */ }
EAPI void EAPI void
ecore_x_e_illume_zone_set(Ecore_X_Window win, ecore_x_e_illume_zone_set(Ecore_X_Window win,
@ -239,7 +239,7 @@ ecore_x_e_illume_zone_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_window_set(win, ECORE_X_ATOM_E_ILLUME_ZONE, ecore_x_window_prop_window_set(win, ECORE_X_ATOM_E_ILLUME_ZONE,
&zone, 1); &zone, 1);
} /* ecore_x_e_illume_zone_set */ }
EAPI Ecore_X_Window EAPI Ecore_X_Window
ecore_x_e_illume_zone_get(Ecore_X_Window win) ecore_x_e_illume_zone_get(Ecore_X_Window win)
@ -252,7 +252,7 @@ ecore_x_e_illume_zone_get(Ecore_X_Window win)
return 0; return 0;
return zone; return zone;
} /* ecore_x_e_illume_zone_get */ }
EAPI void EAPI void
ecore_x_e_illume_zone_list_set(Ecore_X_Window win, ecore_x_e_illume_zone_list_set(Ecore_X_Window win,
@ -262,7 +262,7 @@ ecore_x_e_illume_zone_list_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_window_set(win, ECORE_X_ATOM_E_ILLUME_ZONE_LIST, ecore_x_window_prop_window_set(win, ECORE_X_ATOM_E_ILLUME_ZONE_LIST,
zones, n_zones); zones, n_zones);
} /* ecore_x_e_illume_zone_list_set */ }
EAPI void EAPI void
ecore_x_e_illume_conformant_set(Ecore_X_Window win, ecore_x_e_illume_conformant_set(Ecore_X_Window win,
@ -271,7 +271,7 @@ ecore_x_e_illume_conformant_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_CONFORMANT, ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_CONFORMANT,
&is_conformant, 1); &is_conformant, 1);
} /* ecore_x_e_illume_conformant_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_e_illume_conformant_get(Ecore_X_Window win) ecore_x_e_illume_conformant_get(Ecore_X_Window win)
@ -284,7 +284,7 @@ ecore_x_e_illume_conformant_get(Ecore_X_Window win)
return EINA_FALSE; return EINA_FALSE;
return val ? EINA_TRUE : EINA_FALSE; return val ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_e_illume_conformant_get */ }
EAPI void EAPI void
ecore_x_e_illume_mode_set(Ecore_X_Window win, ecore_x_e_illume_mode_set(Ecore_X_Window win,
@ -296,7 +296,7 @@ ecore_x_e_illume_mode_set(Ecore_X_Window win,
atom = _ecore_x_e_illume_atom_get(mode); atom = _ecore_x_e_illume_atom_get(mode);
ecore_x_window_prop_atom_set(win, ECORE_X_ATOM_E_ILLUME_MODE, ecore_x_window_prop_atom_set(win, ECORE_X_ATOM_E_ILLUME_MODE,
&atom, 1); &atom, 1);
} /* ecore_x_e_illume_mode_set */ }
EAPI Ecore_X_Illume_Mode EAPI Ecore_X_Illume_Mode
ecore_x_e_illume_mode_get(Ecore_X_Window win) ecore_x_e_illume_mode_get(Ecore_X_Window win)
@ -308,7 +308,7 @@ ecore_x_e_illume_mode_get(Ecore_X_Window win)
return ECORE_X_ILLUME_MODE_UNKNOWN; return ECORE_X_ILLUME_MODE_UNKNOWN;
return _ecore_x_e_illume_mode_get(atom); return _ecore_x_e_illume_mode_get(atom);
} /* ecore_x_e_illume_mode_get */ }
EAPI void EAPI void
ecore_x_e_illume_mode_send(Ecore_X_Window win, ecore_x_e_illume_mode_send(Ecore_X_Window win,
@ -319,7 +319,7 @@ ecore_x_e_illume_mode_send(Ecore_X_Window win,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE, ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
_ecore_x_e_illume_atom_get(mode), _ecore_x_e_illume_atom_get(mode),
0, 0, 0, 0); 0, 0, 0, 0);
} /* ecore_x_e_illume_mode_send */ }
EAPI void EAPI void
ecore_x_e_illume_focus_back_send(Ecore_X_Window win) ecore_x_e_illume_focus_back_send(Ecore_X_Window win)
@ -328,7 +328,7 @@ ecore_x_e_illume_focus_back_send(Ecore_X_Window win)
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_FOCUS_BACK, ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_FOCUS_BACK,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE, ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0); 1, 0, 0, 0, 0);
} /* ecore_x_e_illume_focus_back_send */ }
EAPI void EAPI void
ecore_x_e_illume_focus_forward_send(Ecore_X_Window win) ecore_x_e_illume_focus_forward_send(Ecore_X_Window win)
@ -337,7 +337,7 @@ ecore_x_e_illume_focus_forward_send(Ecore_X_Window win)
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_FOCUS_FORWARD, ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_FOCUS_FORWARD,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE, ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0); 1, 0, 0, 0, 0);
} /* ecore_x_e_illume_focus_forward_send */ }
EAPI void EAPI void
ecore_x_e_illume_focus_home_send(Ecore_X_Window win) ecore_x_e_illume_focus_home_send(Ecore_X_Window win)
@ -346,7 +346,7 @@ ecore_x_e_illume_focus_home_send(Ecore_X_Window win)
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_FOCUS_HOME, ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_FOCUS_HOME,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE, ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0); 1, 0, 0, 0, 0);
} /* ecore_x_e_illume_focus_home_send */ }
EAPI void EAPI void
ecore_x_e_illume_close_send(Ecore_X_Window win) ecore_x_e_illume_close_send(Ecore_X_Window win)
@ -355,7 +355,7 @@ ecore_x_e_illume_close_send(Ecore_X_Window win)
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_CLOSE, ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_CLOSE,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE, ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0); 1, 0, 0, 0, 0);
} /* ecore_x_e_illume_close_send */ }
EAPI void EAPI void
ecore_x_e_illume_home_new_send(Ecore_X_Window win) ecore_x_e_illume_home_new_send(Ecore_X_Window win)
@ -364,7 +364,7 @@ ecore_x_e_illume_home_new_send(Ecore_X_Window win)
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_HOME_NEW, ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_HOME_NEW,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE, ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0); 1, 0, 0, 0, 0);
} /* ecore_x_e_illume_home_new_send */ }
EAPI void EAPI void
ecore_x_e_illume_home_del_send(Ecore_X_Window win) ecore_x_e_illume_home_del_send(Ecore_X_Window win)
@ -373,7 +373,7 @@ ecore_x_e_illume_home_del_send(Ecore_X_Window win)
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_HOME_DEL, ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_HOME_DEL,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE, ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0); 1, 0, 0, 0, 0);
} /* ecore_x_e_illume_home_del_send */ }
EAPI void EAPI void
ecore_x_e_illume_drag_set(Ecore_X_Window win, ecore_x_e_illume_drag_set(Ecore_X_Window win,
@ -381,7 +381,7 @@ ecore_x_e_illume_drag_set(Ecore_X_Window win,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_DRAG, &drag, 1); ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_DRAG, &drag, 1);
} /* ecore_x_e_illume_drag_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_e_illume_drag_get(Ecore_X_Window win) ecore_x_e_illume_drag_get(Ecore_X_Window win)
@ -393,7 +393,7 @@ ecore_x_e_illume_drag_get(Ecore_X_Window win)
return EINA_FALSE; return EINA_FALSE;
return val ? EINA_TRUE : EINA_FALSE; return val ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_e_illume_drag_get */ }
EAPI void EAPI void
ecore_x_e_illume_drag_locked_set(Ecore_X_Window win, ecore_x_e_illume_drag_locked_set(Ecore_X_Window win,
@ -402,7 +402,7 @@ ecore_x_e_illume_drag_locked_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_DRAG_LOCKED, ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_DRAG_LOCKED,
&is_locked, 1); &is_locked, 1);
} /* ecore_x_e_illume_drag_locked_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_e_illume_drag_locked_get(Ecore_X_Window win) ecore_x_e_illume_drag_locked_get(Ecore_X_Window win)
@ -415,7 +415,7 @@ ecore_x_e_illume_drag_locked_get(Ecore_X_Window win)
return EINA_FALSE; return EINA_FALSE;
return val ? EINA_TRUE : EINA_FALSE; return val ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_e_illume_drag_locked_get */ }
EAPI void EAPI void
ecore_x_e_illume_drag_start_send(Ecore_X_Window win) ecore_x_e_illume_drag_start_send(Ecore_X_Window win)
@ -424,7 +424,7 @@ ecore_x_e_illume_drag_start_send(Ecore_X_Window win)
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_DRAG_START, ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_DRAG_START,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE, ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0); 1, 0, 0, 0, 0);
} /* ecore_x_e_illume_drag_start_send */ }
EAPI void EAPI void
ecore_x_e_illume_drag_end_send(Ecore_X_Window win) ecore_x_e_illume_drag_end_send(Ecore_X_Window win)
@ -433,7 +433,7 @@ ecore_x_e_illume_drag_end_send(Ecore_X_Window win)
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_DRAG_END, ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_DRAG_END,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE, ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0); 1, 0, 0, 0, 0);
} /* ecore_x_e_illume_drag_end_send */ }
EAPI void EAPI void
ecore_x_e_illume_indicator_geometry_set(Ecore_X_Window win, ecore_x_e_illume_indicator_geometry_set(Ecore_X_Window win,
@ -451,7 +451,7 @@ ecore_x_e_illume_indicator_geometry_set(Ecore_X_Window win,
geom[3] = h; geom[3] = h;
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_INDICATOR_GEOMETRY, ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_INDICATOR_GEOMETRY,
geom, 4); geom, 4);
} /* ecore_x_e_illume_indicator_geometry_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_e_illume_indicator_geometry_get(Ecore_X_Window win, ecore_x_e_illume_indicator_geometry_get(Ecore_X_Window win,
@ -484,7 +484,7 @@ ecore_x_e_illume_indicator_geometry_get(Ecore_X_Window win,
*h = geom[3]; *h = geom[3];
return EINA_TRUE; return EINA_TRUE;
} /* ecore_x_e_illume_indicator_geometry_get */ }
EAPI void EAPI void
ecore_x_e_illume_softkey_geometry_set(Ecore_X_Window win, ecore_x_e_illume_softkey_geometry_set(Ecore_X_Window win,
@ -502,7 +502,7 @@ ecore_x_e_illume_softkey_geometry_set(Ecore_X_Window win,
geom[3] = h; geom[3] = h;
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_SOFTKEY_GEOMETRY, ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_SOFTKEY_GEOMETRY,
geom, 4); geom, 4);
} /* ecore_x_e_illume_softkey_geometry_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_e_illume_softkey_geometry_get(Ecore_X_Window win, ecore_x_e_illume_softkey_geometry_get(Ecore_X_Window win,
@ -535,7 +535,7 @@ ecore_x_e_illume_softkey_geometry_get(Ecore_X_Window win,
*h = geom[3]; *h = geom[3];
return EINA_TRUE; return EINA_TRUE;
} /* ecore_x_e_illume_softkey_geometry_get */ }
EAPI void EAPI void
ecore_x_e_illume_keyboard_geometry_set(Ecore_X_Window win, ecore_x_e_illume_keyboard_geometry_set(Ecore_X_Window win,
@ -553,7 +553,7 @@ ecore_x_e_illume_keyboard_geometry_set(Ecore_X_Window win,
geom[3] = h; geom[3] = h;
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_KEYBOARD_GEOMETRY, ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_KEYBOARD_GEOMETRY,
geom, 4); geom, 4);
} /* ecore_x_e_illume_keyboard_geometry_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_e_illume_keyboard_geometry_get(Ecore_X_Window win, ecore_x_e_illume_keyboard_geometry_get(Ecore_X_Window win,
@ -586,7 +586,7 @@ ecore_x_e_illume_keyboard_geometry_get(Ecore_X_Window win,
*h = geom[3]; *h = geom[3];
return EINA_TRUE; return EINA_TRUE;
} /* ecore_x_e_illume_keyboard_geometry_get */ }
static Ecore_X_Atom static Ecore_X_Atom
_ecore_x_e_quickpanel_atom_get(Ecore_X_Illume_Quickpanel_State state) _ecore_x_e_quickpanel_atom_get(Ecore_X_Illume_Quickpanel_State state)
@ -601,9 +601,9 @@ _ecore_x_e_quickpanel_atom_get(Ecore_X_Illume_Quickpanel_State state)
default: default:
break; break;
} /* switch */ }
return 0; return 0;
} /* _ecore_x_e_quickpanel_atom_get */ }
static Ecore_X_Illume_Quickpanel_State static Ecore_X_Illume_Quickpanel_State
_ecore_x_e_quickpanel_state_get(Ecore_X_Atom atom) _ecore_x_e_quickpanel_state_get(Ecore_X_Atom atom)
@ -615,7 +615,7 @@ _ecore_x_e_quickpanel_state_get(Ecore_X_Atom atom)
return ECORE_X_ILLUME_QUICKPANEL_STATE_OFF; return ECORE_X_ILLUME_QUICKPANEL_STATE_OFF;
return ECORE_X_ILLUME_QUICKPANEL_STATE_UNKNOWN; return ECORE_X_ILLUME_QUICKPANEL_STATE_UNKNOWN;
} /* _ecore_x_e_quickpanel_state_get */ }
EAPI void EAPI void
ecore_x_e_illume_quickpanel_set(Ecore_X_Window win, ecore_x_e_illume_quickpanel_set(Ecore_X_Window win,
@ -624,7 +624,7 @@ ecore_x_e_illume_quickpanel_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_QUICKPANEL, ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_QUICKPANEL,
&is_quickpanel, 1); &is_quickpanel, 1);
} /* ecore_x_e_illume_quickpanel_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_e_illume_quickpanel_get(Ecore_X_Window win) ecore_x_e_illume_quickpanel_get(Ecore_X_Window win)
@ -637,7 +637,7 @@ ecore_x_e_illume_quickpanel_get(Ecore_X_Window win)
return EINA_FALSE; return EINA_FALSE;
return val ? EINA_TRUE : EINA_FALSE; return val ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_e_illume_quickpanel_get */ }
EAPI void EAPI void
ecore_x_e_illume_quickpanel_state_set(Ecore_X_Window win, ecore_x_e_illume_quickpanel_state_set(Ecore_X_Window win,
@ -649,7 +649,7 @@ ecore_x_e_illume_quickpanel_state_set(Ecore_X_Window win,
atom = _ecore_x_e_quickpanel_atom_get(state); atom = _ecore_x_e_quickpanel_atom_get(state);
ecore_x_window_prop_atom_set(win, ECORE_X_ATOM_E_ILLUME_QUICKPANEL_STATE, ecore_x_window_prop_atom_set(win, ECORE_X_ATOM_E_ILLUME_QUICKPANEL_STATE,
&atom, 1); &atom, 1);
} /* ecore_x_e_illume_quickpanel_state_set */ }
EAPI Ecore_X_Illume_Quickpanel_State EAPI Ecore_X_Illume_Quickpanel_State
ecore_x_e_illume_quickpanel_state_get(Ecore_X_Window win) ecore_x_e_illume_quickpanel_state_get(Ecore_X_Window win)
@ -663,7 +663,7 @@ ecore_x_e_illume_quickpanel_state_get(Ecore_X_Window win)
return ECORE_X_ILLUME_QUICKPANEL_STATE_UNKNOWN; return ECORE_X_ILLUME_QUICKPANEL_STATE_UNKNOWN;
return _ecore_x_e_quickpanel_state_get(atom); return _ecore_x_e_quickpanel_state_get(atom);
} /* ecore_x_e_illume_quickpanel_state_get */ }
EAPI void EAPI void
ecore_x_e_illume_quickpanel_state_send(Ecore_X_Window win, ecore_x_e_illume_quickpanel_state_send(Ecore_X_Window win,
@ -674,7 +674,7 @@ ecore_x_e_illume_quickpanel_state_send(Ecore_X_Window win,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE, ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
_ecore_x_e_quickpanel_atom_get(state), _ecore_x_e_quickpanel_atom_get(state),
0, 0, 0, 0); 0, 0, 0, 0);
} /* ecore_x_e_illume_quickpanel_state_send */ }
EAPI void EAPI void
ecore_x_e_illume_quickpanel_state_toggle(Ecore_X_Window win) ecore_x_e_illume_quickpanel_state_toggle(Ecore_X_Window win)
@ -684,7 +684,7 @@ ecore_x_e_illume_quickpanel_state_toggle(Ecore_X_Window win)
ECORE_X_ATOM_E_ILLUME_QUICKPANEL_STATE_TOGGLE, ECORE_X_ATOM_E_ILLUME_QUICKPANEL_STATE_TOGGLE,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE, ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
0, 0, 0, 0, 0); 0, 0, 0, 0, 0);
} /* ecore_x_e_illume_quickpanel_state_toggle */ }
EAPI void EAPI void
ecore_x_e_illume_quickpanel_priority_major_set(Ecore_X_Window win, ecore_x_e_illume_quickpanel_priority_major_set(Ecore_X_Window win,
@ -694,7 +694,7 @@ ecore_x_e_illume_quickpanel_priority_major_set(Ecore_X_Window win,
ecore_x_window_prop_card32_set(win, ecore_x_window_prop_card32_set(win,
ECORE_X_ATOM_E_ILLUME_QUICKPANEL_PRIORITY_MAJOR, ECORE_X_ATOM_E_ILLUME_QUICKPANEL_PRIORITY_MAJOR,
&priority, 1); &priority, 1);
} /* ecore_x_e_illume_quickpanel_priority_major_set */ }
EAPI int EAPI int
ecore_x_e_illume_quickpanel_priority_major_get(Ecore_X_Window win) ecore_x_e_illume_quickpanel_priority_major_get(Ecore_X_Window win)
@ -708,7 +708,7 @@ ecore_x_e_illume_quickpanel_priority_major_get(Ecore_X_Window win)
return 0; return 0;
return val; return val;
} /* ecore_x_e_illume_quickpanel_priority_major_get */ }
EAPI void EAPI void
ecore_x_e_illume_quickpanel_priority_minor_set(Ecore_X_Window win, ecore_x_e_illume_quickpanel_priority_minor_set(Ecore_X_Window win,
@ -718,7 +718,7 @@ ecore_x_e_illume_quickpanel_priority_minor_set(Ecore_X_Window win,
ecore_x_window_prop_card32_set(win, ecore_x_window_prop_card32_set(win,
ECORE_X_ATOM_E_ILLUME_QUICKPANEL_PRIORITY_MINOR, ECORE_X_ATOM_E_ILLUME_QUICKPANEL_PRIORITY_MINOR,
&priority, 1); &priority, 1);
} /* ecore_x_e_illume_quickpanel_priority_minor_set */ }
EAPI int EAPI int
ecore_x_e_illume_quickpanel_priority_minor_get(Ecore_X_Window win) ecore_x_e_illume_quickpanel_priority_minor_get(Ecore_X_Window win)
@ -732,7 +732,7 @@ ecore_x_e_illume_quickpanel_priority_minor_get(Ecore_X_Window win)
return 0; return 0;
return val; return val;
} /* ecore_x_e_illume_quickpanel_priority_minor_get */ }
EAPI void EAPI void
ecore_x_e_illume_quickpanel_zone_set(Ecore_X_Window win, ecore_x_e_illume_quickpanel_zone_set(Ecore_X_Window win,
@ -742,7 +742,7 @@ ecore_x_e_illume_quickpanel_zone_set(Ecore_X_Window win,
ecore_x_window_prop_card32_set(win, ecore_x_window_prop_card32_set(win,
ECORE_X_ATOM_E_ILLUME_QUICKPANEL_ZONE, ECORE_X_ATOM_E_ILLUME_QUICKPANEL_ZONE,
&zone, 1); &zone, 1);
} /* ecore_x_e_illume_quickpanel_zone_set */ }
EAPI int EAPI int
ecore_x_e_illume_quickpanel_zone_get(Ecore_X_Window win) ecore_x_e_illume_quickpanel_zone_get(Ecore_X_Window win)
@ -756,7 +756,7 @@ ecore_x_e_illume_quickpanel_zone_get(Ecore_X_Window win)
return 0; return 0;
return val; return val;
} /* ecore_x_e_illume_quickpanel_zone_get */ }
EAPI void EAPI void
ecore_x_e_illume_quickpanel_position_update_send(Ecore_X_Window win) ecore_x_e_illume_quickpanel_position_update_send(Ecore_X_Window win)
@ -766,7 +766,7 @@ ecore_x_e_illume_quickpanel_position_update_send(Ecore_X_Window win)
ECORE_X_ATOM_E_ILLUME_QUICKPANEL_POSITION_UPDATE, ECORE_X_ATOM_E_ILLUME_QUICKPANEL_POSITION_UPDATE,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE, ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0); 1, 0, 0, 0, 0);
} /* ecore_x_e_illume_quickpanel_position_update_send */ }
EAPI void EAPI void
ecore_x_e_comp_sync_counter_set(Ecore_X_Window win, ecore_x_e_comp_sync_counter_set(Ecore_X_Window win,
@ -778,7 +778,7 @@ ecore_x_e_comp_sync_counter_set(Ecore_X_Window win,
ECORE_X_ATOM_CARDINAL, &counter, 1); ECORE_X_ATOM_CARDINAL, &counter, 1);
else else
ecore_x_window_prop_property_del(win, ECORE_X_ATOM_E_COMP_SYNC_COUNTER); ecore_x_window_prop_property_del(win, ECORE_X_ATOM_E_COMP_SYNC_COUNTER);
} /* ecore_x_e_comp_sync_counter_set */ }
EAPI Ecore_X_Sync_Counter EAPI Ecore_X_Sync_Counter
ecore_x_e_comp_sync_counter_get(Ecore_X_Window win) ecore_x_e_comp_sync_counter_get(Ecore_X_Window win)
@ -796,7 +796,7 @@ ecore_x_e_comp_sync_counter_get(Ecore_X_Window win)
return 0; return 0;
return counter; return counter;
} /* ecore_x_e_comp_sync_counter_get */ }
EAPI void EAPI void
ecore_x_e_comp_sync_draw_done_send(Ecore_X_Window root, ecore_x_e_comp_sync_draw_done_send(Ecore_X_Window root,
@ -822,7 +822,7 @@ ecore_x_e_comp_sync_draw_done_send(Ecore_X_Window root,
XSendEvent(_ecore_x_disp, root, False, XSendEvent(_ecore_x_disp, root, False,
SubstructureRedirectMask | SubstructureNotifyMask, SubstructureRedirectMask | SubstructureNotifyMask,
&xev); &xev);
} /* ecore_x_e_comp_sync_draw_done_send */ }
EAPI void EAPI void
ecore_x_e_comp_sync_draw_size_done_send(Ecore_X_Window root, ecore_x_e_comp_sync_draw_size_done_send(Ecore_X_Window root,
@ -850,7 +850,7 @@ ecore_x_e_comp_sync_draw_size_done_send(Ecore_X_Window root,
XSendEvent(_ecore_x_disp, root, False, XSendEvent(_ecore_x_disp, root, False,
SubstructureRedirectMask | SubstructureNotifyMask, SubstructureRedirectMask | SubstructureNotifyMask,
&xev); &xev);
} /* ecore_x_e_comp_sync_draw_done_send */ }
EAPI void EAPI void
ecore_x_e_comp_sync_supported_set(Ecore_X_Window root, ecore_x_e_comp_sync_supported_set(Ecore_X_Window root,
@ -887,7 +887,7 @@ ecore_x_e_comp_sync_supported_set(Ecore_X_Window root,
ecore_x_window_free(win); ecore_x_window_free(win);
} }
} }
} /* ecore_x_e_comp_sync_supported_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_e_comp_sync_supported_get(Ecore_X_Window root) ecore_x_e_comp_sync_supported_get(Ecore_X_Window root)
@ -916,7 +916,7 @@ ecore_x_e_comp_sync_supported_get(Ecore_X_Window root)
} }
return EINA_FALSE; return EINA_FALSE;
} /* ecore_x_e_comp_sync_supported_get */ }
EAPI void EAPI void
ecore_x_e_comp_sync_begin_send(Ecore_X_Window win) ecore_x_e_comp_sync_begin_send(Ecore_X_Window win)
@ -938,7 +938,7 @@ ecore_x_e_comp_sync_begin_send(Ecore_X_Window win)
XSendEvent(_ecore_x_disp, win, False, XSendEvent(_ecore_x_disp, win, False,
NoEventMask, //SubstructureRedirectMask | SubstructureNotifyMask, NoEventMask, //SubstructureRedirectMask | SubstructureNotifyMask,
&xev); &xev);
} /* ecore_x_e_comp_sync_begin_send */ }
EAPI void EAPI void
ecore_x_e_comp_sync_end_send(Ecore_X_Window win) ecore_x_e_comp_sync_end_send(Ecore_X_Window win)
@ -960,7 +960,7 @@ ecore_x_e_comp_sync_end_send(Ecore_X_Window win)
XSendEvent(_ecore_x_disp, win, False, XSendEvent(_ecore_x_disp, win, False,
NoEventMask, //SubstructureRedirectMask | SubstructureNotifyMask, NoEventMask, //SubstructureRedirectMask | SubstructureNotifyMask,
&xev); &xev);
} /* ecore_x_e_comp_sync_end_send */ }
EAPI void EAPI void
ecore_x_e_comp_sync_cancel_send(Ecore_X_Window win) ecore_x_e_comp_sync_cancel_send(Ecore_X_Window win)
@ -982,7 +982,7 @@ ecore_x_e_comp_sync_cancel_send(Ecore_X_Window win)
XSendEvent(_ecore_x_disp, win, False, XSendEvent(_ecore_x_disp, win, False,
NoEventMask, //SubstructureRedirectMask | SubstructureNotifyMask, NoEventMask, //SubstructureRedirectMask | SubstructureNotifyMask,
&xev); &xev);
} /* ecore_x_e_comp_sync_cancel_send */ }
EAPI void EAPI void
ecore_x_e_comp_flush_send(Ecore_X_Window win) ecore_x_e_comp_flush_send(Ecore_X_Window win)
@ -1004,7 +1004,7 @@ ecore_x_e_comp_flush_send(Ecore_X_Window win)
XSendEvent(_ecore_x_disp, win, False, XSendEvent(_ecore_x_disp, win, False,
NoEventMask, //SubstructureRedirectMask | SubstructureNotifyMask, NoEventMask, //SubstructureRedirectMask | SubstructureNotifyMask,
&xev); &xev);
} /* ecore_x_e_comp_flush_send */ }
EAPI void EAPI void
ecore_x_e_comp_dump_send(Ecore_X_Window win) ecore_x_e_comp_dump_send(Ecore_X_Window win)
@ -1026,7 +1026,7 @@ ecore_x_e_comp_dump_send(Ecore_X_Window win)
XSendEvent(_ecore_x_disp, win, False, XSendEvent(_ecore_x_disp, win, False,
NoEventMask, //SubstructureRedirectMask | SubstructureNotifyMask, NoEventMask, //SubstructureRedirectMask | SubstructureNotifyMask,
&xev); &xev);
} /* ecore_x_e_comp_dump_send */ }
EAPI void EAPI void
ecore_x_e_comp_pixmap_set(Ecore_X_Window win, ecore_x_e_comp_pixmap_set(Ecore_X_Window win,
@ -1038,7 +1038,7 @@ ecore_x_e_comp_pixmap_set(Ecore_X_Window win,
ECORE_X_ATOM_PIXMAP, &pixmap, 1); ECORE_X_ATOM_PIXMAP, &pixmap, 1);
else else
ecore_x_window_prop_property_del(win, pixmap); ecore_x_window_prop_property_del(win, pixmap);
} /* ecore_x_e_comp_pixmap_set */ }
EAPI Ecore_X_Pixmap EAPI Ecore_X_Pixmap
ecore_x_e_comp_pixmap_get(Ecore_X_Window win) ecore_x_e_comp_pixmap_get(Ecore_X_Window win)
@ -1056,5 +1056,5 @@ ecore_x_e_comp_pixmap_get(Ecore_X_Window win)
return 0; return 0;
return pixmap; return pixmap;
} /* ecore_x_e_comp_pixmap_get */ }

View File

@ -33,7 +33,7 @@ ecore_x_error_handler_set(void (*func)(void *data),
{ {
_error_func = func; _error_func = func;
_error_data = (void *)data; _error_data = (void *)data;
} /* ecore_x_error_handler_set */ }
/** /**
* Set the I/O error handler. * Set the I/O error handler.
@ -48,7 +48,7 @@ ecore_x_io_error_handler_set(void (*func)(void *data),
{ {
_io_error_func = func; _io_error_func = func;
_io_error_data = (void *)data; _io_error_data = (void *)data;
} /* ecore_x_io_error_handler_set */ }
/** /**
* Get the request code that caused the error. * Get the request code that caused the error.
@ -60,7 +60,7 @@ EAPI int
ecore_x_error_request_get(void) ecore_x_error_request_get(void)
{ {
return _error_request_code; return _error_request_code;
} /* ecore_x_error_request_get */ }
/** /**
* Get the error code from the error. * Get the error code from the error.
@ -72,14 +72,14 @@ EAPI int
ecore_x_error_code_get(void) ecore_x_error_code_get(void)
{ {
return _error_code; return _error_code;
} /* ecore_x_error_code_get */ }
void void
_ecore_x_error_handler_init(void) _ecore_x_error_handler_init(void)
{ {
XSetErrorHandler((XErrorHandler)_ecore_x_error_handle); XSetErrorHandler((XErrorHandler)_ecore_x_error_handle);
XSetIOErrorHandler((XIOErrorHandler)_ecore_x_io_error_handle); XSetIOErrorHandler((XIOErrorHandler)_ecore_x_io_error_handle);
} /* _ecore_x_error_handler_init */ }
static int static int
_ecore_x_error_handle(Display *d, _ecore_x_error_handle(Display *d,
@ -93,7 +93,7 @@ _ecore_x_error_handle(Display *d,
_error_func(_error_data); _error_func(_error_data);
} }
return 0; return 0;
} /* _ecore_x_error_handle */ }
static int static int
_ecore_x_io_error_handle(Display *d) _ecore_x_io_error_handle(Display *d)
@ -107,5 +107,5 @@ _ecore_x_io_error_handle(Display *d)
} }
return 0; return 0;
} /* _ecore_x_io_error_handle */ }

View File

@ -100,7 +100,7 @@ _ecore_x_event_free_mouse_move(void *data __UNUSED__,
} }
free(e); free(e);
} /* _ecore_x_event_free_mouse_move */ }
EAPI void EAPI void
ecore_x_event_mask_set(Ecore_X_Window w, ecore_x_event_mask_set(Ecore_X_Window w,
@ -117,7 +117,7 @@ ecore_x_event_mask_set(Ecore_X_Window w,
XGetWindowAttributes(_ecore_x_disp, w, &attr); XGetWindowAttributes(_ecore_x_disp, w, &attr);
s_attr.event_mask = mask | attr.your_event_mask; s_attr.event_mask = mask | attr.your_event_mask;
XChangeWindowAttributes(_ecore_x_disp, w, CWEventMask, &s_attr); XChangeWindowAttributes(_ecore_x_disp, w, CWEventMask, &s_attr);
} /* ecore_x_event_mask_set */ }
EAPI void EAPI void
ecore_x_event_mask_unset(Ecore_X_Window w, ecore_x_event_mask_unset(Ecore_X_Window w,
@ -134,7 +134,7 @@ ecore_x_event_mask_unset(Ecore_X_Window w,
XGetWindowAttributes(_ecore_x_disp, w, &attr); XGetWindowAttributes(_ecore_x_disp, w, &attr);
s_attr.event_mask = attr.your_event_mask & ~mask; s_attr.event_mask = attr.your_event_mask & ~mask;
XChangeWindowAttributes(_ecore_x_disp, w, CWEventMask, &s_attr); XChangeWindowAttributes(_ecore_x_disp, w, CWEventMask, &s_attr);
} /* ecore_x_event_mask_unset */ }
static void static void
_ecore_x_event_free_xdnd_enter(void *data __UNUSED__, _ecore_x_event_free_xdnd_enter(void *data __UNUSED__,
@ -148,7 +148,7 @@ _ecore_x_event_free_xdnd_enter(void *data __UNUSED__,
XFree(e->types[i]); XFree(e->types[i]);
free(e->types); free(e->types);
free(e); free(e);
} /* _ecore_x_event_free_xdnd_enter */ }
static void static void
_ecore_x_event_free_selection_notify(void *data __UNUSED__, _ecore_x_event_free_selection_notify(void *data __UNUSED__,
@ -164,7 +164,7 @@ _ecore_x_event_free_selection_notify(void *data __UNUSED__,
free(e->target); free(e->target);
free(e); free(e);
} /* _ecore_x_event_free_selection_notify */ }
static unsigned int static unsigned int
_ecore_x_event_modifiers(unsigned int state) _ecore_x_event_modifiers(unsigned int state)
@ -196,7 +196,7 @@ _ecore_x_event_modifiers(unsigned int state)
modifiers |= ECORE_EVENT_LOCK_SHIFT; modifiers |= ECORE_EVENT_LOCK_SHIFT;
return modifiers; return modifiers;
} /* _ecore_x_event_modifiers */ }
void void
_ecore_mouse_move(unsigned int timestamp, _ecore_mouse_move(unsigned int timestamp,
@ -260,7 +260,7 @@ _ecore_mouse_move(unsigned int timestamp,
_ecore_x_event_last_root_y = y_root; _ecore_x_event_last_root_y = y_root;
_ecore_x_last_event_mouse_move_event = event; _ecore_x_last_event_mouse_move_event = event;
} /* _ecore_mouse_move */ }
static void static void
_ecore_key_press(int event, _ecore_key_press(int event,
@ -343,7 +343,7 @@ _ecore_key_press(int event,
on_error: on_error:
if (tmp) if (tmp)
free(tmp); free(tmp);
} /* _ecore_key_press */ }
Ecore_Event_Mouse_Button * Ecore_Event_Mouse_Button *
_ecore_mouse_button(int event, _ecore_mouse_button(int event,
@ -491,7 +491,7 @@ _ecore_mouse_button(int event,
} }
return e; return e;
} /* _ecore_mouse_button */ }
void void
_ecore_x_event_handle_any_event(XEvent *xevent) _ecore_x_event_handle_any_event(XEvent *xevent)
@ -500,19 +500,19 @@ _ecore_x_event_handle_any_event(XEvent *xevent)
if (!ev) return; if (!ev) return;
memcpy(ev, xevent, sizeof(XEvent)); memcpy(ev, xevent, sizeof(XEvent));
ecore_event_add(ECORE_X_EVENT_ANY, ev, NULL, NULL); ecore_event_add(ECORE_X_EVENT_ANY, ev, NULL, NULL);
} /* _ecore_x_event_handle_any_event */ }
void void
_ecore_x_event_handle_key_press(XEvent *xevent) _ecore_x_event_handle_key_press(XEvent *xevent)
{ {
_ecore_key_press(ECORE_EVENT_KEY_DOWN, (XKeyEvent *)xevent); _ecore_key_press(ECORE_EVENT_KEY_DOWN, (XKeyEvent *)xevent);
} /* _ecore_x_event_handle_key_press */ }
void void
_ecore_x_event_handle_key_release(XEvent *xevent) _ecore_x_event_handle_key_release(XEvent *xevent)
{ {
_ecore_key_press(ECORE_EVENT_KEY_UP, (XKeyEvent *)xevent); _ecore_key_press(ECORE_EVENT_KEY_UP, (XKeyEvent *)xevent);
} /* _ecore_x_event_handle_key_release */ }
void void
_ecore_x_event_handle_button_press(XEvent *xevent) _ecore_x_event_handle_button_press(XEvent *xevent)
@ -541,7 +541,7 @@ _ecore_x_event_handle_button_press(XEvent *xevent)
case 7: e->direction = 1; e->z = 1; break; case 7: e->direction = 1; e->z = 1; break;
default: e->direction = 0; e->z = 0; break; default: e->direction = 0; e->z = 0; break;
} /* switch */ }
e->x = xevent->xbutton.x; e->x = xevent->xbutton.x;
e->y = xevent->xbutton.y; e->y = xevent->xbutton.y;
@ -663,7 +663,7 @@ _ecore_x_event_handle_button_press(XEvent *xevent)
} }
} }
} }
} /* _ecore_x_event_handle_button_press */ }
void void
_ecore_x_event_handle_button_release(XEvent *xevent) _ecore_x_event_handle_button_release(XEvent *xevent)
@ -702,7 +702,7 @@ _ecore_x_event_handle_button_release(XEvent *xevent)
xevent->xbutton.x, xevent->xbutton.y, xevent->xbutton.x, xevent->xbutton.y,
xevent->xbutton.x_root, xevent->xbutton.y_root); xevent->xbutton.x_root, xevent->xbutton.y_root);
} }
} /* _ecore_x_event_handle_button_release */ }
void void
_ecore_x_event_handle_motion_notify(XEvent *xevent) _ecore_x_event_handle_motion_notify(XEvent *xevent)
@ -735,7 +735,7 @@ _ecore_x_event_handle_motion_notify(XEvent *xevent)
_ecore_x_dnd_drag(xevent->xmotion.root, _ecore_x_dnd_drag(xevent->xmotion.root,
xevent->xmotion.x_root, xevent->xmotion.x_root,
xevent->xmotion.y_root); xevent->xmotion.y_root);
} /* _ecore_x_event_handle_motion_notify */ }
void void
_ecore_x_event_handle_enter_notify(XEvent *xevent) _ecore_x_event_handle_enter_notify(XEvent *xevent)
@ -799,7 +799,7 @@ _ecore_x_event_handle_enter_notify(XEvent *xevent)
_ecore_x_event_last_time = e->time; _ecore_x_event_last_time = e->time;
ecore_event_add(ECORE_X_EVENT_MOUSE_IN, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_MOUSE_IN, e, NULL, NULL);
} }
} /* _ecore_x_event_handle_enter_notify */ }
void void
_ecore_x_event_handle_leave_notify(XEvent *xevent) _ecore_x_event_handle_leave_notify(XEvent *xevent)
@ -866,7 +866,7 @@ _ecore_x_event_handle_leave_notify(XEvent *xevent)
_ecore_x_event_last_root_y = e->root.y; _ecore_x_event_last_root_y = e->root.y;
ecore_event_add(ECORE_X_EVENT_MOUSE_OUT, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_MOUSE_OUT, e, NULL, NULL);
} }
} /* _ecore_x_event_handle_leave_notify */ }
void void
_ecore_x_event_handle_focus_in(XEvent *xevent) _ecore_x_event_handle_focus_in(XEvent *xevent)
@ -910,7 +910,7 @@ _ecore_x_event_handle_focus_in(XEvent *xevent)
e->time = _ecore_x_event_last_time; e->time = _ecore_x_event_last_time;
_ecore_x_event_last_time = e->time; _ecore_x_event_last_time = e->time;
ecore_event_add(ECORE_X_EVENT_WINDOW_FOCUS_IN, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_WINDOW_FOCUS_IN, e, NULL, NULL);
} /* _ecore_x_event_handle_focus_in */ }
void void
_ecore_x_event_handle_focus_out(XEvent *xevent) _ecore_x_event_handle_focus_out(XEvent *xevent)
@ -954,14 +954,14 @@ _ecore_x_event_handle_focus_out(XEvent *xevent)
e->time = _ecore_x_event_last_time; e->time = _ecore_x_event_last_time;
_ecore_x_event_last_time = e->time; _ecore_x_event_last_time = e->time;
ecore_event_add(ECORE_X_EVENT_WINDOW_FOCUS_OUT, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_WINDOW_FOCUS_OUT, e, NULL, NULL);
} /* _ecore_x_event_handle_focus_out */ }
void void
_ecore_x_event_handle_keymap_notify(XEvent *xevent __UNUSED__) _ecore_x_event_handle_keymap_notify(XEvent *xevent __UNUSED__)
{ {
_ecore_x_last_event_mouse_move = 0; _ecore_x_last_event_mouse_move = 0;
/* FIXME: handle this event type */ /* FIXME: handle this event type */
} /* _ecore_x_event_handle_keymap_notify */ }
void void
_ecore_x_event_handle_expose(XEvent *xevent) _ecore_x_event_handle_expose(XEvent *xevent)
@ -981,7 +981,7 @@ _ecore_x_event_handle_expose(XEvent *xevent)
e->h = xevent->xexpose.height; e->h = xevent->xexpose.height;
e->count = xevent->xexpose.count; e->count = xevent->xexpose.count;
ecore_event_add(ECORE_X_EVENT_WINDOW_DAMAGE, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_WINDOW_DAMAGE, e, NULL, NULL);
} /* _ecore_x_event_handle_expose */ }
void void
_ecore_x_event_handle_graphics_expose(XEvent *xevent) _ecore_x_event_handle_graphics_expose(XEvent *xevent)
@ -1001,7 +1001,7 @@ _ecore_x_event_handle_graphics_expose(XEvent *xevent)
e->h = xevent->xgraphicsexpose.height; e->h = xevent->xgraphicsexpose.height;
e->count = xevent->xgraphicsexpose.count; e->count = xevent->xgraphicsexpose.count;
ecore_event_add(ECORE_X_EVENT_WINDOW_DAMAGE, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_WINDOW_DAMAGE, e, NULL, NULL);
} /* _ecore_x_event_handle_graphics_expose */ }
void void
_ecore_x_event_handle_visibility_notify(XEvent *xevent) _ecore_x_event_handle_visibility_notify(XEvent *xevent)
@ -1024,7 +1024,7 @@ _ecore_x_event_handle_visibility_notify(XEvent *xevent)
ecore_event_add(ECORE_X_EVENT_WINDOW_VISIBILITY_CHANGE, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_WINDOW_VISIBILITY_CHANGE, e, NULL, NULL);
} }
} /* _ecore_x_event_handle_visibility_notify */ }
void void
_ecore_x_event_handle_create_notify(XEvent *xevent) _ecore_x_event_handle_create_notify(XEvent *xevent)
@ -1050,7 +1050,7 @@ _ecore_x_event_handle_create_notify(XEvent *xevent)
e->border = xevent->xcreatewindow.border_width; e->border = xevent->xcreatewindow.border_width;
e->time = _ecore_x_event_last_time; e->time = _ecore_x_event_last_time;
ecore_event_add(ECORE_X_EVENT_WINDOW_CREATE, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_WINDOW_CREATE, e, NULL, NULL);
} /* _ecore_x_event_handle_create_notify */ }
void void
_ecore_x_event_handle_destroy_notify(XEvent *xevent) _ecore_x_event_handle_destroy_notify(XEvent *xevent)
@ -1069,7 +1069,7 @@ _ecore_x_event_handle_destroy_notify(XEvent *xevent)
_ecore_x_event_last_win = 0; _ecore_x_event_last_win = 0;
ecore_event_add(ECORE_X_EVENT_WINDOW_DESTROY, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_WINDOW_DESTROY, e, NULL, NULL);
} /* _ecore_x_event_handle_destroy_notify */ }
void void
_ecore_x_event_handle_unmap_notify(XEvent *xevent) _ecore_x_event_handle_unmap_notify(XEvent *xevent)
@ -1085,7 +1085,7 @@ _ecore_x_event_handle_unmap_notify(XEvent *xevent)
e->event_win = xevent->xunmap.event; e->event_win = xevent->xunmap.event;
e->time = _ecore_x_event_last_time; e->time = _ecore_x_event_last_time;
ecore_event_add(ECORE_X_EVENT_WINDOW_HIDE, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_WINDOW_HIDE, e, NULL, NULL);
} /* _ecore_x_event_handle_unmap_notify */ }
void void
_ecore_x_event_handle_map_notify(XEvent *xevent) _ecore_x_event_handle_map_notify(XEvent *xevent)
@ -1101,7 +1101,7 @@ _ecore_x_event_handle_map_notify(XEvent *xevent)
e->event_win = xevent->xmap.event; e->event_win = xevent->xmap.event;
e->time = _ecore_x_event_last_time; e->time = _ecore_x_event_last_time;
ecore_event_add(ECORE_X_EVENT_WINDOW_SHOW, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_WINDOW_SHOW, e, NULL, NULL);
} /* _ecore_x_event_handle_map_notify */ }
void void
_ecore_x_event_handle_map_request(XEvent *xevent) _ecore_x_event_handle_map_request(XEvent *xevent)
@ -1117,7 +1117,7 @@ _ecore_x_event_handle_map_request(XEvent *xevent)
e->time = _ecore_x_event_last_time; e->time = _ecore_x_event_last_time;
e->parent = xevent->xmaprequest.parent; e->parent = xevent->xmaprequest.parent;
ecore_event_add(ECORE_X_EVENT_WINDOW_SHOW_REQUEST, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_WINDOW_SHOW_REQUEST, e, NULL, NULL);
} /* _ecore_x_event_handle_map_request */ }
void void
_ecore_x_event_handle_reparent_notify(XEvent *xevent) _ecore_x_event_handle_reparent_notify(XEvent *xevent)
@ -1134,7 +1134,7 @@ _ecore_x_event_handle_reparent_notify(XEvent *xevent)
e->parent = xevent->xreparent.parent; e->parent = xevent->xreparent.parent;
e->time = _ecore_x_event_last_time; e->time = _ecore_x_event_last_time;
ecore_event_add(ECORE_X_EVENT_WINDOW_REPARENT, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_WINDOW_REPARENT, e, NULL, NULL);
} /* _ecore_x_event_handle_reparent_notify */ }
void void
_ecore_x_event_handle_configure_notify(XEvent *xevent) _ecore_x_event_handle_configure_notify(XEvent *xevent)
@ -1158,7 +1158,7 @@ _ecore_x_event_handle_configure_notify(XEvent *xevent)
e->from_wm = xevent->xconfigure.send_event; e->from_wm = xevent->xconfigure.send_event;
e->time = _ecore_x_event_last_time; e->time = _ecore_x_event_last_time;
ecore_event_add(ECORE_X_EVENT_WINDOW_CONFIGURE, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_WINDOW_CONFIGURE, e, NULL, NULL);
} /* _ecore_x_event_handle_configure_notify */ }
void void
_ecore_x_event_handle_configure_request(XEvent *xevent) _ecore_x_event_handle_configure_request(XEvent *xevent)
@ -1193,14 +1193,14 @@ _ecore_x_event_handle_configure_request(XEvent *xevent)
e->detail = ECORE_X_WINDOW_STACK_OPPOSITE; e->detail = ECORE_X_WINDOW_STACK_OPPOSITE;
ecore_event_add(ECORE_X_EVENT_WINDOW_CONFIGURE_REQUEST, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_WINDOW_CONFIGURE_REQUEST, e, NULL, NULL);
} /* _ecore_x_event_handle_configure_request */ }
void void
_ecore_x_event_handle_gravity_notify(XEvent *xevent __UNUSED__) _ecore_x_event_handle_gravity_notify(XEvent *xevent __UNUSED__)
{ {
_ecore_x_last_event_mouse_move = 0; _ecore_x_last_event_mouse_move = 0;
/* FIXME: handle this event type */ /* FIXME: handle this event type */
} /* _ecore_x_event_handle_gravity_notify */ }
void void
_ecore_x_event_handle_resize_request(XEvent *xevent) _ecore_x_event_handle_resize_request(XEvent *xevent)
@ -1217,7 +1217,7 @@ _ecore_x_event_handle_resize_request(XEvent *xevent)
e->h = xevent->xresizerequest.height; e->h = xevent->xresizerequest.height;
e->time = _ecore_x_event_last_time; e->time = _ecore_x_event_last_time;
ecore_event_add(ECORE_X_EVENT_WINDOW_RESIZE_REQUEST, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_WINDOW_RESIZE_REQUEST, e, NULL, NULL);
} /* _ecore_x_event_handle_resize_request */ }
void void
_ecore_x_event_handle_circulate_notify(XEvent *xevent) _ecore_x_event_handle_circulate_notify(XEvent *xevent)
@ -1238,7 +1238,7 @@ _ecore_x_event_handle_circulate_notify(XEvent *xevent)
e->time = _ecore_x_event_last_time; e->time = _ecore_x_event_last_time;
ecore_event_add(ECORE_X_EVENT_WINDOW_STACK, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_WINDOW_STACK, e, NULL, NULL);
} /* _ecore_x_event_handle_circulate_notify */ }
void void
_ecore_x_event_handle_circulate_request(XEvent *xevent) _ecore_x_event_handle_circulate_request(XEvent *xevent)
@ -1259,7 +1259,7 @@ _ecore_x_event_handle_circulate_request(XEvent *xevent)
e->time = _ecore_x_event_last_time; e->time = _ecore_x_event_last_time;
ecore_event_add(ECORE_X_EVENT_WINDOW_STACK_REQUEST, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_WINDOW_STACK_REQUEST, e, NULL, NULL);
} /* _ecore_x_event_handle_circulate_request */ }
void void
_ecore_x_event_handle_property_notify(XEvent *xevent) _ecore_x_event_handle_property_notify(XEvent *xevent)
@ -1278,7 +1278,7 @@ _ecore_x_event_handle_property_notify(XEvent *xevent)
_ecore_x_event_last_time = e->time; _ecore_x_event_last_time = e->time;
ecore_event_add(ECORE_X_EVENT_WINDOW_PROPERTY, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_WINDOW_PROPERTY, e, NULL, NULL);
} }
} /* _ecore_x_event_handle_property_notify */ }
void void
_ecore_x_event_handle_selection_clear(XEvent *xevent) _ecore_x_event_handle_selection_clear(XEvent *xevent)
@ -1312,7 +1312,7 @@ _ecore_x_event_handle_selection_clear(XEvent *xevent)
e->selection = ECORE_X_SELECTION_OTHER; e->selection = ECORE_X_SELECTION_OTHER;
ecore_event_add(ECORE_X_EVENT_SELECTION_CLEAR, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_SELECTION_CLEAR, e, NULL, NULL);
} /* _ecore_x_event_handle_selection_clear */ }
void void
_ecore_x_event_handle_selection_request(XEvent *xevent) _ecore_x_event_handle_selection_request(XEvent *xevent)
@ -1380,7 +1380,7 @@ _ecore_x_event_handle_selection_request(XEvent *xevent)
xevent->xselectionrequest.time); xevent->xselectionrequest.time);
} }
} }
} /* _ecore_x_event_handle_selection_request */ }
void void
_ecore_x_event_handle_selection_notify(XEvent *xevent) _ecore_x_event_handle_selection_notify(XEvent *xevent)
@ -1436,7 +1436,7 @@ _ecore_x_event_handle_selection_notify(XEvent *xevent)
ecore_event_add(ECORE_X_EVENT_SELECTION_NOTIFY, e, ecore_event_add(ECORE_X_EVENT_SELECTION_NOTIFY, e,
_ecore_x_event_free_selection_notify, NULL); _ecore_x_event_free_selection_notify, NULL);
} /* _ecore_x_event_handle_selection_notify */ }
void void
_ecore_x_event_handle_colormap_notify(XEvent *xevent) _ecore_x_event_handle_colormap_notify(XEvent *xevent)
@ -1457,7 +1457,7 @@ _ecore_x_event_handle_colormap_notify(XEvent *xevent)
e->installed = EINA_FALSE; e->installed = EINA_FALSE;
ecore_event_add(ECORE_X_EVENT_WINDOW_COLORMAP, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_WINDOW_COLORMAP, e, NULL, NULL);
} /* _ecore_x_event_handle_colormap_notify */ }
void void
_ecore_x_event_handle_client_message(XEvent *xevent) _ecore_x_event_handle_client_message(XEvent *xevent)
@ -1910,7 +1910,7 @@ _ecore_x_event_handle_client_message(XEvent *xevent)
ecore_event_add(ECORE_X_EVENT_CLIENT_MESSAGE, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_CLIENT_MESSAGE, e, NULL, NULL);
} }
} /* _ecore_x_event_handle_client_message */ }
void void
_ecore_x_event_handle_mapping_notify(XEvent *xevent) _ecore_x_event_handle_mapping_notify(XEvent *xevent)
@ -1940,7 +1940,7 @@ _ecore_x_event_handle_mapping_notify(XEvent *xevent)
e->keycode = xevent->xmapping.first_keycode; e->keycode = xevent->xmapping.first_keycode;
e->num = xevent->xmapping.count; e->num = xevent->xmapping.count;
ecore_event_add(ECORE_X_EVENT_MAPPING_CHANGE, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_MAPPING_CHANGE, e, NULL, NULL);
} /* _ecore_x_event_handle_mapping_notify */ }
void void
_ecore_x_event_handle_shape_change(XEvent *xevent) _ecore_x_event_handle_shape_change(XEvent *xevent)
@ -1979,7 +1979,7 @@ _ecore_x_event_handle_shape_change(XEvent *xevent)
e->h = shape_event->height; e->h = shape_event->height;
e->shaped = shape_event->shaped; e->shaped = shape_event->shaped;
ecore_event_add(ECORE_X_EVENT_WINDOW_SHAPE, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_WINDOW_SHAPE, e, NULL, NULL);
} /* _ecore_x_event_handle_shape_change */ }
void void
_ecore_x_event_handle_screensaver_notify(XEvent *xevent) _ecore_x_event_handle_screensaver_notify(XEvent *xevent)
@ -2005,7 +2005,7 @@ _ecore_x_event_handle_screensaver_notify(XEvent *xevent)
#else /* ifdef ECORE_XSS */ #else /* ifdef ECORE_XSS */
xevent = NULL; xevent = NULL;
#endif /* ifdef ECORE_XSS */ #endif /* ifdef ECORE_XSS */
} /* _ecore_x_event_handle_screensaver_notify */ }
void void
_ecore_x_event_handle_sync_counter(XEvent *xevent) _ecore_x_event_handle_sync_counter(XEvent *xevent)
@ -2021,7 +2021,7 @@ _ecore_x_event_handle_sync_counter(XEvent *xevent)
e->time = sync_counter_event->time; e->time = sync_counter_event->time;
ecore_event_add(ECORE_X_EVENT_SYNC_COUNTER, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_SYNC_COUNTER, e, NULL, NULL);
} /* _ecore_x_event_handle_sync_counter */ }
void void
_ecore_x_event_handle_sync_alarm(XEvent *xevent) _ecore_x_event_handle_sync_alarm(XEvent *xevent)
@ -2039,7 +2039,7 @@ _ecore_x_event_handle_sync_alarm(XEvent *xevent)
e->time = sync_alarm_event->time; e->time = sync_alarm_event->time;
e->alarm = sync_alarm_event->alarm; e->alarm = sync_alarm_event->alarm;
ecore_event_add(ECORE_X_EVENT_SYNC_ALARM, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_SYNC_ALARM, e, NULL, NULL);
} /* _ecore_x_event_handle_sync_alarm */ }
#ifdef ECORE_XRANDR #ifdef ECORE_XRANDR
void void
@ -2068,7 +2068,7 @@ _ecore_x_event_handle_randr_change(XEvent *xevent)
e->orientation = randr_event->rotation; e->orientation = randr_event->rotation;
e->subpixel_order = randr_event->subpixel_order; e->subpixel_order = randr_event->subpixel_order;
ecore_event_add(ECORE_X_EVENT_SCREEN_CHANGE, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_SCREEN_CHANGE, e, NULL, NULL);
} /* _ecore_x_event_handle_randr_change */ }
static void static void
_ecore_x_event_handle_randr_notify_crtc_change(const XRRNotifyEvent *xevent) _ecore_x_event_handle_randr_notify_crtc_change(const XRRNotifyEvent *xevent)
@ -2091,7 +2091,7 @@ _ecore_x_event_handle_randr_notify_crtc_change(const XRRNotifyEvent *xevent)
e->geo.w = randr_event->width; e->geo.w = randr_event->width;
e->geo.h = randr_event->height; e->geo.h = randr_event->height;
ecore_event_add(ECORE_X_EVENT_RANDR_CRTC_CHANGE, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_RANDR_CRTC_CHANGE, e, NULL, NULL);
} /* _ecore_x_event_handle_randr_notify_crtc_change */ }
static void static void
_ecore_x_event_handle_randr_notify_output_change(const XRRNotifyEvent *xevent) _ecore_x_event_handle_randr_notify_output_change(const XRRNotifyEvent *xevent)
@ -2113,7 +2113,7 @@ _ecore_x_event_handle_randr_notify_output_change(const XRRNotifyEvent *xevent)
e->connection = randr_event->connection; e->connection = randr_event->connection;
e->subpixel_order = randr_event->subpixel_order; e->subpixel_order = randr_event->subpixel_order;
ecore_event_add(ECORE_X_EVENT_RANDR_OUTPUT_CHANGE, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_RANDR_OUTPUT_CHANGE, e, NULL, NULL);
} /* _ecore_x_event_handle_randr_notify_output_change */ }
static void static void
_ecore_x_event_handle_randr_notify_output_property(const XRRNotifyEvent *xevent) _ecore_x_event_handle_randr_notify_output_property(const XRRNotifyEvent *xevent)
@ -2136,7 +2136,7 @@ _ecore_x_event_handle_randr_notify_output_property(const XRRNotifyEvent *xevent)
else else
e->state = ECORE_X_RANDR_PROPERTY_CHANGE_DEL; e->state = ECORE_X_RANDR_PROPERTY_CHANGE_DEL;
ecore_event_add(ECORE_X_EVENT_RANDR_OUTPUT_PROPERTY_NOTIFY, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_RANDR_OUTPUT_PROPERTY_NOTIFY, e, NULL, NULL);
} /* _ecore_x_event_handle_randr_notify_output_property */ }
void void
_ecore_x_event_handle_randr_notify(XEvent *xevent) _ecore_x_event_handle_randr_notify(XEvent *xevent)
@ -2164,8 +2164,8 @@ _ecore_x_event_handle_randr_notify(XEvent *xevent)
ERR("Unknown XRandR RRNotify subtype: %d.", ERR("Unknown XRandR RRNotify subtype: %d.",
randr_event->subtype); randr_event->subtype);
break; break;
} /* switch */ }
} /* _ecore_x_event_handle_randr_notify */ }
#endif /* ifdef ECORE_XRANDR */ #endif /* ifdef ECORE_XRANDR */
@ -2201,7 +2201,7 @@ _ecore_x_event_handle_fixes_selection_notify(XEvent *event)
e->reason = notify_event->subtype; e->reason = notify_event->subtype;
ecore_event_add(ECORE_X_EVENT_FIXES_SELECTION_NOTIFY, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_FIXES_SELECTION_NOTIFY, e, NULL, NULL);
} /* _ecore_x_event_handle_fixes_selection_notify */ }
#endif /* ifdef ECORE_XFIXES */ #endif /* ifdef ECORE_XFIXES */
@ -2234,7 +2234,7 @@ _ecore_x_event_handle_damage_notify(XEvent *event)
e->geometry.height = damage_event->geometry.height; e->geometry.height = damage_event->geometry.height;
ecore_event_add(ECORE_X_EVENT_DAMAGE_NOTIFY, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_DAMAGE_NOTIFY, e, NULL, NULL);
} /* _ecore_x_event_handle_damage_notify */ }
#endif /* ifdef ECORE_XDAMAGE */ #endif /* ifdef ECORE_XDAMAGE */
@ -2256,7 +2256,7 @@ _ecore_x_event_free_generic_event(void *data,
return; return;
data = NULL; ev = NULL; data = NULL; ev = NULL;
#endif /* ifdef ECORE_XI2 */ #endif /* ifdef ECORE_XI2 */
} /* _ecore_x_event_free_generic_event */ }
void void
_ecore_x_event_handle_generic_event(XEvent *event) _ecore_x_event_handle_generic_event(XEvent *event)
@ -2300,7 +2300,7 @@ _ecore_x_event_handle_generic_event(XEvent *event)
return; return;
event = NULL; event = NULL;
#endif /* ifdef ECORE_XI2 */ #endif /* ifdef ECORE_XI2 */
} /* _ecore_x_event_handle_generic_event */ }
#ifdef ECORE_XGESTURE #ifdef ECORE_XGESTURE
void void

View File

@ -32,7 +32,7 @@ _ecore_x_fixes_init(void)
#else /* ifdef ECORE_XFIXES */ #else /* ifdef ECORE_XFIXES */
_fixes_available = 0; _fixes_available = 0;
#endif /* ifdef ECORE_XFIXES */ #endif /* ifdef ECORE_XFIXES */
} /* _ecore_x_fixes_init */ }
#ifdef ECORE_XFIXES #ifdef ECORE_XFIXES
/* I don't know what to call this function. */ /* I don't know what to call this function. */
@ -58,7 +58,7 @@ _ecore_x_rectangle_ecore_to_x(Ecore_X_Rectangle *rects,
xrect[i].height = rects[i].height; xrect[i].height = rects[i].height;
} }
return xrect; return xrect;
} /* _ecore_x_rectangle_ecore_to_x */ }
static Ecore_X_Rectangle * static Ecore_X_Rectangle *
_ecore_x_rectangle_x_to_ecore(XRectangle *xrect, _ecore_x_rectangle_x_to_ecore(XRectangle *xrect,
@ -82,7 +82,7 @@ _ecore_x_rectangle_x_to_ecore(XRectangle *xrect,
rects[i].height = xrect[i].height; rects[i].height = xrect[i].height;
} }
return rects; return rects;
} /* _ecore_x_rectangle_x_to_ecore */ }
#endif /* ifdef ECORE_XFIXES */ #endif /* ifdef ECORE_XFIXES */
@ -120,7 +120,7 @@ ecore_x_region_new(Ecore_X_Rectangle *rects,
#else /* ifdef ECORE_XFIXES */ #else /* ifdef ECORE_XFIXES */
return 0; return 0;
#endif /* ifdef ECORE_XFIXES */ #endif /* ifdef ECORE_XFIXES */
} /* ecore_x_region_new */ }
EAPI Ecore_X_Region EAPI Ecore_X_Region
ecore_x_region_new_from_bitmap(Ecore_X_Pixmap bitmap) ecore_x_region_new_from_bitmap(Ecore_X_Pixmap bitmap)
@ -134,7 +134,7 @@ ecore_x_region_new_from_bitmap(Ecore_X_Pixmap bitmap)
#else /* ifdef ECORE_XFIXES */ #else /* ifdef ECORE_XFIXES */
return 0; return 0;
#endif /* ifdef ECORE_XFIXES */ #endif /* ifdef ECORE_XFIXES */
} /* ecore_x_region_new_from_bitmap */ }
EAPI Ecore_X_Region EAPI Ecore_X_Region
ecore_x_region_new_from_window(Ecore_X_Window win, ecore_x_region_new_from_window(Ecore_X_Window win,
@ -149,7 +149,7 @@ ecore_x_region_new_from_window(Ecore_X_Window win,
#else /* ifdef ECORE_XFIXES */ #else /* ifdef ECORE_XFIXES */
return 0; return 0;
#endif /* ifdef ECORE_XFIXES */ #endif /* ifdef ECORE_XFIXES */
} /* ecore_x_region_new_from_window */ }
EAPI Ecore_X_Region EAPI Ecore_X_Region
ecore_x_region_new_from_gc(Ecore_X_GC gc) ecore_x_region_new_from_gc(Ecore_X_GC gc)
@ -163,7 +163,7 @@ ecore_x_region_new_from_gc(Ecore_X_GC gc)
#else /* ifdef ECORE_XFIXES */ #else /* ifdef ECORE_XFIXES */
return 0; return 0;
#endif /* ifdef ECORE_XFIXES */ #endif /* ifdef ECORE_XFIXES */
} /* ecore_x_region_new_from_gc */ }
EAPI Ecore_X_Region EAPI Ecore_X_Region
ecore_x_region_new_from_picture(Ecore_X_Picture picture) ecore_x_region_new_from_picture(Ecore_X_Picture picture)
@ -177,7 +177,7 @@ ecore_x_region_new_from_picture(Ecore_X_Picture picture)
#else /* ifdef ECORE_XFIXES */ #else /* ifdef ECORE_XFIXES */
return 0; return 0;
#endif /* ifdef ECORE_XFIXES */ #endif /* ifdef ECORE_XFIXES */
} /* ecore_x_region_new_from_picture */ }
EAPI void EAPI void
ecore_x_region_free(Ecore_X_Region region) ecore_x_region_free(Ecore_X_Region region)
@ -186,7 +186,7 @@ ecore_x_region_free(Ecore_X_Region region)
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesDestroyRegion(_ecore_x_disp, region); XFixesDestroyRegion(_ecore_x_disp, region);
#endif /* ifdef ECORE_XFIXES */ #endif /* ifdef ECORE_XFIXES */
} /* ecore_x_region_free */ }
EAPI void EAPI void
ecore_x_region_set(Ecore_X_Region region, ecore_x_region_set(Ecore_X_Region region,
@ -198,7 +198,7 @@ ecore_x_region_set(Ecore_X_Region region,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesSetRegion(_ecore_x_disp, region, xrect, num); XFixesSetRegion(_ecore_x_disp, region, xrect, num);
#endif /* ifdef ECORE_XFIXES */ #endif /* ifdef ECORE_XFIXES */
} /* ecore_x_region_set */ }
EAPI void EAPI void
ecore_x_region_copy(Ecore_X_Region dest, ecore_x_region_copy(Ecore_X_Region dest,
@ -208,7 +208,7 @@ ecore_x_region_copy(Ecore_X_Region dest,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesCopyRegion(_ecore_x_disp, dest, source); XFixesCopyRegion(_ecore_x_disp, dest, source);
#endif /* ifdef ECORE_XFIXES */ #endif /* ifdef ECORE_XFIXES */
} /* ecore_x_region_copy */ }
EAPI void EAPI void
ecore_x_region_combine(Ecore_X_Region dest, ecore_x_region_combine(Ecore_X_Region dest,
@ -219,7 +219,7 @@ ecore_x_region_combine(Ecore_X_Region dest,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesUnionRegion(_ecore_x_disp, dest, source1, source2); XFixesUnionRegion(_ecore_x_disp, dest, source1, source2);
#endif /* ifdef ECORE_XFIXES */ #endif /* ifdef ECORE_XFIXES */
} /* ecore_x_region_combine */ }
EAPI void EAPI void
ecore_x_region_intersect(Ecore_X_Region dest, ecore_x_region_intersect(Ecore_X_Region dest,
@ -230,7 +230,7 @@ ecore_x_region_intersect(Ecore_X_Region dest,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesIntersectRegion(_ecore_x_disp, dest, source1, source2); XFixesIntersectRegion(_ecore_x_disp, dest, source1, source2);
#endif /* ifdef ECORE_XFIXES */ #endif /* ifdef ECORE_XFIXES */
} /* ecore_x_region_intersect */ }
EAPI void EAPI void
ecore_x_region_subtract(Ecore_X_Region dest, ecore_x_region_subtract(Ecore_X_Region dest,
@ -241,7 +241,7 @@ ecore_x_region_subtract(Ecore_X_Region dest,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesSubtractRegion(_ecore_x_disp, dest, source1, source2); XFixesSubtractRegion(_ecore_x_disp, dest, source1, source2);
#endif /* ifdef ECORE_XFIXES */ #endif /* ifdef ECORE_XFIXES */
} /* ecore_x_region_subtract */ }
EAPI void EAPI void
ecore_x_region_invert(Ecore_X_Region dest, ecore_x_region_invert(Ecore_X_Region dest,
@ -258,7 +258,7 @@ ecore_x_region_invert(Ecore_X_Region dest,
XFixesInvertRegion(_ecore_x_disp, dest, xbound, source); XFixesInvertRegion(_ecore_x_disp, dest, xbound, source);
#endif /* ifdef ECORE_XFIXES */ #endif /* ifdef ECORE_XFIXES */
} /* ecore_x_region_invert */ }
EAPI void EAPI void
ecore_x_region_translate(Ecore_X_Region region, ecore_x_region_translate(Ecore_X_Region region,
@ -269,7 +269,7 @@ ecore_x_region_translate(Ecore_X_Region region,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesTranslateRegion(_ecore_x_disp, region, dx, dy); XFixesTranslateRegion(_ecore_x_disp, region, dx, dy);
#endif /* ifdef ECORE_XFIXES */ #endif /* ifdef ECORE_XFIXES */
} /* ecore_x_region_translate */ }
EAPI void EAPI void
ecore_x_region_extents(Ecore_X_Region dest, ecore_x_region_extents(Ecore_X_Region dest,
@ -279,7 +279,7 @@ ecore_x_region_extents(Ecore_X_Region dest,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesRegionExtents(_ecore_x_disp, dest, source); XFixesRegionExtents(_ecore_x_disp, dest, source);
#endif /* ifdef ECORE_XFIXES */ #endif /* ifdef ECORE_XFIXES */
} /* ecore_x_region_extents */ }
EAPI Ecore_X_Rectangle * EAPI Ecore_X_Rectangle *
ecore_x_region_fetch(Ecore_X_Region region, ecore_x_region_fetch(Ecore_X_Region region,
@ -300,7 +300,7 @@ ecore_x_region_fetch(Ecore_X_Region region,
#else /* ifdef ECORE_XFIXES */ #else /* ifdef ECORE_XFIXES */
return NULL; return NULL;
#endif /* ifdef ECORE_XFIXES */ #endif /* ifdef ECORE_XFIXES */
} /* ecore_x_region_fetch */ }
EAPI void EAPI void
ecore_x_region_expand(Ecore_X_Region dest, ecore_x_region_expand(Ecore_X_Region dest,
@ -314,7 +314,7 @@ ecore_x_region_expand(Ecore_X_Region dest,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesExpandRegion(_ecore_x_disp, dest, source, left, right, top, bottom); XFixesExpandRegion(_ecore_x_disp, dest, source, left, right, top, bottom);
#endif /* ifdef ECORE_XFIXES */ #endif /* ifdef ECORE_XFIXES */
} /* ecore_x_region_expand */ }
EAPI void EAPI void
ecore_x_region_gc_clip_set(Ecore_X_Region region, ecore_x_region_gc_clip_set(Ecore_X_Region region,
@ -326,7 +326,7 @@ ecore_x_region_gc_clip_set(Ecore_X_Region region,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesSetGCClipRegion(_ecore_x_disp, gc, x_origin, y_origin, region); XFixesSetGCClipRegion(_ecore_x_disp, gc, x_origin, y_origin, region);
#endif /* ifdef ECORE_XFIXES */ #endif /* ifdef ECORE_XFIXES */
} /* ecore_x_region_gc_clip_set */ }
EAPI void EAPI void
ecore_x_region_window_shape_set(Ecore_X_Region region, ecore_x_region_window_shape_set(Ecore_X_Region region,
@ -344,7 +344,7 @@ ecore_x_region_window_shape_set(Ecore_X_Region region,
y_offset, y_offset,
region); region);
#endif /* ifdef ECORE_XFIXES */ #endif /* ifdef ECORE_XFIXES */
} /* ecore_x_region_window_shape_set */ }
EAPI void EAPI void
ecore_x_region_picture_clip_set(Ecore_X_Region region, ecore_x_region_picture_clip_set(Ecore_X_Region region,
@ -360,5 +360,5 @@ ecore_x_region_picture_clip_set(Ecore_X_Region region,
y_origin, y_origin,
region); region);
#endif /* ifdef ECORE_XFIXES */ #endif /* ifdef ECORE_XFIXES */
} /* ecore_x_region_picture_clip_set */ }

View File

@ -152,11 +152,11 @@ ecore_x_gc_new(Ecore_X_Drawable draw,
gcv.arc_mode = value_list[idx]; gcv.arc_mode = value_list[idx];
idx++; idx++;
break; break;
} /* switch */ }
} }
return XCreateGC(_ecore_x_disp, draw, value_mask, &gcv); return XCreateGC(_ecore_x_disp, draw, value_mask, &gcv);
} /* ecore_x_gc_new */ }
/** /**
* Deletes and frees the given graphics context. * Deletes and frees the given graphics context.
@ -167,5 +167,5 @@ ecore_x_gc_free(Ecore_X_GC gc)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFreeGC(_ecore_x_disp, gc); XFreeGC(_ecore_x_disp, gc);
} /* ecore_x_gc_free */ }

View File

@ -21,7 +21,7 @@ EAPI void
ecore_x_icccm_init(void) ecore_x_icccm_init(void)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
} /* ecore_x_icccm_init */ }
EAPI void EAPI void
ecore_x_icccm_state_set(Ecore_X_Window win, ecore_x_icccm_state_set(Ecore_X_Window win,
@ -41,7 +41,7 @@ ecore_x_icccm_state_set(Ecore_X_Window win,
XChangeProperty(_ecore_x_disp, win, ECORE_X_ATOM_WM_STATE, XChangeProperty(_ecore_x_disp, win, ECORE_X_ATOM_WM_STATE,
ECORE_X_ATOM_WM_STATE, 32, PropModeReplace, ECORE_X_ATOM_WM_STATE, 32, PropModeReplace,
(unsigned char *)c, 2); (unsigned char *)c, 2);
} /* ecore_x_icccm_state_set */ }
EAPI Ecore_X_Window_State_Hint EAPI Ecore_X_Window_State_Hint
ecore_x_icccm_state_get(Ecore_X_Window win) ecore_x_icccm_state_get(Ecore_X_Window win)
@ -72,7 +72,7 @@ ecore_x_icccm_state_get(Ecore_X_Window win)
XFree(prop_ret); XFree(prop_ret);
return hint; return hint;
} /* ecore_x_icccm_state_get */ }
EAPI void EAPI void
ecore_x_icccm_delete_window_send(Ecore_X_Window win, ecore_x_icccm_delete_window_send(Ecore_X_Window win,
@ -83,7 +83,7 @@ ecore_x_icccm_delete_window_send(Ecore_X_Window win,
ECORE_X_EVENT_MASK_NONE, ECORE_X_EVENT_MASK_NONE,
ECORE_X_ATOM_WM_DELETE_WINDOW, ECORE_X_ATOM_WM_DELETE_WINDOW,
t, 0, 0, 0); t, 0, 0, 0);
} /* ecore_x_icccm_delete_window_send */ }
EAPI void EAPI void
ecore_x_icccm_take_focus_send(Ecore_X_Window win, ecore_x_icccm_take_focus_send(Ecore_X_Window win,
@ -94,7 +94,7 @@ ecore_x_icccm_take_focus_send(Ecore_X_Window win,
ECORE_X_EVENT_MASK_NONE, ECORE_X_EVENT_MASK_NONE,
ECORE_X_ATOM_WM_TAKE_FOCUS, ECORE_X_ATOM_WM_TAKE_FOCUS,
t, 0, 0, 0); t, 0, 0, 0);
} /* ecore_x_icccm_take_focus_send */ }
EAPI void EAPI void
ecore_x_icccm_save_yourself_send(Ecore_X_Window win, ecore_x_icccm_save_yourself_send(Ecore_X_Window win,
@ -105,7 +105,7 @@ ecore_x_icccm_save_yourself_send(Ecore_X_Window win,
ECORE_X_EVENT_MASK_NONE, ECORE_X_EVENT_MASK_NONE,
ECORE_X_ATOM_WM_SAVE_YOURSELF, ECORE_X_ATOM_WM_SAVE_YOURSELF,
t, 0, 0, 0); t, 0, 0, 0);
} /* ecore_x_icccm_save_yourself_send */ }
EAPI void EAPI void
ecore_x_icccm_move_resize_send(Ecore_X_Window win, ecore_x_icccm_move_resize_send(Ecore_X_Window win,
@ -129,7 +129,7 @@ ecore_x_icccm_move_resize_send(Ecore_X_Window win,
ev.xconfigure.above = None; ev.xconfigure.above = None;
ev.xconfigure.override_redirect = False; ev.xconfigure.override_redirect = False;
XSendEvent(_ecore_x_disp, win, False, StructureNotifyMask, &ev); XSendEvent(_ecore_x_disp, win, False, StructureNotifyMask, &ev);
} /* ecore_x_icccm_move_resize_send */ }
EAPI void EAPI void
ecore_x_icccm_hints_set(Ecore_X_Window win, ecore_x_icccm_hints_set(Ecore_X_Window win,
@ -186,7 +186,7 @@ ecore_x_icccm_hints_set(Ecore_X_Window win,
XSetWMHints(_ecore_x_disp, win, hints); XSetWMHints(_ecore_x_disp, win, hints);
XFree(hints); XFree(hints);
} /* ecore_x_icccm_hints_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_icccm_hints_get(Ecore_X_Window win, ecore_x_icccm_hints_get(Ecore_X_Window win,
@ -263,7 +263,7 @@ ecore_x_icccm_hints_get(Ecore_X_Window win,
} }
return EINA_FALSE; return EINA_FALSE;
} /* ecore_x_icccm_hints_get */ }
EAPI void EAPI void
ecore_x_icccm_size_pos_hints_set(Ecore_X_Window win, ecore_x_icccm_size_pos_hints_set(Ecore_X_Window win,
@ -335,7 +335,7 @@ ecore_x_icccm_size_pos_hints_set(Ecore_X_Window win,
} }
XSetWMNormalHints(_ecore_x_disp, win, &hint); XSetWMNormalHints(_ecore_x_disp, win, &hint);
} /* ecore_x_icccm_size_pos_hints_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_icccm_size_pos_hints_get(Ecore_X_Window win, ecore_x_icccm_size_pos_hints_get(Ecore_X_Window win,
@ -460,7 +460,7 @@ ecore_x_icccm_size_pos_hints_get(Ecore_X_Window win,
*max_aspect = maxa; *max_aspect = maxa;
return EINA_TRUE; return EINA_TRUE;
} /* ecore_x_icccm_size_pos_hints_get */ }
EAPI void EAPI void
ecore_x_icccm_title_set(Ecore_X_Window win, ecore_x_icccm_title_set(Ecore_X_Window win,
@ -500,7 +500,7 @@ ecore_x_icccm_title_set(Ecore_X_Window win,
} }
free(list[0]); free(list[0]);
} /* ecore_x_icccm_title_set */ }
EAPI char * EAPI char *
ecore_x_icccm_title_get(Ecore_X_Window win) ecore_x_icccm_title_get(Ecore_X_Window win)
@ -549,7 +549,7 @@ ecore_x_icccm_title_get(Ecore_X_Window win)
} }
return NULL; return NULL;
} /* ecore_x_icccm_title_get */ }
/** /**
* Set protocol atoms explicitly * Set protocol atoms explicitly
@ -567,7 +567,7 @@ ecore_x_icccm_protocol_atoms_set(Ecore_X_Window win,
XSetWMProtocols(_ecore_x_disp, win, (Atom *)(protos), num); XSetWMProtocols(_ecore_x_disp, win, (Atom *)(protos), num);
else else
XDeleteProperty(_ecore_x_disp, win, ECORE_X_ATOM_WM_PROTOCOLS); XDeleteProperty(_ecore_x_disp, win, ECORE_X_ATOM_WM_PROTOCOLS);
} /* ecore_x_icccm_protocol_atoms_set */ }
/** /**
* Set or unset a wm protocol property. * Set or unset a wm protocol property.
@ -653,7 +653,7 @@ ecore_x_icccm_protocol_set(Ecore_X_Window win,
leave: leave:
if (protos) if (protos)
XFree(protos); XFree(protos);
} /* ecore_x_icccm_protocol_set */ }
/** /**
* Determines whether a protocol is set for a window. * Determines whether a protocol is set for a window.
@ -690,7 +690,7 @@ ecore_x_icccm_protocol_isset(Ecore_X_Window win,
XFree(protos); XFree(protos);
return ret; return ret;
} /* ecore_x_icccm_protocol_isset */ }
/** /**
* Set a window name & class. * Set a window name & class.
@ -716,7 +716,7 @@ ecore_x_icccm_name_class_set(Ecore_X_Window win,
xch->res_class = (char *)c; xch->res_class = (char *)c;
XSetClassHint(_ecore_x_disp, win, xch); XSetClassHint(_ecore_x_disp, win, xch);
XFree(xch); XFree(xch);
} /* ecore_x_icccm_name_class_set */ }
/** /**
* Get a window name & class. * Get a window name & class.
@ -755,7 +755,7 @@ ecore_x_icccm_name_class_get(Ecore_X_Window win,
XFree(xch.res_name); XFree(xch.res_name);
XFree(xch.res_class); XFree(xch.res_class);
} }
} /* ecore_x_icccm_name_class_get */ }
/** /**
* Get a window client machine string. * Get a window client machine string.
@ -772,7 +772,7 @@ ecore_x_icccm_client_machine_get(Ecore_X_Window win)
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
name = ecore_x_window_prop_string_get(win, ECORE_X_ATOM_WM_CLIENT_MACHINE); name = ecore_x_window_prop_string_get(win, ECORE_X_ATOM_WM_CLIENT_MACHINE);
return name; return name;
} /* ecore_x_icccm_client_machine_get */ }
/** /**
* Sets the WM_COMMAND property for @a win. * Sets the WM_COMMAND property for @a win.
@ -788,7 +788,7 @@ ecore_x_icccm_command_set(Ecore_X_Window win,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSetCommand(_ecore_x_disp, win, argv, argc); XSetCommand(_ecore_x_disp, win, argv, argc);
} /* ecore_x_icccm_command_set */ }
/** /**
* Get the WM_COMMAND property for @a win. * Get the WM_COMMAND property for @a win.
@ -850,7 +850,7 @@ ecore_x_icccm_command_get(Ecore_X_Window win,
} }
XFreeStringList(v); XFreeStringList(v);
} /* ecore_x_icccm_command_get */ }
/** /**
* Set a window icon name. * Set a window icon name.
@ -892,7 +892,7 @@ ecore_x_icccm_icon_name_set(Ecore_X_Window win,
} }
free(list[0]); free(list[0]);
} /* ecore_x_icccm_icon_name_set */ }
/** /**
* Get a window icon name. * Get a window icon name.
@ -951,7 +951,7 @@ ecore_x_icccm_icon_name_get(Ecore_X_Window win)
} }
return NULL; return NULL;
} /* ecore_x_icccm_icon_name_get */ }
/** /**
* Add a subwindow to the list of windows that need a different colormap installed. * Add a subwindow to the list of windows that need a different colormap installed.
@ -1014,7 +1014,7 @@ ecore_x_icccm_colormap_window_set(Ecore_X_Window win,
ECORE_X_ATOM_WM_COLORMAP_WINDOWS, ECORE_X_ATOM_WM_COLORMAP_WINDOWS,
XA_WINDOW, 32, data, num); XA_WINDOW, 32, data, num);
free(newset); free(newset);
} /* ecore_x_icccm_colormap_window_set */ }
/** /**
* Remove a window from the list of colormap windows. * Remove a window from the list of colormap windows.
@ -1079,7 +1079,7 @@ ecore_x_icccm_colormap_window_unset(Ecore_X_Window win,
if (old_data) if (old_data)
XFree(old_data); XFree(old_data);
} /* ecore_x_icccm_colormap_window_unset */ }
/** /**
* Specify that a window is transient for another top-level window and should be handled accordingly. * Specify that a window is transient for another top-level window and should be handled accordingly.
@ -1092,7 +1092,7 @@ ecore_x_icccm_transient_for_set(Ecore_X_Window win,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSetTransientForHint(_ecore_x_disp, win, forwin); XSetTransientForHint(_ecore_x_disp, win, forwin);
} /* ecore_x_icccm_transient_for_set */ }
/** /**
* Remove the transient_for setting from a window. * Remove the transient_for setting from a window.
@ -1103,7 +1103,7 @@ ecore_x_icccm_transient_for_unset(Ecore_X_Window win)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XDeleteProperty(_ecore_x_disp, win, ECORE_X_ATOM_WM_TRANSIENT_FOR); XDeleteProperty(_ecore_x_disp, win, ECORE_X_ATOM_WM_TRANSIENT_FOR);
} /* ecore_x_icccm_transient_for_unset */ }
/** /**
* Get the window this window is transient for, if any. * Get the window this window is transient for, if any.
@ -1120,7 +1120,7 @@ ecore_x_icccm_transient_for_get(Ecore_X_Window win)
return (Ecore_X_Window)forwin; return (Ecore_X_Window)forwin;
else else
return 0; return 0;
} /* ecore_x_icccm_transient_for_get */ }
/** /**
* Set the window role hint. * Set the window role hint.
@ -1134,7 +1134,7 @@ ecore_x_icccm_window_role_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_string_set(win, ECORE_X_ATOM_WM_WINDOW_ROLE, ecore_x_window_prop_string_set(win, ECORE_X_ATOM_WM_WINDOW_ROLE,
(char *)role); (char *)role);
} /* ecore_x_icccm_window_role_set */ }
/** /**
* Get the window role. * Get the window role.
@ -1146,7 +1146,7 @@ ecore_x_icccm_window_role_get(Ecore_X_Window win)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ecore_x_window_prop_string_get(win, ECORE_X_ATOM_WM_WINDOW_ROLE); return ecore_x_window_prop_string_get(win, ECORE_X_ATOM_WM_WINDOW_ROLE);
} /* ecore_x_icccm_window_role_get */ }
/** /**
* Set the window's client leader. * Set the window's client leader.
@ -1163,7 +1163,7 @@ ecore_x_icccm_client_leader_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_window_set(win, ECORE_X_ATOM_WM_CLIENT_LEADER, ecore_x_window_prop_window_set(win, ECORE_X_ATOM_WM_CLIENT_LEADER,
&l, 1); &l, 1);
} /* ecore_x_icccm_client_leader_set */ }
/** /**
* Get the window's client leader. * Get the window's client leader.
@ -1180,7 +1180,7 @@ ecore_x_icccm_client_leader_get(Ecore_X_Window win)
return l; return l;
return 0; return 0;
} /* ecore_x_icccm_client_leader_get */ }
EAPI void EAPI void
ecore_x_icccm_iconic_request_send(Ecore_X_Window win, ecore_x_icccm_iconic_request_send(Ecore_X_Window win,
@ -1206,7 +1206,7 @@ ecore_x_icccm_iconic_request_send(Ecore_X_Window win,
XSendEvent(_ecore_x_disp, root, False, XSendEvent(_ecore_x_disp, root, False,
SubstructureNotifyMask | SubstructureRedirectMask, &xev); SubstructureNotifyMask | SubstructureRedirectMask, &xev);
} /* ecore_x_icccm_iconic_request_send */ }
/* FIXME: there are older E hints, gnome hints and mwm hints and new netwm */ /* FIXME: there are older E hints, gnome hints and mwm hints and new netwm */
/* hints. each should go in their own file/section so we know which */ /* hints. each should go in their own file/section so we know which */

View File

@ -20,7 +20,7 @@ _ecore_x_image_error_handler(Display *d __UNUSED__,
{ {
_ecore_x_image_err = 1; _ecore_x_image_err = 1;
return 0; return 0;
} /* _ecore_x_image_error_handler */ }
static void static void
_ecore_x_image_shm_check(void) _ecore_x_image_shm_check(void)
@ -90,7 +90,7 @@ _ecore_x_image_shm_check(void)
shmctl(shminfo.shmid, IPC_RMID, 0); shmctl(shminfo.shmid, IPC_RMID, 0);
_ecore_x_image_shm_can = 1; _ecore_x_image_shm_can = 1;
} /* _ecore_x_image_shm_check */ }
struct _Ecore_X_Image struct _Ecore_X_Image
{ {
@ -124,7 +124,7 @@ ecore_x_image_new(int w,
_ecore_x_image_shm_check(); _ecore_x_image_shm_check();
im->shm = _ecore_x_image_shm_can; im->shm = _ecore_x_image_shm_can;
return im; return im;
} /* ecore_x_image_new */ }
EAPI void EAPI void
ecore_x_image_free(Ecore_X_Image *im) ecore_x_image_free(Ecore_X_Image *im)
@ -148,7 +148,7 @@ ecore_x_image_free(Ecore_X_Image *im)
} }
free(im); free(im);
} /* ecore_x_image_free */ }
static void static void
_ecore_x_image_shm_create(Ecore_X_Image *im) _ecore_x_image_shm_create(Ecore_X_Image *im)
@ -192,7 +192,7 @@ _ecore_x_image_shm_create(Ecore_X_Image *im)
im->bpp = 2; im->bpp = 2;
else else
im->bpp = 4; im->bpp = 4;
} /* _ecore_x_image_shm_create */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_image_get(Ecore_X_Image *im, ecore_x_image_get(Ecore_X_Image *im,
@ -278,7 +278,7 @@ ecore_x_image_get(Ecore_X_Image *im,
} }
return ret; return ret;
} /* ecore_x_image_get */ }
EAPI void EAPI void
ecore_x_image_put(Ecore_X_Image *im, ecore_x_image_put(Ecore_X_Image *im,
@ -306,7 +306,7 @@ ecore_x_image_put(Ecore_X_Image *im,
if (im->xim) if (im->xim)
XShmPutImage(_ecore_x_disp, draw, gc, im->xim, sx, sy, x, y, w, h, False); XShmPutImage(_ecore_x_disp, draw, gc, im->xim, sx, sy, x, y, w, h, False);
if (tgc) ecore_x_gc_free(tgc); if (tgc) ecore_x_gc_free(tgc);
} /* ecore_x_image_put */ }
EAPI void * EAPI void *
ecore_x_image_data_get(Ecore_X_Image *im, ecore_x_image_data_get(Ecore_X_Image *im,
@ -321,7 +321,7 @@ ecore_x_image_data_get(Ecore_X_Image *im,
if (rows) *rows = im->rows; if (rows) *rows = im->rows;
if (bpp) *bpp = im->bpp; if (bpp) *bpp = im->bpp;
return im->data; return im->data;
} /* ecore_x_image_data_get */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_image_is_argb32_get(Ecore_X_Image *im) ecore_x_image_is_argb32_get(Ecore_X_Image *im)

View File

@ -86,7 +86,7 @@ ecore_x_mwm_hints_get(Ecore_X_Window win,
} }
return ret; return ret;
} /* ecore_x_mwm_hints_get */ }
EAPI void EAPI void
ecore_x_mwm_borderless_set(Ecore_X_Window win, ecore_x_mwm_borderless_set(Ecore_X_Window win,
@ -102,5 +102,5 @@ ecore_x_mwm_borderless_set(Ecore_X_Window win,
ECORE_X_ATOM_MOTIF_WM_HINTS, ECORE_X_ATOM_MOTIF_WM_HINTS,
ECORE_X_ATOM_MOTIF_WM_HINTS, ECORE_X_ATOM_MOTIF_WM_HINTS,
32, (void *)data, 5); 32, (void *)data, 5);
} /* ecore_x_mwm_borderless_set */ }

View File

@ -76,7 +76,7 @@ ecore_x_netwm_init(void)
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
startup_info = eina_hash_string_superfast_new( startup_info = eina_hash_string_superfast_new(
_ecore_x_netwm_startup_info_free); _ecore_x_netwm_startup_info_free);
} /* ecore_x_netwm_init */ }
EAPI void EAPI void
ecore_x_netwm_shutdown(void) ecore_x_netwm_shutdown(void)
@ -86,7 +86,7 @@ ecore_x_netwm_shutdown(void)
eina_hash_free(startup_info); eina_hash_free(startup_info);
startup_info = NULL; startup_info = NULL;
} /* ecore_x_netwm_shutdown */ }
/* /*
* WM identification * WM identification
@ -112,7 +112,7 @@ ecore_x_netwm_wm_identify(Ecore_X_Window root,
_ecore_x_window_prop_string_utf8_set(root, _ecore_x_window_prop_string_utf8_set(root,
ECORE_X_ATOM_NET_WM_NAME, ECORE_X_ATOM_NET_WM_NAME,
wm_name); wm_name);
} /* ecore_x_netwm_wm_identify */ }
/* /*
* Set supported atoms * Set supported atoms
@ -127,7 +127,7 @@ ecore_x_netwm_supported_set(Ecore_X_Window root,
ECORE_X_ATOM_NET_SUPPORTED, ECORE_X_ATOM_NET_SUPPORTED,
supported, supported,
num); num);
} /* ecore_x_netwm_supported_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_netwm_supported_get(Ecore_X_Window root, ecore_x_netwm_supported_get(Ecore_X_Window root,
@ -152,7 +152,7 @@ ecore_x_netwm_supported_get(Ecore_X_Window root,
*num = num_ret; *num = num_ret;
return EINA_TRUE; return EINA_TRUE;
} /* ecore_x_netwm_supported_get */ }
/* /*
* Desktop configuration and status * Desktop configuration and status
@ -164,7 +164,7 @@ ecore_x_netwm_desk_count_set(Ecore_X_Window root,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_NUMBER_OF_DESKTOPS, ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_NUMBER_OF_DESKTOPS,
&n_desks, 1); &n_desks, 1);
} /* ecore_x_netwm_desk_count_set */ }
EAPI void EAPI void
ecore_x_netwm_desk_roots_set(Ecore_X_Window root, ecore_x_netwm_desk_roots_set(Ecore_X_Window root,
@ -176,7 +176,7 @@ ecore_x_netwm_desk_roots_set(Ecore_X_Window root,
ECORE_X_ATOM_NET_VIRTUAL_ROOTS, ECORE_X_ATOM_NET_VIRTUAL_ROOTS,
vroots, vroots,
n_desks); n_desks);
} /* ecore_x_netwm_desk_roots_set */ }
EAPI void EAPI void
ecore_x_netwm_desk_names_set(Ecore_X_Window root, ecore_x_netwm_desk_names_set(Ecore_X_Window root,
@ -215,7 +215,7 @@ ecore_x_netwm_desk_names_set(Ecore_X_Window root,
_ATOM_SET_UTF8_STRING_LIST(root, ECORE_X_ATOM_NET_DESKTOP_NAMES, buf, len); _ATOM_SET_UTF8_STRING_LIST(root, ECORE_X_ATOM_NET_DESKTOP_NAMES, buf, len);
free(buf); free(buf);
} /* ecore_x_netwm_desk_names_set */ }
EAPI void EAPI void
ecore_x_netwm_desk_size_set(Ecore_X_Window root, ecore_x_netwm_desk_size_set(Ecore_X_Window root,
@ -229,7 +229,7 @@ ecore_x_netwm_desk_size_set(Ecore_X_Window root,
size[1] = height; size[1] = height;
ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_DESKTOP_GEOMETRY, size, ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_DESKTOP_GEOMETRY, size,
2); 2);
} /* ecore_x_netwm_desk_size_set */ }
EAPI void EAPI void
ecore_x_netwm_desk_viewports_set(Ecore_X_Window root, ecore_x_netwm_desk_viewports_set(Ecore_X_Window root,
@ -239,7 +239,7 @@ ecore_x_netwm_desk_viewports_set(Ecore_X_Window root,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_DESKTOP_VIEWPORT, ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_DESKTOP_VIEWPORT,
origins, 2 * n_desks); origins, 2 * n_desks);
} /* ecore_x_netwm_desk_viewports_set */ }
EAPI void EAPI void
ecore_x_netwm_desk_layout_set(Ecore_X_Window root, ecore_x_netwm_desk_layout_set(Ecore_X_Window root,
@ -257,7 +257,7 @@ ecore_x_netwm_desk_layout_set(Ecore_X_Window root,
layout[3] = starting_corner; layout[3] = starting_corner;
ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_DESKTOP_LAYOUT, ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_DESKTOP_LAYOUT,
layout, 4); layout, 4);
} /* ecore_x_netwm_desk_layout_set */ }
EAPI void EAPI void
ecore_x_netwm_desk_workareas_set(Ecore_X_Window root, ecore_x_netwm_desk_workareas_set(Ecore_X_Window root,
@ -267,7 +267,7 @@ ecore_x_netwm_desk_workareas_set(Ecore_X_Window root,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_WORKAREA, areas, ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_WORKAREA, areas,
4 * n_desks); 4 * n_desks);
} /* ecore_x_netwm_desk_workareas_set */ }
EAPI unsigned int * EAPI unsigned int *
ecore_x_netwm_desk_workareas_get(Ecore_X_Window root, unsigned int *n_desks) ecore_x_netwm_desk_workareas_get(Ecore_X_Window root, unsigned int *n_desks)
@ -295,7 +295,7 @@ ecore_x_netwm_desk_current_set(Ecore_X_Window root,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_CURRENT_DESKTOP, &desk, ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_CURRENT_DESKTOP, &desk,
1); 1);
} /* ecore_x_netwm_desk_current_set */ }
EAPI void EAPI void
ecore_x_netwm_showing_desktop_set(Ecore_X_Window root, ecore_x_netwm_showing_desktop_set(Ecore_X_Window root,
@ -307,7 +307,7 @@ ecore_x_netwm_showing_desktop_set(Ecore_X_Window root,
val = (on) ? 1 : 0; val = (on) ? 1 : 0;
ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_SHOWING_DESKTOP, &val, ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_SHOWING_DESKTOP, &val,
1); 1);
} /* ecore_x_netwm_showing_desktop_set */ }
/* /*
* Client status * Client status
@ -322,7 +322,7 @@ ecore_x_netwm_client_list_set(Ecore_X_Window root,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_CLIENT_LIST, ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_CLIENT_LIST,
p_clients, n_clients); p_clients, n_clients);
} /* ecore_x_netwm_client_list_set */ }
/* Stacking order */ /* Stacking order */
EAPI void EAPI void
@ -333,7 +333,7 @@ ecore_x_netwm_client_list_stacking_set(Ecore_X_Window root,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_CLIENT_LIST_STACKING, ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_CLIENT_LIST_STACKING,
p_clients, n_clients); p_clients, n_clients);
} /* ecore_x_netwm_client_list_stacking_set */ }
EAPI void EAPI void
ecore_x_netwm_client_active_set(Ecore_X_Window root, ecore_x_netwm_client_active_set(Ecore_X_Window root,
@ -342,7 +342,7 @@ ecore_x_netwm_client_active_set(Ecore_X_Window root,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_ACTIVE_WINDOW, ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_ACTIVE_WINDOW,
&win, 1); &win, 1);
} /* ecore_x_netwm_client_active_set */ }
EAPI void EAPI void
ecore_x_netwm_client_active_request(Ecore_X_Window root, ecore_x_netwm_client_active_request(Ecore_X_Window root,
@ -369,7 +369,7 @@ ecore_x_netwm_client_active_request(Ecore_X_Window root,
XSendEvent(_ecore_x_disp, root, False, XSendEvent(_ecore_x_disp, root, False,
SubstructureRedirectMask | SubstructureNotifyMask, &xev); SubstructureRedirectMask | SubstructureNotifyMask, &xev);
} /* ecore_x_netwm_client_active_request */ }
EAPI void EAPI void
ecore_x_netwm_name_set(Ecore_X_Window win, ecore_x_netwm_name_set(Ecore_X_Window win,
@ -377,7 +377,7 @@ ecore_x_netwm_name_set(Ecore_X_Window win,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_NAME, name); _ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_NAME, name);
} /* ecore_x_netwm_name_set */ }
EAPI int EAPI int
ecore_x_netwm_name_get(Ecore_X_Window win, ecore_x_netwm_name_get(Ecore_X_Window win,
@ -389,7 +389,7 @@ ecore_x_netwm_name_get(Ecore_X_Window win,
ECORE_X_ATOM_NET_WM_NAME); ECORE_X_ATOM_NET_WM_NAME);
return 1; return 1;
} /* ecore_x_netwm_name_get */ }
EAPI void EAPI void
ecore_x_netwm_startup_id_set(Ecore_X_Window win, ecore_x_netwm_startup_id_set(Ecore_X_Window win,
@ -397,7 +397,7 @@ ecore_x_netwm_startup_id_set(Ecore_X_Window win,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_STARTUP_ID, id); _ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_STARTUP_ID, id);
} /* ecore_x_netwm_startup_id_set */ }
EAPI int EAPI int
ecore_x_netwm_startup_id_get(Ecore_X_Window win, ecore_x_netwm_startup_id_get(Ecore_X_Window win,
@ -409,7 +409,7 @@ ecore_x_netwm_startup_id_get(Ecore_X_Window win,
ECORE_X_ATOM_NET_STARTUP_ID); ECORE_X_ATOM_NET_STARTUP_ID);
return 1; return 1;
} /* ecore_x_netwm_startup_id_get */ }
EAPI void EAPI void
ecore_x_netwm_visible_name_set(Ecore_X_Window win, ecore_x_netwm_visible_name_set(Ecore_X_Window win,
@ -418,7 +418,7 @@ ecore_x_netwm_visible_name_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_VISIBLE_NAME, _ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_VISIBLE_NAME,
name); name);
} /* ecore_x_netwm_visible_name_set */ }
EAPI int EAPI int
ecore_x_netwm_visible_name_get(Ecore_X_Window win, ecore_x_netwm_visible_name_get(Ecore_X_Window win,
@ -431,7 +431,7 @@ ecore_x_netwm_visible_name_get(Ecore_X_Window win,
ECORE_X_ATOM_NET_WM_VISIBLE_NAME); ECORE_X_ATOM_NET_WM_VISIBLE_NAME);
return 1; return 1;
} /* ecore_x_netwm_visible_name_get */ }
EAPI void EAPI void
ecore_x_netwm_icon_name_set(Ecore_X_Window win, ecore_x_netwm_icon_name_set(Ecore_X_Window win,
@ -440,7 +440,7 @@ ecore_x_netwm_icon_name_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_ICON_NAME, _ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_ICON_NAME,
name); name);
} /* ecore_x_netwm_icon_name_set */ }
EAPI int EAPI int
ecore_x_netwm_icon_name_get(Ecore_X_Window win, ecore_x_netwm_icon_name_get(Ecore_X_Window win,
@ -453,7 +453,7 @@ ecore_x_netwm_icon_name_get(Ecore_X_Window win,
ECORE_X_ATOM_NET_WM_ICON_NAME); ECORE_X_ATOM_NET_WM_ICON_NAME);
return 1; return 1;
} /* ecore_x_netwm_icon_name_get */ }
EAPI void EAPI void
ecore_x_netwm_visible_icon_name_set(Ecore_X_Window win, ecore_x_netwm_visible_icon_name_set(Ecore_X_Window win,
@ -463,7 +463,7 @@ ecore_x_netwm_visible_icon_name_set(Ecore_X_Window win,
_ecore_x_window_prop_string_utf8_set(win, _ecore_x_window_prop_string_utf8_set(win,
ECORE_X_ATOM_NET_WM_VISIBLE_ICON_NAME, ECORE_X_ATOM_NET_WM_VISIBLE_ICON_NAME,
name); name);
} /* ecore_x_netwm_visible_icon_name_set */ }
EAPI int EAPI int
ecore_x_netwm_visible_icon_name_get(Ecore_X_Window win, ecore_x_netwm_visible_icon_name_get(Ecore_X_Window win,
@ -476,7 +476,7 @@ ecore_x_netwm_visible_icon_name_get(Ecore_X_Window win,
ECORE_X_ATOM_NET_WM_VISIBLE_ICON_NAME); ECORE_X_ATOM_NET_WM_VISIBLE_ICON_NAME);
return 1; return 1;
} /* ecore_x_netwm_visible_icon_name_get */ }
EAPI void EAPI void
ecore_x_netwm_desktop_set(Ecore_X_Window win, ecore_x_netwm_desktop_set(Ecore_X_Window win,
@ -484,7 +484,7 @@ ecore_x_netwm_desktop_set(Ecore_X_Window win,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_DESKTOP, &desk, 1); ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_DESKTOP, &desk, 1);
} /* ecore_x_netwm_desktop_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_netwm_desktop_get(Ecore_X_Window win, ecore_x_netwm_desktop_get(Ecore_X_Window win,
@ -501,7 +501,7 @@ ecore_x_netwm_desktop_get(Ecore_X_Window win,
*desk = tmp; *desk = tmp;
return ret == 1 ? EINA_TRUE : EINA_FALSE; return ret == 1 ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_netwm_desktop_get */ }
/* /*
* _NET_WM_STRUT is deprecated * _NET_WM_STRUT is deprecated
@ -521,7 +521,7 @@ ecore_x_netwm_strut_set(Ecore_X_Window win,
strut[2] = top; strut[2] = top;
strut[3] = bottom; strut[3] = bottom;
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_STRUT, strut, 4); ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_STRUT, strut, 4);
} /* ecore_x_netwm_strut_set */ }
/* /*
* _NET_WM_STRUT is deprecated * _NET_WM_STRUT is deprecated
@ -557,7 +557,7 @@ ecore_x_netwm_strut_get(Ecore_X_Window win,
*bottom = strut[3]; *bottom = strut[3];
return EINA_TRUE; return EINA_TRUE;
} /* ecore_x_netwm_strut_get */ }
EAPI void EAPI void
ecore_x_netwm_strut_partial_set(Ecore_X_Window win, ecore_x_netwm_strut_partial_set(Ecore_X_Window win,
@ -593,7 +593,7 @@ ecore_x_netwm_strut_partial_set(Ecore_X_Window win,
ECORE_X_ATOM_NET_WM_STRUT_PARTIAL, ECORE_X_ATOM_NET_WM_STRUT_PARTIAL,
strut, strut,
12); 12);
} /* ecore_x_netwm_strut_partial_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_netwm_strut_partial_get(Ecore_X_Window win, ecore_x_netwm_strut_partial_get(Ecore_X_Window win,
@ -658,7 +658,7 @@ ecore_x_netwm_strut_partial_get(Ecore_X_Window win,
*bottom_end_x = strut[11]; *bottom_end_x = strut[11];
return EINA_TRUE; return EINA_TRUE;
} /* ecore_x_netwm_strut_partial_get */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_netwm_icons_get(Ecore_X_Window win, ecore_x_netwm_icons_get(Ecore_X_Window win,
@ -767,7 +767,7 @@ ecore_x_netwm_icons_get(Ecore_X_Window win,
free(data); free(data);
return EINA_TRUE; return EINA_TRUE;
} /* ecore_x_netwm_icons_get */ }
EAPI void EAPI void
ecore_x_netwm_icon_geometry_set(Ecore_X_Window win, ecore_x_netwm_icon_geometry_set(Ecore_X_Window win,
@ -787,7 +787,7 @@ ecore_x_netwm_icon_geometry_set(Ecore_X_Window win,
ECORE_X_ATOM_NET_WM_ICON_GEOMETRY, ECORE_X_ATOM_NET_WM_ICON_GEOMETRY,
geometry, geometry,
4); 4);
} /* ecore_x_netwm_icon_geometry_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_netwm_icon_geometry_get(Ecore_X_Window win, ecore_x_netwm_icon_geometry_get(Ecore_X_Window win,
@ -820,7 +820,7 @@ ecore_x_netwm_icon_geometry_get(Ecore_X_Window win,
*height = geometry[3]; *height = geometry[3];
return EINA_TRUE; return EINA_TRUE;
} /* ecore_x_netwm_icon_geometry_get */ }
EAPI void EAPI void
ecore_x_netwm_pid_set(Ecore_X_Window win, ecore_x_netwm_pid_set(Ecore_X_Window win,
@ -832,7 +832,7 @@ ecore_x_netwm_pid_set(Ecore_X_Window win,
tmp = pid; tmp = pid;
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_PID, ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_PID,
&tmp, 1); &tmp, 1);
} /* ecore_x_netwm_pid_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_netwm_pid_get(Ecore_X_Window win, ecore_x_netwm_pid_get(Ecore_X_Window win,
@ -848,7 +848,7 @@ ecore_x_netwm_pid_get(Ecore_X_Window win,
*pid = tmp; *pid = tmp;
return ret == 1 ? EINA_TRUE : EINA_FALSE; return ret == 1 ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_netwm_pid_get */ }
EAPI void EAPI void
ecore_x_netwm_handled_icons_set(Ecore_X_Window win) ecore_x_netwm_handled_icons_set(Ecore_X_Window win)
@ -856,7 +856,7 @@ ecore_x_netwm_handled_icons_set(Ecore_X_Window win)
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_HANDLED_ICONS, ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_HANDLED_ICONS,
NULL, 0); NULL, 0);
} /* ecore_x_netwm_handled_icons_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_netwm_handled_icons_get(Ecore_X_Window win) ecore_x_netwm_handled_icons_get(Ecore_X_Window win)
@ -866,7 +866,7 @@ ecore_x_netwm_handled_icons_get(Ecore_X_Window win)
ret = ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_NET_WM_HANDLED_ICONS, ret = ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_NET_WM_HANDLED_ICONS,
NULL, 0); NULL, 0);
return ret == 0 ? EINA_TRUE : EINA_FALSE; return ret == 0 ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_netwm_handled_icons_get */ }
EAPI void EAPI void
ecore_x_netwm_user_time_set(Ecore_X_Window win, ecore_x_netwm_user_time_set(Ecore_X_Window win,
@ -875,7 +875,7 @@ ecore_x_netwm_user_time_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_USER_TIME, ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_USER_TIME,
&tim, 1); &tim, 1);
} /* ecore_x_netwm_user_time_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_netwm_user_time_get(Ecore_X_Window win, ecore_x_netwm_user_time_get(Ecore_X_Window win,
@ -891,7 +891,7 @@ ecore_x_netwm_user_time_get(Ecore_X_Window win,
*tim = tmp; *tim = tmp;
return ret == 1 ? EINA_TRUE : EINA_FALSE; return ret == 1 ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_netwm_user_time_get */ }
Ecore_X_Window_State Ecore_X_Window_State
_ecore_x_netwm_state_get(Ecore_X_Atom a) _ecore_x_netwm_state_get(Ecore_X_Atom a)
@ -922,7 +922,7 @@ _ecore_x_netwm_state_get(Ecore_X_Atom a)
return ECORE_X_WINDOW_STATE_DEMANDS_ATTENTION; return ECORE_X_WINDOW_STATE_DEMANDS_ATTENTION;
else else
return ECORE_X_WINDOW_STATE_UNKNOWN; return ECORE_X_WINDOW_STATE_UNKNOWN;
} /* _ecore_x_netwm_state_get */ }
static Ecore_X_Atom static Ecore_X_Atom
_ecore_x_netwm_state_atom_get(Ecore_X_Window_State s) _ecore_x_netwm_state_atom_get(Ecore_X_Window_State s)
@ -967,8 +967,8 @@ _ecore_x_netwm_state_atom_get(Ecore_X_Window_State s)
default: default:
return 0; return 0;
} /* switch */ }
} /* _ecore_x_netwm_state_atom_get */ }
EAPI void EAPI void
ecore_x_netwm_window_state_set(Ecore_X_Window win, ecore_x_netwm_window_state_set(Ecore_X_Window win,
@ -995,7 +995,7 @@ ecore_x_netwm_window_state_set(Ecore_X_Window win,
ecore_x_window_prop_atom_set(win, ECORE_X_ATOM_NET_WM_STATE, set, num); ecore_x_window_prop_atom_set(win, ECORE_X_ATOM_NET_WM_STATE, set, num);
free(set); free(set);
} /* ecore_x_netwm_window_state_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_netwm_window_state_get(Ecore_X_Window win, ecore_x_netwm_window_state_get(Ecore_X_Window win,
@ -1030,7 +1030,7 @@ ecore_x_netwm_window_state_get(Ecore_X_Window win,
free(atoms); free(atoms);
return EINA_TRUE; return EINA_TRUE;
} /* ecore_x_netwm_window_state_get */ }
static Ecore_X_Window_Type static Ecore_X_Window_Type
_ecore_x_netwm_window_type_type_get(Ecore_X_Atom atom) _ecore_x_netwm_window_type_type_get(Ecore_X_Atom atom)
@ -1065,7 +1065,7 @@ _ecore_x_netwm_window_type_type_get(Ecore_X_Atom atom)
return ECORE_X_WINDOW_TYPE_DND; return ECORE_X_WINDOW_TYPE_DND;
else else
return ECORE_X_WINDOW_TYPE_UNKNOWN; return ECORE_X_WINDOW_TYPE_UNKNOWN;
} /* _ecore_x_netwm_window_type_type_get */ }
static Ecore_X_Atom static Ecore_X_Atom
_ecore_x_netwm_window_type_atom_get(Ecore_X_Window_Type type) _ecore_x_netwm_window_type_atom_get(Ecore_X_Window_Type type)
@ -1116,8 +1116,8 @@ _ecore_x_netwm_window_type_atom_get(Ecore_X_Window_Type type)
default: default:
return 0; return 0;
} /* switch */ }
} /* _ecore_x_netwm_window_type_atom_get */ }
/* /*
* FIXME: We should set WM_TRANSIENT_FOR if type is ECORE_X_WINDOW_TYPE_TOOLBAR * FIXME: We should set WM_TRANSIENT_FOR if type is ECORE_X_WINDOW_TYPE_TOOLBAR
@ -1133,7 +1133,7 @@ ecore_x_netwm_window_type_set(Ecore_X_Window win,
atom = _ecore_x_netwm_window_type_atom_get(type); atom = _ecore_x_netwm_window_type_atom_get(type);
ecore_x_window_prop_atom_set(win, ECORE_X_ATOM_NET_WM_WINDOW_TYPE, ecore_x_window_prop_atom_set(win, ECORE_X_ATOM_NET_WM_WINDOW_TYPE,
&atom, 1); &atom, 1);
} /* ecore_x_netwm_window_type_set */ }
/* FIXME: Maybe return 0 on some conditions? */ /* FIXME: Maybe return 0 on some conditions? */
EAPI Eina_Bool EAPI Eina_Bool
@ -1158,7 +1158,7 @@ ecore_x_netwm_window_type_get(Ecore_X_Window win,
return EINA_TRUE; return EINA_TRUE;
return EINA_FALSE; return EINA_FALSE;
} /* ecore_x_netwm_window_type_get */ }
EAPI int EAPI int
ecore_x_netwm_window_types_get(Ecore_X_Window win, ecore_x_netwm_window_types_get(Ecore_X_Window win,
@ -1196,7 +1196,7 @@ ecore_x_netwm_window_types_get(Ecore_X_Window win,
free(atoms2); free(atoms2);
return num; return num;
} /* ecore_x_netwm_window_types_get */ }
static Ecore_X_Atom static Ecore_X_Atom
_ecore_x_netwm_action_atom_get(Ecore_X_Action action) _ecore_x_netwm_action_atom_get(Ecore_X_Action action)
@ -1241,8 +1241,8 @@ _ecore_x_netwm_action_atom_get(Ecore_X_Action action)
default: default:
return 0; return 0;
} /* switch */ }
} /* _ecore_x_netwm_action_atom_get */ }
/* FIXME: Get complete list */ /* FIXME: Get complete list */
EAPI Eina_Bool EAPI Eina_Bool
@ -1272,7 +1272,7 @@ ecore_x_netwm_allowed_action_isset(Ecore_X_Window win,
free(atoms); free(atoms);
return ret; return ret;
} /* ecore_x_netwm_allowed_action_isset */ }
/* FIXME: Set complete list */ /* FIXME: Set complete list */
EAPI void EAPI void
@ -1304,7 +1304,7 @@ ecore_x_netwm_allowed_action_set(Ecore_X_Window win,
num); num);
free(set); free(set);
} /* ecore_x_netwm_allowed_action_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_netwm_allowed_action_get(Ecore_X_Window win, ecore_x_netwm_allowed_action_get(Ecore_X_Window win,
@ -1341,7 +1341,7 @@ ecore_x_netwm_allowed_action_get(Ecore_X_Window win,
free(atoms); free(atoms);
return EINA_TRUE; return EINA_TRUE;
} /* ecore_x_netwm_allowed_action_get */ }
EAPI void EAPI void
ecore_x_netwm_opacity_set(Ecore_X_Window win, ecore_x_netwm_opacity_set(Ecore_X_Window win,
@ -1350,7 +1350,7 @@ ecore_x_netwm_opacity_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_WINDOW_OPACITY, ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_WINDOW_OPACITY,
&opacity, 1); &opacity, 1);
} /* ecore_x_netwm_opacity_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_netwm_opacity_get(Ecore_X_Window win, ecore_x_netwm_opacity_get(Ecore_X_Window win,
@ -1366,7 +1366,7 @@ ecore_x_netwm_opacity_get(Ecore_X_Window win,
*opacity = tmp; *opacity = tmp;
return ret == 1 ? EINA_TRUE : EINA_FALSE; return ret == 1 ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_netwm_opacity_get */ }
EAPI void EAPI void
ecore_x_netwm_frame_size_set(Ecore_X_Window win, ecore_x_netwm_frame_size_set(Ecore_X_Window win,
@ -1386,7 +1386,7 @@ ecore_x_netwm_frame_size_set(Ecore_X_Window win,
ECORE_X_ATOM_NET_FRAME_EXTENTS, ECORE_X_ATOM_NET_FRAME_EXTENTS,
frames, frames,
4); 4);
} /* ecore_x_netwm_frame_size_set */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_netwm_frame_size_get(Ecore_X_Window win, ecore_x_netwm_frame_size_get(Ecore_X_Window win,
@ -1419,7 +1419,7 @@ ecore_x_netwm_frame_size_get(Ecore_X_Window win,
*fb = frames[3]; *fb = frames[3];
return EINA_TRUE; return EINA_TRUE;
} /* ecore_x_netwm_frame_size_get */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_netwm_sync_counter_get(Ecore_X_Window win, ecore_x_netwm_sync_counter_get(Ecore_X_Window win,
@ -1439,7 +1439,7 @@ ecore_x_netwm_sync_counter_get(Ecore_X_Window win,
*counter = tmp; *counter = tmp;
return ret == 1 ? EINA_TRUE : EINA_FALSE; return ret == 1 ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_netwm_sync_counter_get */ }
EAPI void EAPI void
ecore_x_netwm_ping_send(Ecore_X_Window win) ecore_x_netwm_ping_send(Ecore_X_Window win)
@ -1462,7 +1462,7 @@ ecore_x_netwm_ping_send(Ecore_X_Window win)
xev.xclient.data.l[4] = 0; xev.xclient.data.l[4] = 0;
XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev); XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev);
} /* ecore_x_netwm_ping_send */ }
EAPI void EAPI void
ecore_x_netwm_sync_request_send(Ecore_X_Window win, ecore_x_netwm_sync_request_send(Ecore_X_Window win,
@ -1489,7 +1489,7 @@ ecore_x_netwm_sync_request_send(Ecore_X_Window win,
xev.xclient.data.l[4] = 0; xev.xclient.data.l[4] = 0;
XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev); XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev);
} /* ecore_x_netwm_sync_request_send */ }
EAPI void EAPI void
ecore_x_netwm_state_request_send(Ecore_X_Window win, ecore_x_netwm_state_request_send(Ecore_X_Window win,
@ -1524,7 +1524,7 @@ ecore_x_netwm_state_request_send(Ecore_X_Window win,
XSendEvent(_ecore_x_disp, root, False, XSendEvent(_ecore_x_disp, root, False,
SubstructureNotifyMask | SubstructureRedirectMask, &xev); SubstructureNotifyMask | SubstructureRedirectMask, &xev);
} /* ecore_x_netwm_state_request_send */ }
EAPI void EAPI void
ecore_x_netwm_desktop_request_send(Ecore_X_Window win, ecore_x_netwm_desktop_request_send(Ecore_X_Window win,
@ -1551,7 +1551,7 @@ ecore_x_netwm_desktop_request_send(Ecore_X_Window win,
XSendEvent(_ecore_x_disp, root, False, XSendEvent(_ecore_x_disp, root, False,
SubstructureNotifyMask | SubstructureRedirectMask, &xev); SubstructureNotifyMask | SubstructureRedirectMask, &xev);
} /* ecore_x_netwm_desktop_request_send */ }
int int
_ecore_x_netwm_startup_info_begin(Ecore_X_Window win __UNUSED__, _ecore_x_netwm_startup_info_begin(Ecore_X_Window win __UNUSED__,
@ -1600,7 +1600,7 @@ _ecore_x_netwm_startup_info_begin(Ecore_X_Window win __UNUSED__,
#endif /* if 0 */ #endif /* if 0 */
return 1; return 1;
} /* _ecore_x_netwm_startup_info_begin */ }
int int
_ecore_x_netwm_startup_info(Ecore_X_Window win __UNUSED__, _ecore_x_netwm_startup_info(Ecore_X_Window win __UNUSED__,
@ -1639,7 +1639,7 @@ _ecore_x_netwm_startup_info(Ecore_X_Window win __UNUSED__,
#endif /* if 0 */ #endif /* if 0 */
return 1; return 1;
} /* _ecore_x_netwm_startup_info */ }
/* /*
* Set UTF-8 string property * Set UTF-8 string property
@ -1651,7 +1651,7 @@ _ecore_x_window_prop_string_utf8_set(Ecore_X_Window win,
{ {
XChangeProperty(_ecore_x_disp, win, atom, ECORE_X_ATOM_UTF8_STRING, 8, XChangeProperty(_ecore_x_disp, win, atom, ECORE_X_ATOM_UTF8_STRING, 8,
PropModeReplace, (unsigned char *)str, strlen(str)); PropModeReplace, (unsigned char *)str, strlen(str));
} /* _ecore_x_window_prop_string_utf8_set */ }
/* /*
* Get UTF-8 string property * Get UTF-8 string property
@ -1685,7 +1685,7 @@ _ecore_x_window_prop_string_utf8_get(Ecore_X_Window win,
XFree(prop_ret); XFree(prop_ret);
return str; return str;
} /* _ecore_x_window_prop_string_utf8_get */ }
#if 0 /* Unused */ #if 0 /* Unused */
/* /*
@ -1763,7 +1763,7 @@ _ecore_x_netwm_startup_info_process(Ecore_X_Startup_Info *info)
} }
return 1; return 1;
} /* _ecore_x_netwm_startup_info_process */ }
/* /*
* Parse startup info * Parse startup info
@ -1920,7 +1920,7 @@ _ecore_x_netwm_startup_info_parse(Ecore_X_Startup_Info *info,
return 0; return 0;
return 1; return 1;
} /* _ecore_x_netwm_startup_info_parse */ }
#endif /* if 0 */ #endif /* if 0 */
@ -1958,7 +1958,7 @@ _ecore_x_netwm_startup_info_free(void *data)
free(info->wmclass); free(info->wmclass);
free(info); free(info);
} /* _ecore_x_netwm_startup_info_free */ }
/* /*
* Is screen composited? * Is screen composited?
@ -1981,7 +1981,7 @@ ecore_x_screen_is_composited(int screen)
win = XGetSelectionOwner(_ecore_x_disp, atom); win = XGetSelectionOwner(_ecore_x_disp, atom);
return (win != None) ? EINA_TRUE : EINA_FALSE; return (win != None) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_screen_is_composited */ }
EAPI void EAPI void
ecore_x_screen_is_composited_set(int screen, ecore_x_screen_is_composited_set(int screen,
@ -1999,5 +1999,5 @@ ecore_x_screen_is_composited_set(int screen,
return; return;
XSetSelectionOwner(_ecore_x_disp, atom, win, _ecore_x_event_last_time); XSetSelectionOwner(_ecore_x_disp, atom, win, _ecore_x_event_last_time);
} /* ecore_x_screen_is_composited_set */ }

View File

@ -38,7 +38,7 @@ ecore_x_pixmap_new(Ecore_X_Window win,
dep = DefaultDepth(_ecore_x_disp, DefaultScreen(_ecore_x_disp)); dep = DefaultDepth(_ecore_x_disp, DefaultScreen(_ecore_x_disp));
return XCreatePixmap(_ecore_x_disp, win, w, h, dep); return XCreatePixmap(_ecore_x_disp, win, w, h, dep);
} /* ecore_x_pixmap_new */ }
/** /**
* Deletes the reference to the given pixmap. * Deletes the reference to the given pixmap.
@ -54,7 +54,7 @@ ecore_x_pixmap_free(Ecore_X_Pixmap pmap)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFreePixmap(_ecore_x_disp, pmap); XFreePixmap(_ecore_x_disp, pmap);
} /* ecore_x_pixmap_free */ }
/** /**
* Pastes a rectangular area of the given pixmap onto the given drawable. * Pastes a rectangular area of the given pixmap onto the given drawable.
@ -83,7 +83,7 @@ ecore_x_pixmap_paste(Ecore_X_Pixmap pmap,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XCopyArea(_ecore_x_disp, pmap, dest, gc, sx, sy, w, h, dx, dy); XCopyArea(_ecore_x_disp, pmap, dest, gc, sx, sy, w, h, dx, dy);
} /* ecore_x_pixmap_paste */ }
/** /**
* Retrieves the size of the given pixmap. * Retrieves the size of the given pixmap.
@ -104,7 +104,7 @@ ecore_x_pixmap_geometry_get(Ecore_X_Pixmap pmap,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (pmap) if (pmap)
ecore_x_drawable_geometry_get(pmap, x, y, w, h); ecore_x_drawable_geometry_get(pmap, x, y, w, h);
} /* ecore_x_pixmap_geometry_get */ }
/** /**
* Retrieves the depth of the given pixmap. * Retrieves the depth of the given pixmap.
@ -117,5 +117,5 @@ ecore_x_pixmap_depth_get(Ecore_X_Pixmap pmap)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ecore_x_drawable_depth_get(pmap); return ecore_x_drawable_depth_get(pmap);
} /* ecore_x_pixmap_depth_get */ }

View File

@ -44,7 +44,7 @@ ecore_x_randr_screen_primary_output_orientations_get(Ecore_X_Window root)
#else /* ifdef ECORE_XRANDR */ #else /* ifdef ECORE_XRANDR */
return Ecore_X_Randr_None; return Ecore_X_Randr_None;
#endif /* ifdef ECORE_XRANDR */ #endif /* ifdef ECORE_XRANDR */
} /* ecore_x_randr_screen_primary_output_orientations_get */ }
/* /*
* @param root window which's primary output will be queried * @param root window which's primary output will be queried
@ -61,7 +61,7 @@ ecore_x_randr_screen_primary_output_orientation_get(Ecore_X_Window root)
#else /* ifdef ECORE_XRANDR */ #else /* ifdef ECORE_XRANDR */
return Ecore_X_Randr_None; return Ecore_X_Randr_None;
#endif /* ifdef ECORE_XRANDR */ #endif /* ifdef ECORE_XRANDR */
} /* ecore_x_randr_screen_primary_output_orientation_get */ }
/* /*
* @brief sets a given screen's primary output's orientation * @brief sets a given screen's primary output's orientation
@ -95,7 +95,7 @@ ecore_x_randr_screen_primary_output_orientation_set(
#else /* ifdef ECORE_XRANDR */ #else /* ifdef ECORE_XRANDR */
return EINA_FALSE; return EINA_FALSE;
#endif /* ifdef ECORE_XRANDR */ #endif /* ifdef ECORE_XRANDR */
} /* ecore_x_randr_screen_primary_output_orientation_set */ }
/* /*
* @brief gets a screen's primary output's possible sizes * @brief gets a screen's primary output's possible sizes
@ -135,7 +135,7 @@ ecore_x_randr_screen_primary_output_sizes_get(Ecore_X_Window root,
#else /* ifdef ECORE_XRANDR */ #else /* ifdef ECORE_XRANDR */
return NULL; return NULL;
#endif /* ifdef ECORE_XRANDR */ #endif /* ifdef ECORE_XRANDR */
} /* ecore_x_randr_screen_primary_output_sizes_get */ }
/* /*
* @brief get the current set size of a given screen's primary output * @brief get the current set size of a given screen's primary output
@ -192,7 +192,7 @@ ecore_x_randr_screen_primary_output_current_size_get(Ecore_X_Window root,
XRRFreeScreenConfigInfo(sc); XRRFreeScreenConfigInfo(sc);
#endif /* ifdef ECORE_XRANDR */ #endif /* ifdef ECORE_XRANDR */
} /* ecore_x_randr_screen_primary_output_current_size_get */ }
/* /*
* @brief sets a given screen's primary output size, but disables all other outputs at the same time * @brief sets a given screen's primary output size, but disables all other outputs at the same time
@ -235,7 +235,7 @@ ecore_x_randr_screen_primary_output_size_set(Ecore_X_Window root,
#else /* ifdef ECORE_XRANDR */ #else /* ifdef ECORE_XRANDR */
return EINA_FALSE; return EINA_FALSE;
#endif /* ifdef ECORE_XRANDR */ #endif /* ifdef ECORE_XRANDR */
} /* ecore_x_randr_screen_primary_output_size_set */ }
/* /*
* @param root window which's primary output will be queried * @param root window which's primary output will be queried
@ -261,7 +261,7 @@ ecore_x_randr_screen_primary_output_current_refresh_rate_get(
#else /* ifdef ECORE_XRANDR */ #else /* ifdef ECORE_XRANDR */
return 0.0; return 0.0;
#endif /* ifdef ECORE_XRANDR */ #endif /* ifdef ECORE_XRANDR */
} /* ecore_x_randr_screen_primary_output_current_refresh_rate_get */ }
/* /*
* @param root window which's primary output will be queried * @param root window which's primary output will be queried
@ -293,7 +293,7 @@ ecore_x_randr_screen_primary_output_refresh_rates_get(Ecore_X_Window root,
#else /* ifdef ECORE_XRANDR */ #else /* ifdef ECORE_XRANDR */
return NULL; return NULL;
#endif /* ifdef ECORE_XRANDR */ #endif /* ifdef ECORE_XRANDR */
} /* ecore_x_randr_screen_primary_output_refresh_rates_get */ }
//>= 1.1 //>= 1.1
/* /*
@ -328,5 +328,5 @@ ecore_x_randr_screen_primary_output_refresh_rate_set(
#else /* ifdef ECORE_XRANDR */ #else /* ifdef ECORE_XRANDR */
return EINA_FALSE; return EINA_FALSE;
#endif /* ifdef ECORE_XRANDR */ #endif /* ifdef ECORE_XRANDR */
} /* ecore_x_randr_screen_primary_output_refresh_rate_set */ }

View File

@ -32,7 +32,7 @@ ecore_x_xregion_new()
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return (Ecore_X_XRegion *)XCreateRegion(); return (Ecore_X_XRegion *)XCreateRegion();
} /* ecore_x_xregion_new */ }
EAPI void EAPI void
ecore_x_xregion_free(Ecore_X_XRegion *region) ecore_x_xregion_free(Ecore_X_XRegion *region)
@ -42,7 +42,7 @@ ecore_x_xregion_free(Ecore_X_XRegion *region)
return; return;
XDestroyRegion((Region)region); XDestroyRegion((Region)region);
} /* ecore_x_xregion_free */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_xregion_set(Ecore_X_XRegion *region, ecore_x_xregion_set(Ecore_X_XRegion *region,
@ -50,7 +50,7 @@ ecore_x_xregion_set(Ecore_X_XRegion *region,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XSetRegion(_ecore_x_disp, gc, (Region)region) ? EINA_TRUE : EINA_FALSE; return XSetRegion(_ecore_x_disp, gc, (Region)region) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_xregion_set */ }
EAPI void EAPI void
ecore_x_xregion_translate(Ecore_X_XRegion *region, ecore_x_xregion_translate(Ecore_X_XRegion *region,
@ -63,7 +63,7 @@ ecore_x_xregion_translate(Ecore_X_XRegion *region,
/* return value not used */ /* return value not used */
XOffsetRegion((Region)region, x, y); XOffsetRegion((Region)region, x, y);
} /* ecore_x_xregion_translate */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_xregion_intersect(Ecore_X_XRegion *dst, ecore_x_xregion_intersect(Ecore_X_XRegion *dst,
@ -72,7 +72,7 @@ ecore_x_xregion_intersect(Ecore_X_XRegion *dst,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XIntersectRegion((Region)r1, (Region)r2, (Region)dst) ? EINA_TRUE : EINA_FALSE; return XIntersectRegion((Region)r1, (Region)r2, (Region)dst) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_xregion_intersect */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_xregion_union(Ecore_X_XRegion *dst, ecore_x_xregion_union(Ecore_X_XRegion *dst,
@ -81,7 +81,7 @@ ecore_x_xregion_union(Ecore_X_XRegion *dst,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XUnionRegion((Region)r1, (Region)r2, (Region)dst) ? EINA_TRUE : EINA_FALSE; return XUnionRegion((Region)r1, (Region)r2, (Region)dst) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_xregion_union */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_xregion_union_rect(Ecore_X_XRegion *dst, ecore_x_xregion_union_rect(Ecore_X_XRegion *dst,
@ -97,7 +97,7 @@ ecore_x_xregion_union_rect(Ecore_X_XRegion *dst,
xr.height = rect->height; xr.height = rect->height;
return XUnionRectWithRegion(&xr, (Region)src, (Region)dst) ? EINA_TRUE : EINA_FALSE; return XUnionRectWithRegion(&xr, (Region)src, (Region)dst) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_xregion_union_rect */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_xregion_subtract(Ecore_X_XRegion *dst, ecore_x_xregion_subtract(Ecore_X_XRegion *dst,
@ -106,7 +106,7 @@ ecore_x_xregion_subtract(Ecore_X_XRegion *dst,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XSubtractRegion((Region)rm, (Region)rs, (Region)dst) ? EINA_TRUE : EINA_FALSE; return XSubtractRegion((Region)rm, (Region)rs, (Region)dst) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_xregion_subtract */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_xregion_is_empty(Ecore_X_XRegion *region) ecore_x_xregion_is_empty(Ecore_X_XRegion *region)
@ -116,7 +116,7 @@ ecore_x_xregion_is_empty(Ecore_X_XRegion *region)
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XEmptyRegion((Region)region) ? EINA_TRUE : EINA_FALSE; return XEmptyRegion((Region)region) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_xregion_is_empty */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_xregion_is_equal(Ecore_X_XRegion *r1, ecore_x_xregion_is_equal(Ecore_X_XRegion *r1,
@ -127,7 +127,7 @@ ecore_x_xregion_is_equal(Ecore_X_XRegion *r1,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XEqualRegion((Region)r1, (Region)r1) ? EINA_TRUE : EINA_FALSE; return XEqualRegion((Region)r1, (Region)r1) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_xregion_is_equal */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_xregion_point_contain(Ecore_X_XRegion *region, ecore_x_xregion_point_contain(Ecore_X_XRegion *region,
@ -139,7 +139,7 @@ ecore_x_xregion_point_contain(Ecore_X_XRegion *region,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XPointInRegion((Region)region, x, y) ? EINA_TRUE : EINA_FALSE; return XPointInRegion((Region)region, x, y) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_xregion_point_contain */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_xregion_rect_contain(Ecore_X_XRegion *region, ecore_x_xregion_rect_contain(Ecore_X_XRegion *region,
@ -154,5 +154,5 @@ ecore_x_xregion_rect_contain(Ecore_X_XRegion *region,
rect->y, rect->y,
rect->width, rect->width,
rect->height) ? EINA_TRUE : EINA_FALSE; rect->height) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_xregion_rect_contain */ }

View File

@ -36,7 +36,7 @@ ecore_x_screensaver_event_available_get(void)
_screensaver_available = 0; _screensaver_available = 0;
#endif /* ifdef ECORE_XSS */ #endif /* ifdef ECORE_XSS */
return _screensaver_available; return _screensaver_available;
} /* ecore_x_screensaver_event_available_get */ }
EAPI int EAPI int
ecore_x_screensaver_idle_time_get(void) ecore_x_screensaver_idle_time_get(void)
@ -57,7 +57,7 @@ ecore_x_screensaver_idle_time_get(void)
#else #else
return 0; return 0;
#endif /* ifdef ECORE_XSS */ #endif /* ifdef ECORE_XSS */
} /* ecore_x_screensaver_idle_time_get */ }
EAPI void EAPI void
ecore_x_screensaver_set(int timeout, ecore_x_screensaver_set(int timeout,
@ -71,7 +71,7 @@ ecore_x_screensaver_set(int timeout,
interval, interval,
prefer_blanking, prefer_blanking,
allow_exposures); allow_exposures);
} /* ecore_x_screensaver_set */ }
EAPI void EAPI void
ecore_x_screensaver_timeout_set(int timeout) ecore_x_screensaver_timeout_set(int timeout)
@ -81,7 +81,7 @@ ecore_x_screensaver_timeout_set(int timeout)
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo); XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
XSetScreenSaver(_ecore_x_disp, timeout, pint, pblank, pexpo); XSetScreenSaver(_ecore_x_disp, timeout, pint, pblank, pexpo);
} /* ecore_x_screensaver_timeout_set */ }
EAPI int EAPI int
ecore_x_screensaver_timeout_get(void) ecore_x_screensaver_timeout_get(void)
@ -91,7 +91,7 @@ ecore_x_screensaver_timeout_get(void)
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo); XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
return pto; return pto;
} /* ecore_x_screensaver_timeout_get */ }
EAPI void EAPI void
ecore_x_screensaver_blank_set(int blank) ecore_x_screensaver_blank_set(int blank)
@ -101,7 +101,7 @@ ecore_x_screensaver_blank_set(int blank)
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo); XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
XSetScreenSaver(_ecore_x_disp, pto, pint, blank, pexpo); XSetScreenSaver(_ecore_x_disp, pto, pint, blank, pexpo);
} /* ecore_x_screensaver_blank_set */ }
EAPI int EAPI int
ecore_x_screensaver_blank_get(void) ecore_x_screensaver_blank_get(void)
@ -111,7 +111,7 @@ ecore_x_screensaver_blank_get(void)
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo); XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
return pblank; return pblank;
} /* ecore_x_screensaver_blank_get */ }
EAPI void EAPI void
ecore_x_screensaver_expose_set(int expose) ecore_x_screensaver_expose_set(int expose)
@ -121,7 +121,7 @@ ecore_x_screensaver_expose_set(int expose)
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo); XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
XSetScreenSaver(_ecore_x_disp, pto, pint, pblank, expose); XSetScreenSaver(_ecore_x_disp, pto, pint, pblank, expose);
} /* ecore_x_screensaver_expose_set */ }
EAPI int EAPI int
ecore_x_screensaver_expose_get(void) ecore_x_screensaver_expose_get(void)
@ -131,7 +131,7 @@ ecore_x_screensaver_expose_get(void)
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo); XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
return pexpo; return pexpo;
} /* ecore_x_screensaver_expose_get */ }
EAPI void EAPI void
ecore_x_screensaver_interval_set(int interval) ecore_x_screensaver_interval_set(int interval)
@ -141,7 +141,7 @@ ecore_x_screensaver_interval_set(int interval)
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo); XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
XSetScreenSaver(_ecore_x_disp, pto, interval, pblank, pexpo); XSetScreenSaver(_ecore_x_disp, pto, interval, pblank, pexpo);
} /* ecore_x_screensaver_interval_set */ }
EAPI int EAPI int
ecore_x_screensaver_interval_get(void) ecore_x_screensaver_interval_get(void)
@ -151,7 +151,7 @@ ecore_x_screensaver_interval_get(void)
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo); XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
return pint; return pint;
} /* ecore_x_screensaver_interval_get */ }
EAPI void EAPI void
ecore_x_screensaver_event_listen_set(Eina_Bool on) ecore_x_screensaver_event_listen_set(Eina_Bool on)
@ -169,5 +169,5 @@ ecore_x_screensaver_event_listen_set(Eina_Bool on)
return; return;
on = EINA_FALSE; on = EINA_FALSE;
#endif /* ifdef ECORE_XSS */ #endif /* ifdef ECORE_XSS */
} /* ecore_x_screensaver_event_listen_set */ }

View File

@ -70,7 +70,7 @@ _ecore_x_selection_data_init(void)
_ecore_x_selection_parser_files); _ecore_x_selection_parser_files);
ecore_x_selection_parser_add(ECORE_X_SELECTION_TARGET_TARGETS, ecore_x_selection_parser_add(ECORE_X_SELECTION_TARGET_TARGETS,
_ecore_x_selection_parser_targets); _ecore_x_selection_parser_targets);
} /* _ecore_x_selection_data_init */ }
void void
_ecore_x_selection_shutdown(void) _ecore_x_selection_shutdown(void)
@ -102,7 +102,7 @@ _ecore_x_selection_shutdown(void)
free(tmp); free(tmp);
} }
parsers = NULL; parsers = NULL;
} /* _ecore_x_selection_shutdown */ }
Ecore_X_Selection_Intern * Ecore_X_Selection_Intern *
_ecore_x_selection_get(Ecore_X_Atom selection) _ecore_x_selection_get(Ecore_X_Atom selection)
@ -117,7 +117,7 @@ _ecore_x_selection_get(Ecore_X_Atom selection)
return &selections[3]; return &selections[3];
else else
return NULL; return NULL;
} /* _ecore_x_selection_get */ }
Eina_Bool Eina_Bool
_ecore_x_selection_set(Window w, _ecore_x_selection_set(Window w,
@ -162,7 +162,7 @@ _ecore_x_selection_set(Window w,
} }
return EINA_TRUE; return EINA_TRUE;
} /* _ecore_x_selection_set */ }
/** /**
* Claim ownership of the PRIMARY selection and set its data. * Claim ownership of the PRIMARY selection and set its data.
@ -179,7 +179,7 @@ ecore_x_selection_primary_set(Ecore_X_Window w,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _ecore_x_selection_set(w, data, size, ECORE_X_ATOM_SELECTION_PRIMARY); return _ecore_x_selection_set(w, data, size, ECORE_X_ATOM_SELECTION_PRIMARY);
} /* ecore_x_selection_primary_set */ }
/** /**
* Release ownership of the primary selection * Release ownership of the primary selection
@ -192,7 +192,7 @@ ecore_x_selection_primary_clear(void)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _ecore_x_selection_set(None, NULL, 0, ECORE_X_ATOM_SELECTION_PRIMARY); return _ecore_x_selection_set(None, NULL, 0, ECORE_X_ATOM_SELECTION_PRIMARY);
} /* ecore_x_selection_primary_clear */ }
/** /**
* Claim ownership of the SECONDARY selection and set its data. * Claim ownership of the SECONDARY selection and set its data.
@ -212,7 +212,7 @@ ecore_x_selection_secondary_set(Ecore_X_Window w,
data, data,
size, size,
ECORE_X_ATOM_SELECTION_SECONDARY); ECORE_X_ATOM_SELECTION_SECONDARY);
} /* ecore_x_selection_secondary_set */ }
/** /**
* Release ownership of the secondary selection * Release ownership of the secondary selection
@ -228,7 +228,7 @@ ecore_x_selection_secondary_clear(void)
NULL, NULL,
0, 0,
ECORE_X_ATOM_SELECTION_SECONDARY); ECORE_X_ATOM_SELECTION_SECONDARY);
} /* ecore_x_selection_secondary_clear */ }
/** /**
* Claim ownership of the XDND selection and set its data. * Claim ownership of the XDND selection and set its data.
@ -245,7 +245,7 @@ ecore_x_selection_xdnd_set(Ecore_X_Window w,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _ecore_x_selection_set(w, data, size, ECORE_X_ATOM_SELECTION_XDND); return _ecore_x_selection_set(w, data, size, ECORE_X_ATOM_SELECTION_XDND);
} /* ecore_x_selection_xdnd_set */ }
/** /**
* Release ownership of the XDND selection * Release ownership of the XDND selection
@ -258,7 +258,7 @@ ecore_x_selection_xdnd_clear(void)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _ecore_x_selection_set(None, NULL, 0, ECORE_X_ATOM_SELECTION_XDND); return _ecore_x_selection_set(None, NULL, 0, ECORE_X_ATOM_SELECTION_XDND);
} /* ecore_x_selection_xdnd_clear */ }
/** /**
* Claim ownership of the CLIPBOARD selection and set its data. * Claim ownership of the CLIPBOARD selection and set its data.
@ -281,7 +281,7 @@ ecore_x_selection_clipboard_set(Ecore_X_Window w,
data, data,
size, size,
ECORE_X_ATOM_SELECTION_CLIPBOARD); ECORE_X_ATOM_SELECTION_CLIPBOARD);
} /* ecore_x_selection_clipboard_set */ }
/** /**
* Release ownership of the clipboard selection * Release ownership of the clipboard selection
@ -297,7 +297,7 @@ ecore_x_selection_clipboard_clear(void)
NULL, NULL,
0, 0,
ECORE_X_ATOM_SELECTION_CLIPBOARD); ECORE_X_ATOM_SELECTION_CLIPBOARD);
} /* ecore_x_selection_clipboard_clear */ }
Ecore_X_Atom Ecore_X_Atom
_ecore_x_selection_target_atom_get(const char *target) _ecore_x_selection_target_atom_get(const char *target)
@ -318,7 +318,7 @@ _ecore_x_selection_target_atom_get(const char *target)
x_target = ecore_x_atom_get(target); x_target = ecore_x_atom_get(target);
return x_target; return x_target;
} /* _ecore_x_selection_target_atom_get */ }
char * char *
_ecore_x_selection_target_get(Ecore_X_Atom target) _ecore_x_selection_target_get(Ecore_X_Atom target)
@ -335,7 +335,7 @@ _ecore_x_selection_target_get(Ecore_X_Atom target)
return strdup(ECORE_X_SELECTION_TARGET_TEXT); return strdup(ECORE_X_SELECTION_TARGET_TEXT);
else else
return XGetAtomName(_ecore_x_disp, target); return XGetAtomName(_ecore_x_disp, target);
} /* _ecore_x_selection_target_get */ }
static void static void
_ecore_x_selection_request(Ecore_X_Window w, _ecore_x_selection_request(Ecore_X_Window w,
@ -357,7 +357,7 @@ _ecore_x_selection_request(Ecore_X_Window w,
XConvertSelection(_ecore_x_disp, selection, target, prop, XConvertSelection(_ecore_x_disp, selection, target, prop,
w, CurrentTime); w, CurrentTime);
} /* _ecore_x_selection_request */ }
EAPI void EAPI void
ecore_x_selection_primary_request(Ecore_X_Window w, ecore_x_selection_primary_request(Ecore_X_Window w,
@ -365,7 +365,7 @@ ecore_x_selection_primary_request(Ecore_X_Window w,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_selection_request(w, ECORE_X_ATOM_SELECTION_PRIMARY, target); _ecore_x_selection_request(w, ECORE_X_ATOM_SELECTION_PRIMARY, target);
} /* ecore_x_selection_primary_request */ }
EAPI void EAPI void
ecore_x_selection_secondary_request(Ecore_X_Window w, ecore_x_selection_secondary_request(Ecore_X_Window w,
@ -373,7 +373,7 @@ ecore_x_selection_secondary_request(Ecore_X_Window w,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_selection_request(w, ECORE_X_ATOM_SELECTION_SECONDARY, target); _ecore_x_selection_request(w, ECORE_X_ATOM_SELECTION_SECONDARY, target);
} /* ecore_x_selection_secondary_request */ }
EAPI void EAPI void
ecore_x_selection_xdnd_request(Ecore_X_Window w, ecore_x_selection_xdnd_request(Ecore_X_Window w,
@ -388,7 +388,7 @@ ecore_x_selection_xdnd_request(Ecore_X_Window w,
XConvertSelection(_ecore_x_disp, ECORE_X_ATOM_SELECTION_XDND, atom, XConvertSelection(_ecore_x_disp, ECORE_X_ATOM_SELECTION_XDND, atom,
ECORE_X_ATOM_SELECTION_PROP_XDND, w, ECORE_X_ATOM_SELECTION_PROP_XDND, w,
_target->time); _target->time);
} /* ecore_x_selection_xdnd_request */ }
EAPI void EAPI void
ecore_x_selection_clipboard_request(Ecore_X_Window w, ecore_x_selection_clipboard_request(Ecore_X_Window w,
@ -396,7 +396,7 @@ ecore_x_selection_clipboard_request(Ecore_X_Window w,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_selection_request(w, ECORE_X_ATOM_SELECTION_CLIPBOARD, target); _ecore_x_selection_request(w, ECORE_X_ATOM_SELECTION_CLIPBOARD, target);
} /* ecore_x_selection_clipboard_request */ }
EAPI void EAPI void
ecore_x_selection_converter_atom_add(Ecore_X_Atom target, ecore_x_selection_converter_atom_add(Ecore_X_Atom target,
@ -441,7 +441,7 @@ ecore_x_selection_converter_atom_add(Ecore_X_Atom
cnv->target = target; cnv->target = target;
cnv->convert = func; cnv->convert = func;
} /* ecore_x_selection_converter_atom_add */ }
EAPI void EAPI void
ecore_x_selection_converter_add(char *target, ecore_x_selection_converter_add(char *target,
@ -462,7 +462,7 @@ ecore_x_selection_converter_add(char *target,
x_target = _ecore_x_selection_target_atom_get(target); x_target = _ecore_x_selection_target_atom_get(target);
ecore_x_selection_converter_atom_add(x_target, func); ecore_x_selection_converter_atom_add(x_target, func);
} /* ecore_x_selection_converter_add */ }
EAPI void EAPI void
ecore_x_selection_converter_atom_del(Ecore_X_Atom target) ecore_x_selection_converter_atom_del(Ecore_X_Atom target)
@ -492,7 +492,7 @@ ecore_x_selection_converter_atom_del(Ecore_X_Atom target)
prev_cnv = cnv; prev_cnv = cnv;
cnv = cnv->next; cnv = cnv->next;
} }
} /* ecore_x_selection_converter_atom_del */ }
EAPI void EAPI void
ecore_x_selection_converter_del(char *target) ecore_x_selection_converter_del(char *target)
@ -505,7 +505,7 @@ ecore_x_selection_converter_del(char *target)
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
x_target = _ecore_x_selection_target_atom_get(target); x_target = _ecore_x_selection_target_atom_get(target);
ecore_x_selection_converter_atom_del(x_target); ecore_x_selection_converter_atom_del(x_target);
} /* ecore_x_selection_converter_del */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_selection_notify_send(Ecore_X_Window requestor, ecore_x_selection_notify_send(Ecore_X_Window requestor,
@ -530,7 +530,7 @@ ecore_x_selection_notify_send(Ecore_X_Window requestor,
xev.xselection = xnotify; xev.xselection = xnotify;
return (XSendEvent(_ecore_x_disp, requestor, False, 0, &xev) > 0) ? EINA_TRUE : EINA_FALSE; return (XSendEvent(_ecore_x_disp, requestor, False, 0, &xev) > 0) ? EINA_TRUE : EINA_FALSE;
} /* ecore_x_selection_notify_send */ }
/* Locate and run conversion callback for specified selection target */ /* Locate and run conversion callback for specified selection target */
EAPI Eina_Bool EAPI Eina_Bool
@ -577,7 +577,7 @@ ecore_x_selection_convert(Ecore_X_Atom selection,
free(tgt_str); free(tgt_str);
return 1; return 1;
*/ */
} /* ecore_x_selection_convert */ }
/* TODO: We need to work out a mechanism for automatic conversion to any requested /* TODO: We need to work out a mechanism for automatic conversion to any requested
* locale using Ecore_Txt functions */ * locale using Ecore_Txt functions */
@ -651,7 +651,7 @@ _ecore_x_selection_converter_text(char *target,
{ {
return EINA_TRUE; return EINA_TRUE;
} }
} /* _ecore_x_selection_converter_text */ }
EAPI void EAPI void
ecore_x_selection_parser_add(const char *target, ecore_x_selection_parser_add(const char *target,
@ -692,7 +692,7 @@ ecore_x_selection_parser_add(const char *target,
prs->target = strdup(target); prs->target = strdup(target);
prs->parse = func; prs->parse = func;
} /* ecore_x_selection_parser_add */ }
EAPI void EAPI void
ecore_x_selection_parser_del(const char *target) ecore_x_selection_parser_del(const char *target)
@ -726,7 +726,7 @@ ecore_x_selection_parser_del(const char *target)
prev_prs = prs; prev_prs = prs;
prs = prs->next; prs = prs->next;
} }
} /* ecore_x_selection_parser_del */ }
/** /**
* Change the owner and last-change time for the specified selection. * Change the owner and last-change time for the specified selection.
@ -784,7 +784,7 @@ _ecore_x_selection_parse(const char *target,
sel->format = format; sel->format = format;
sel->data = data; sel->data = data;
return sel; return sel;
} /* _ecore_x_selection_parse */ }
static int static int
_ecore_x_selection_data_default_free(void *data) _ecore_x_selection_data_default_free(void *data)
@ -795,7 +795,7 @@ _ecore_x_selection_data_default_free(void *data)
free(sel->data); free(sel->data);
free(sel); free(sel);
return 1; return 1;
} /* _ecore_x_selection_data_default_free */ }
static void * static void *
_ecore_x_selection_parser_files(const char *target, _ecore_x_selection_parser_files(const char *target,
@ -883,7 +883,7 @@ _ecore_x_selection_parser_files(const char *target,
ECORE_X_SELECTION_DATA(sel)->length = sel->num_files; ECORE_X_SELECTION_DATA(sel)->length = sel->num_files;
return ECORE_X_SELECTION_DATA(sel); return ECORE_X_SELECTION_DATA(sel);
} /* _ecore_x_selection_parser_files */ }
static int static int
_ecore_x_selection_data_files_free(void *data) _ecore_x_selection_data_files_free(void *data)
@ -901,7 +901,7 @@ _ecore_x_selection_data_files_free(void *data)
free(sel); free(sel);
return 0; return 0;
} /* _ecore_x_selection_data_files_free */ }
static void * static void *
_ecore_x_selection_parser_text(const char *target __UNUSED__, _ecore_x_selection_parser_text(const char *target __UNUSED__,
@ -935,7 +935,7 @@ _ecore_x_selection_parser_text(const char *target __UNUSED__,
ECORE_X_SELECTION_DATA(sel)->data = data; ECORE_X_SELECTION_DATA(sel)->data = data;
ECORE_X_SELECTION_DATA(sel)->free = _ecore_x_selection_data_text_free; ECORE_X_SELECTION_DATA(sel)->free = _ecore_x_selection_data_text_free;
return sel; return sel;
} /* _ecore_x_selection_parser_text */ }
static int static int
_ecore_x_selection_data_text_free(void *data) _ecore_x_selection_data_text_free(void *data)
@ -946,7 +946,7 @@ _ecore_x_selection_data_text_free(void *data)
free(sel->text); free(sel->text);
free(sel); free(sel);
return 1; return 1;
} /* _ecore_x_selection_data_text_free */ }
static void * static void *
_ecore_x_selection_parser_targets(const char *target __UNUSED__, _ecore_x_selection_parser_targets(const char *target __UNUSED__,
@ -977,7 +977,7 @@ _ecore_x_selection_parser_targets(const char *target __UNUSED__,
ECORE_X_SELECTION_DATA(sel)->length = size; ECORE_X_SELECTION_DATA(sel)->length = size;
ECORE_X_SELECTION_DATA(sel)->data = data; ECORE_X_SELECTION_DATA(sel)->data = data;
return sel; return sel;
} /* _ecore_x_selection_parser_targets */ }
static int static int
_ecore_x_selection_data_targets_free(void *data) _ecore_x_selection_data_targets_free(void *data)
@ -997,5 +997,5 @@ _ecore_x_selection_data_targets_free(void *data)
free(ECORE_X_SELECTION_DATA(sel)->data); free(ECORE_X_SELECTION_DATA(sel)->data);
free(sel); free(sel);
return 1; return 1;
} /* _ecore_x_selection_data_targets_free */ }

View File

@ -42,14 +42,14 @@ ecore_x_sync_alarm_new(Ecore_X_Sync_Counter counter)
ecore_x_sync(); ecore_x_sync();
return alarm; return alarm;
} /* ecore_x_sync_alarm_new */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_sync_alarm_free(Ecore_X_Sync_Alarm alarm) ecore_x_sync_alarm_free(Ecore_X_Sync_Alarm alarm)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XSyncDestroyAlarm(_ecore_x_disp, alarm); return XSyncDestroyAlarm(_ecore_x_disp, alarm);
} /* ecore_x_sync_alarm_free */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_sync_counter_query(Ecore_X_Sync_Counter counter, ecore_x_sync_counter_query(Ecore_X_Sync_Counter counter,
@ -65,7 +65,7 @@ ecore_x_sync_counter_query(Ecore_X_Sync_Counter counter,
} }
return EINA_FALSE; return EINA_FALSE;
} /* ecore_x_sync_counter_query */ }
EAPI Ecore_X_Sync_Counter EAPI Ecore_X_Sync_Counter
ecore_x_sync_counter_new(int val) ecore_x_sync_counter_new(int val)
@ -77,14 +77,14 @@ ecore_x_sync_counter_new(int val)
XSyncIntToValue(&v, val); XSyncIntToValue(&v, val);
counter = XSyncCreateCounter(_ecore_x_disp, v); counter = XSyncCreateCounter(_ecore_x_disp, v);
return counter; return counter;
} /* ecore_x_sync_counter_new */ }
EAPI void EAPI void
ecore_x_sync_counter_free(Ecore_X_Sync_Counter counter) ecore_x_sync_counter_free(Ecore_X_Sync_Counter counter)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSyncDestroyCounter(_ecore_x_disp, counter); XSyncDestroyCounter(_ecore_x_disp, counter);
} /* ecore_x_sync_counter_free */ }
EAPI void EAPI void
ecore_x_sync_counter_inc(Ecore_X_Sync_Counter counter, ecore_x_sync_counter_inc(Ecore_X_Sync_Counter counter,
@ -95,7 +95,7 @@ ecore_x_sync_counter_inc(Ecore_X_Sync_Counter counter,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSyncIntToValue(&v, by); XSyncIntToValue(&v, by);
XSyncChangeCounter(_ecore_x_disp, counter, v); XSyncChangeCounter(_ecore_x_disp, counter, v);
} /* ecore_x_sync_counter_inc */ }
EAPI void EAPI void
ecore_x_sync_counter_val_wait(Ecore_X_Sync_Counter counter, ecore_x_sync_counter_val_wait(Ecore_X_Sync_Counter counter,
@ -115,7 +115,7 @@ ecore_x_sync_counter_val_wait(Ecore_X_Sync_Counter counter,
cond.event_threshold = v2; cond.event_threshold = v2;
XSyncAwait(_ecore_x_disp, &cond, 1); XSyncAwait(_ecore_x_disp, &cond, 1);
// XSync(_ecore_x_disp, False); // dont need this // XSync(_ecore_x_disp, False); // dont need this
} /* ecore_x_sync_counter_val_wait */ }
EAPI void EAPI void
ecore_x_sync_counter_set(Ecore_X_Sync_Counter counter, ecore_x_sync_counter_set(Ecore_X_Sync_Counter counter,

View File

@ -42,7 +42,7 @@ ecore_x_test_fake_key_down(const char *key __UNUSED__)
#else /* ifdef ECORE_XTEST */ #else /* ifdef ECORE_XTEST */
return EINA_FALSE; return EINA_FALSE;
#endif /* ifdef ECORE_XTEST */ #endif /* ifdef ECORE_XTEST */
} /* ecore_x_test_fake_key_down */ }
EAPI Eina_Bool EAPI Eina_Bool
#ifdef ECORE_XTEST #ifdef ECORE_XTEST
@ -74,7 +74,7 @@ ecore_x_test_fake_key_up(const char *key __UNUSED__)
#else /* ifdef ECORE_XTEST */ #else /* ifdef ECORE_XTEST */
return EINA_FALSE; return EINA_FALSE;
#endif /* ifdef ECORE_XTEST */ #endif /* ifdef ECORE_XTEST */
} /* ecore_x_test_fake_key_up */ }
EAPI Eina_Bool EAPI Eina_Bool
#ifdef ECORE_XTEST #ifdef ECORE_XTEST
@ -145,11 +145,11 @@ ecore_x_test_fake_key_press(const char *key __UNUSED__)
#else /* ifdef ECORE_XTEST */ #else /* ifdef ECORE_XTEST */
return EINA_FALSE; return EINA_FALSE;
#endif /* ifdef ECORE_XTEST */ #endif /* ifdef ECORE_XTEST */
} /* ecore_x_test_fake_key_press */ }
EAPI const char * EAPI const char *
ecore_x_keysym_string_get(int keysym) ecore_x_keysym_string_get(int keysym)
{ {
return XKeysymToString(keysym); return XKeysymToString(keysym);
} /* ecore_x_keysym_string_get */ }

View File

@ -87,7 +87,7 @@ ecore_x_window_new(Ecore_X_Window parent,
ecore_x_window_defaults_set(win); ecore_x_window_defaults_set(win);
return win; return win;
} /* ecore_x_window_new */ }
/** /**
* Creates a window with the override redirect attribute set to @c True. * Creates a window with the override redirect attribute set to @c True.
@ -152,7 +152,7 @@ ecore_x_window_override_new(Ecore_X_Window parent,
CWWinGravity, CWWinGravity,
&attr); &attr);
return win; return win;
} /* ecore_x_window_override_new */ }
/** /**
* Creates a new input window. * Creates a new input window.
@ -209,7 +209,7 @@ ecore_x_window_input_new(Ecore_X_Window parent,
} }
return win; return win;
} /* ecore_x_window_input_new */ }
/** /**
* @defgroup Ecore_X_Window_Properties_Group X Window Property Functions * @defgroup Ecore_X_Window_Properties_Group X Window Property Functions
@ -263,7 +263,7 @@ ecore_x_window_defaults_set(Ecore_X_Window win)
ecore_app_args_get(&argc, &argv); ecore_app_args_get(&argc, &argv);
ecore_x_icccm_command_set(win, argc, argv); ecore_x_icccm_command_set(win, argc, argv);
} /* ecore_x_window_defaults_set */ }
EAPI void EAPI void
ecore_x_window_configure(Ecore_X_Window win, ecore_x_window_configure(Ecore_X_Window win,
@ -292,7 +292,7 @@ ecore_x_window_configure(Ecore_X_Window win,
xwc.stack_mode = stack_mode; xwc.stack_mode = stack_mode;
XConfigureWindow(_ecore_x_disp, win, mask, &xwc); XConfigureWindow(_ecore_x_disp, win, mask, &xwc);
} /* ecore_x_window_configure */ }
/** /**
* @defgroup Ecore_X_Window_Destroy_Group X Window Destroy Functions * @defgroup Ecore_X_Window_Destroy_Group X Window Destroy Functions
@ -314,7 +314,7 @@ ecore_x_window_free(Ecore_X_Window win)
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (win) if (win)
XDestroyWindow(_ecore_x_disp, win); XDestroyWindow(_ecore_x_disp, win);
} /* ecore_x_window_free */ }
/** /**
* Set if a window should be ignored. * Set if a window should be ignored.
@ -373,7 +373,7 @@ ecore_x_window_ignore_set(Ecore_X_Window win,
t = realloc(ignore_list, ignore_num * sizeof(Ecore_X_Window)); t = realloc(ignore_list, ignore_num * sizeof(Ecore_X_Window));
if (t) ignore_list = t; if (t) ignore_list = t;
} }
} /* ecore_x_window_ignore_set */ }
/** /**
* Get the ignore list * Get the ignore list
@ -387,7 +387,7 @@ ecore_x_window_ignore_list(int *num)
*num = ignore_num; *num = ignore_num;
return ignore_list; return ignore_list;
} /* ecore_x_window_ignore_list */ }
/** /**
* Sends a delete request to the given window. * Sends a delete request to the given window.
@ -415,7 +415,7 @@ ecore_x_window_delete_request_send(Ecore_X_Window win)
xev.xclient.data.l[1] = CurrentTime; xev.xclient.data.l[1] = CurrentTime;
XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev); XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev);
} /* ecore_x_window_delete_request_send */ }
/** /**
* @defgroup Ecore_X_Window_Visibility_Group X Window Visibility Functions * @defgroup Ecore_X_Window_Visibility_Group X Window Visibility Functions
@ -436,7 +436,7 @@ ecore_x_window_show(Ecore_X_Window win)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XMapWindow(_ecore_x_disp, win); XMapWindow(_ecore_x_disp, win);
} /* ecore_x_window_show */ }
/** /**
* Hides a window. * Hides a window.
@ -480,7 +480,7 @@ ecore_x_window_hide(Ecore_X_Window win)
XSendEvent(_ecore_x_disp, xev.xunmap.event, False, XSendEvent(_ecore_x_disp, xev.xunmap.event, False,
SubstructureRedirectMask | SubstructureNotifyMask, &xev); SubstructureRedirectMask | SubstructureNotifyMask, &xev);
XUnmapWindow(_ecore_x_disp, win); XUnmapWindow(_ecore_x_disp, win);
} /* ecore_x_window_hide */ }
/** /**
* @defgroup Ecore_X_Window_Geometry_Group X Window Geometry Functions * @defgroup Ecore_X_Window_Geometry_Group X Window Geometry Functions
@ -506,7 +506,7 @@ ecore_x_window_move(Ecore_X_Window win,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XMoveWindow(_ecore_x_disp, win, x, y); XMoveWindow(_ecore_x_disp, win, x, y);
} /* ecore_x_window_move */ }
/** /**
* Resizes a window. * Resizes a window.
@ -528,7 +528,7 @@ ecore_x_window_resize(Ecore_X_Window win,
h = 1; h = 1;
XResizeWindow(_ecore_x_disp, win, w, h); XResizeWindow(_ecore_x_disp, win, w, h);
} /* ecore_x_window_resize */ }
/** /**
* Moves and resizes a window. * Moves and resizes a window.
@ -554,7 +554,7 @@ ecore_x_window_move_resize(Ecore_X_Window win,
h = 1; h = 1;
XMoveResizeWindow(_ecore_x_disp, win, x, y, w, h); XMoveResizeWindow(_ecore_x_disp, win, x, y, w, h);
} /* ecore_x_window_move_resize */ }
/** /**
* @defgroup Ecore_X_Window_Focus_Functions X Window Focus Functions * @defgroup Ecore_X_Window_Focus_Functions X Window Focus Functions
@ -576,7 +576,7 @@ ecore_x_window_focus(Ecore_X_Window win)
// XSetInputFocus(_ecore_x_disp, win, RevertToPointerRoot, CurrentTime); // XSetInputFocus(_ecore_x_disp, win, RevertToPointerRoot, CurrentTime);
XSetInputFocus(_ecore_x_disp, win, RevertToParent, CurrentTime); XSetInputFocus(_ecore_x_disp, win, RevertToParent, CurrentTime);
} /* ecore_x_window_focus */ }
/** /**
* Sets the focus to the given window at a specific time. * Sets the focus to the given window at a specific time.
@ -594,7 +594,7 @@ ecore_x_window_focus_at_time(Ecore_X_Window win,
// XSetInputFocus(_ecore_x_disp, win, PointerRoot, t); // XSetInputFocus(_ecore_x_disp, win, PointerRoot, t);
XSetInputFocus(_ecore_x_disp, win, RevertToParent, t); XSetInputFocus(_ecore_x_disp, win, RevertToParent, t);
} /* ecore_x_window_focus_at_time */ }
/** /**
* gets the focus to the window @p win. * gets the focus to the window @p win.
@ -611,7 +611,7 @@ ecore_x_window_focus_get(void)
win = 0; win = 0;
XGetInputFocus(_ecore_x_disp, &win, &revert_mode); XGetInputFocus(_ecore_x_disp, &win, &revert_mode);
return win; return win;
} /* ecore_x_window_focus_get */ }
/** /**
* @defgroup Ecore_X_Window_Z_Order_Group X Window Z Order Functions * @defgroup Ecore_X_Window_Z_Order_Group X Window Z Order Functions
@ -629,7 +629,7 @@ ecore_x_window_raise(Ecore_X_Window win)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XRaiseWindow(_ecore_x_disp, win); XRaiseWindow(_ecore_x_disp, win);
} /* ecore_x_window_raise */ }
/** /**
* Lowers the given window. * Lowers the given window.
@ -641,7 +641,7 @@ ecore_x_window_lower(Ecore_X_Window win)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XLowerWindow(_ecore_x_disp, win); XLowerWindow(_ecore_x_disp, win);
} /* ecore_x_window_lower */ }
/** /**
* @defgroup Ecore_X_Window_Parent_Group X Window Parent Functions * @defgroup Ecore_X_Window_Parent_Group X Window Parent Functions
@ -668,7 +668,7 @@ ecore_x_window_reparent(Ecore_X_Window win,
new_parent = DefaultRootWindow(_ecore_x_disp); new_parent = DefaultRootWindow(_ecore_x_disp);
XReparentWindow(_ecore_x_disp, win, new_parent, x, y); XReparentWindow(_ecore_x_disp, win, new_parent, x, y);
} /* ecore_x_window_reparent */ }
/** /**
* Retrieves the size of the given window. * Retrieves the size of the given window.
@ -689,7 +689,7 @@ ecore_x_window_size_get(Ecore_X_Window win,
win = DefaultRootWindow(_ecore_x_disp); win = DefaultRootWindow(_ecore_x_disp);
ecore_x_drawable_geometry_get(win, &dummy_x, &dummy_y, w, h); ecore_x_drawable_geometry_get(win, &dummy_x, &dummy_y, w, h);
} /* ecore_x_window_size_get */ }
/** /**
* Retrieves the geometry of the given window. * Retrieves the geometry of the given window.
@ -719,7 +719,7 @@ ecore_x_window_geometry_get(Ecore_X_Window win,
win = DefaultRootWindow(_ecore_x_disp); win = DefaultRootWindow(_ecore_x_disp);
ecore_x_drawable_geometry_get(win, x, y, w, h); ecore_x_drawable_geometry_get(win, x, y, w, h);
} /* ecore_x_window_geometry_get */ }
/** /**
* Retrieves the width of the border of the given window. * Retrieves the width of the border of the given window.
@ -736,7 +736,7 @@ ecore_x_window_border_width_get(Ecore_X_Window win)
return 0; return 0;
return ecore_x_drawable_border_width_get(win); return ecore_x_drawable_border_width_get(win);
} /* ecore_x_window_border_width_get */ }
/** /**
* Sets the width of the border of the given window. * Sets the width of the border of the given window.
@ -754,7 +754,7 @@ ecore_x_window_border_width_set(Ecore_X_Window win,
return; return;
XSetWindowBorderWidth (_ecore_x_disp, win, width); XSetWindowBorderWidth (_ecore_x_disp, win, width);
} /* ecore_x_window_border_width_set */ }
/** /**
* Retrieves the depth of the given window. * Retrieves the depth of the given window.
@ -766,7 +766,7 @@ ecore_x_window_depth_get(Ecore_X_Window win)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ecore_x_drawable_depth_get(win); return ecore_x_drawable_depth_get(win);
} /* ecore_x_window_depth_get */ }
/** /**
* To be documented. * To be documented.
@ -803,7 +803,7 @@ ecore_x_window_cursor_show(Ecore_X_Window win,
} }
else else
XDefineCursor(_ecore_x_disp, win, 0); XDefineCursor(_ecore_x_disp, win, 0);
} /* ecore_x_window_cursor_show */ }
EAPI void EAPI void
ecore_x_window_cursor_set(Ecore_X_Window win, ecore_x_window_cursor_set(Ecore_X_Window win,
@ -814,7 +814,7 @@ ecore_x_window_cursor_set(Ecore_X_Window win,
XUndefineCursor(_ecore_x_disp, win); XUndefineCursor(_ecore_x_disp, win);
else else
XDefineCursor(_ecore_x_disp, win, c); XDefineCursor(_ecore_x_disp, win, c);
} /* ecore_x_window_cursor_set */ }
/** /**
* Finds out whether the given window is currently visible. * Finds out whether the given window is currently visible.
@ -830,7 +830,7 @@ ecore_x_window_visible_get(Ecore_X_Window win)
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XGetWindowAttributes(_ecore_x_disp, win, &attr) && return XGetWindowAttributes(_ecore_x_disp, win, &attr) &&
(attr.map_state == IsViewable); (attr.map_state == IsViewable);
} /* ecore_x_window_visible_get */ }
typedef struct _Shadow Shadow; typedef struct _Shadow Shadow;
struct _Shadow struct _Shadow
@ -914,7 +914,7 @@ _ecore_x_window_tree_walk(Window win)
XFree(list); XFree(list);
return s; return s;
} /* _ecore_x_window_tree_walk */ }
static void static void
_ecore_x_window_tree_shadow_free1(Shadow *s) _ecore_x_window_tree_shadow_free1(Shadow *s)
@ -935,7 +935,7 @@ _ecore_x_window_tree_shadow_free1(Shadow *s)
} }
free(s); free(s);
} /* _ecore_x_window_tree_shadow_free1 */ }
static void static void
_ecore_x_window_tree_shadow_free(void) _ecore_x_window_tree_shadow_free(void)
@ -955,7 +955,7 @@ _ecore_x_window_tree_shadow_free(void)
free(shadow_base); free(shadow_base);
shadow_base = NULL; shadow_base = NULL;
shadow_num = 0; shadow_num = 0;
} /* _ecore_x_window_tree_shadow_free */ }
static void static void
_ecore_x_window_tree_shadow_populate(void) _ecore_x_window_tree_shadow_populate(void)
@ -976,7 +976,7 @@ _ecore_x_window_tree_shadow_populate(void)
free(roots); free(roots);
} }
} /* _ecore_x_window_tree_shadow_populate */ }
/* /*
static int shadow_count = 0; static int shadow_count = 0;
@ -1020,7 +1020,7 @@ _ecore_x_window_shadow_tree_find_shadow(Shadow *s,
} }
return NULL; return NULL;
} /* _ecore_x_window_shadow_tree_find_shadow */ }
static Shadow * static Shadow *
_ecore_x_window_shadow_tree_find(Window base) _ecore_x_window_shadow_tree_find(Window base)
@ -1037,7 +1037,7 @@ _ecore_x_window_shadow_tree_find(Window base)
return s; return s;
} }
return NULL; return NULL;
} /* _ecore_x_window_shadow_tree_find */ }
static int static int
_inside_rects(Shadow *s, _inside_rects(Shadow *s,
@ -1131,7 +1131,7 @@ onward:
} }
return s->win; return s->win;
} /* _ecore_x_window_shadow_tree_at_xy_get_shadow */ }
static Window static Window
_ecore_x_window_shadow_tree_at_xy_get(Window base, _ecore_x_window_shadow_tree_at_xy_get(Window base,
@ -1162,7 +1162,7 @@ _ecore_x_window_shadow_tree_at_xy_get(Window base,
y, y,
skip, skip,
skip_num); skip_num);
} /* _ecore_x_window_shadow_tree_at_xy_get */ }
/** /**
* Retrieves the top, visible window at the given location, * Retrieves the top, visible window at the given location,
@ -1191,7 +1191,7 @@ ecore_x_window_shadow_tree_at_xy_with_skip_get(Ecore_X_Window base,
y, y,
skip, skip,
skip_num); skip_num);
} /* ecore_x_window_shadow_tree_at_xy_with_skip_get */ }
/** /**
* Retrieves the parent window a given window has. This uses the shadow window * Retrieves the parent window a given window has. This uses the shadow window
@ -1231,7 +1231,7 @@ ecore_x_window_shadow_parent_get(Ecore_X_Window root __UNUSED__,
} }
} }
return 0; return 0;
} /* ecore_x_window_shadow_parent_get */ }
/** /**
* Flushes the window shadow tree so nothing is stored. * Flushes the window shadow tree so nothing is stored.
@ -1242,7 +1242,7 @@ ecore_x_window_shadow_tree_flush(void)
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_window_tree_shadow_free(); _ecore_x_window_tree_shadow_free();
} /* ecore_x_window_shadow_tree_flush */ }
/** /**
* Retrieves the root window a given window is on. * Retrieves the root window a given window is on.
@ -1260,7 +1260,7 @@ ecore_x_window_root_get(Ecore_X_Window win)
return 0; return 0;
return att.root; return att.root;
} /* ecore_x_window_root_get */ }
static Window static Window
_ecore_x_window_at_xy_get(Window base, _ecore_x_window_at_xy_get(Window base,
@ -1324,7 +1324,7 @@ onward:
} }
return base; return base;
} /* _ecore_x_window_at_xy_get */ }
/** /**
* Retrieves the top, visible window at the given location. * Retrieves the top, visible window at the given location.
@ -1349,7 +1349,7 @@ ecore_x_window_at_xy_get(int x,
ecore_x_ungrab(); ecore_x_ungrab();
return win ? win : root; return win ? win : root;
} /* ecore_x_window_at_xy_get */ }
/** /**
* Retrieves the top, visible window at the given location, * Retrieves the top, visible window at the given location,
@ -1377,7 +1377,7 @@ ecore_x_window_at_xy_with_skip_get(int x,
ecore_x_ungrab(); ecore_x_ungrab();
return win ? win : root; return win ? win : root;
} /* ecore_x_window_at_xy_with_skip_get */ }
EAPI Ecore_X_Window EAPI Ecore_X_Window
ecore_x_window_at_xy_begin_get(Ecore_X_Window begin, ecore_x_window_at_xy_begin_get(Ecore_X_Window begin,
@ -1392,7 +1392,7 @@ ecore_x_window_at_xy_begin_get(Ecore_X_Window begin,
ecore_x_ungrab(); ecore_x_ungrab();
return win ? win : begin; return win ? win : begin;
} /* ecore_x_window_at_xy_begin_get */ }
/** /**
* Retrieves the parent window of the given window. * Retrieves the parent window of the given window.
@ -1414,7 +1414,7 @@ ecore_x_window_parent_get(Ecore_X_Window win)
XFree(children); XFree(children);
return parent; return parent;
} /* ecore_x_window_parent_get */ }
/** /**
* Sets the background color of the given window. * Sets the background color of the given window.
@ -1443,7 +1443,7 @@ ecore_x_window_background_color_set(Ecore_X_Window win,
attr.background_pixel = col.pixel; attr.background_pixel = col.pixel;
XChangeWindowAttributes(_ecore_x_disp, win, CWBackPixel, &attr); XChangeWindowAttributes(_ecore_x_disp, win, CWBackPixel, &attr);
} /* ecore_x_window_background_color_set */ }
EAPI void EAPI void
ecore_x_window_gravity_set(Ecore_X_Window win, ecore_x_window_gravity_set(Ecore_X_Window win,
@ -1454,7 +1454,7 @@ ecore_x_window_gravity_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
att.win_gravity = grav; att.win_gravity = grav;
XChangeWindowAttributes(_ecore_x_disp, win, CWWinGravity, &att); XChangeWindowAttributes(_ecore_x_disp, win, CWWinGravity, &att);
} /* ecore_x_window_gravity_set */ }
EAPI void EAPI void
ecore_x_window_pixel_gravity_set(Ecore_X_Window win, ecore_x_window_pixel_gravity_set(Ecore_X_Window win,
@ -1465,7 +1465,7 @@ ecore_x_window_pixel_gravity_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
att.bit_gravity = grav; att.bit_gravity = grav;
XChangeWindowAttributes(_ecore_x_disp, win, CWBitGravity, &att); XChangeWindowAttributes(_ecore_x_disp, win, CWBitGravity, &att);
} /* ecore_x_window_pixel_gravity_set */ }
EAPI void EAPI void
ecore_x_window_pixmap_set(Ecore_X_Window win, ecore_x_window_pixmap_set(Ecore_X_Window win,
@ -1473,7 +1473,7 @@ ecore_x_window_pixmap_set(Ecore_X_Window win,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSetWindowBackgroundPixmap(_ecore_x_disp, win, pmap); XSetWindowBackgroundPixmap(_ecore_x_disp, win, pmap);
} /* ecore_x_window_pixmap_set */ }
EAPI void EAPI void
ecore_x_window_area_clear(Ecore_X_Window win, ecore_x_window_area_clear(Ecore_X_Window win,
@ -1484,7 +1484,7 @@ ecore_x_window_area_clear(Ecore_X_Window win,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XClearArea(_ecore_x_disp, win, x, y, w, h, False); XClearArea(_ecore_x_disp, win, x, y, w, h, False);
} /* ecore_x_window_area_clear */ }
EAPI void EAPI void
ecore_x_window_area_expose(Ecore_X_Window win, ecore_x_window_area_expose(Ecore_X_Window win,
@ -1495,7 +1495,7 @@ ecore_x_window_area_expose(Ecore_X_Window win,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XClearArea(_ecore_x_disp, win, x, y, w, h, True); XClearArea(_ecore_x_disp, win, x, y, w, h, True);
} /* ecore_x_window_area_expose */ }
EAPI void EAPI void
ecore_x_window_override_set(Ecore_X_Window win, ecore_x_window_override_set(Ecore_X_Window win,
@ -1506,7 +1506,7 @@ ecore_x_window_override_set(Ecore_X_Window win,
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
att.override_redirect = override; att.override_redirect = override;
XChangeWindowAttributes(_ecore_x_disp, win, CWOverrideRedirect, &att); XChangeWindowAttributes(_ecore_x_disp, win, CWOverrideRedirect, &att);
} /* ecore_x_window_override_set */ }
#ifdef ECORE_XRENDER #ifdef ECORE_XRENDER
static Ecore_X_Window static Ecore_X_Window
@ -1615,7 +1615,7 @@ _ecore_x_window_argb_internal_new(Ecore_X_Window parent,
ecore_x_window_defaults_set(win); ecore_x_window_defaults_set(win);
return win; return win;
} /* _ecore_x_window_argb_internal_new */ }
#endif /* ifdef ECORE_XRENDER */ #endif /* ifdef ECORE_XRENDER */
@ -1641,7 +1641,7 @@ ecore_x_window_argb_get(Ecore_X_Window win)
#else /* ifdef ECORE_XRENDER */ #else /* ifdef ECORE_XRENDER */
return 0; return 0;
#endif /* ifdef ECORE_XRENDER */ #endif /* ifdef ECORE_XRENDER */
} /* ecore_x_window_argb_get */ }
/** /**
* Creates a new window. * Creates a new window.
@ -1667,7 +1667,7 @@ ecore_x_window_manager_argb_new(Ecore_X_Window parent,
#else /* ifdef ECORE_XRENDER */ #else /* ifdef ECORE_XRENDER */
return 0; return 0;
#endif /* ifdef ECORE_XRENDER */ #endif /* ifdef ECORE_XRENDER */
} /* ecore_x_window_manager_argb_new */ }
/** /**
* Creates a new window. * Creates a new window.
@ -1693,7 +1693,7 @@ ecore_x_window_argb_new(Ecore_X_Window parent,
#else /* ifdef ECORE_XRENDER */ #else /* ifdef ECORE_XRENDER */
return 0; return 0;
#endif /* ifdef ECORE_XRENDER */ #endif /* ifdef ECORE_XRENDER */
} /* ecore_x_window_argb_new */ }
/** /**
* Creates a window with the override redirect attribute set to @c True. * Creates a window with the override redirect attribute set to @c True.
@ -1719,5 +1719,5 @@ ecore_x_window_override_argb_new(Ecore_X_Window parent,
#else /* ifdef ECORE_XRENDER */ #else /* ifdef ECORE_XRENDER */
return 0; return 0;
#endif /* ifdef ECORE_XRENDER */ #endif /* ifdef ECORE_XRENDER */
} /* ecore_x_window_override_argb_new */ }

View File

@ -41,7 +41,7 @@ ecore_x_window_prop_card32_set(Ecore_X_Window win,
_ATOM_SET_CARD32(win, atom, v2, num); _ATOM_SET_CARD32(win, atom, v2, num);
free(v2); free(v2);
#endif /* if SIZEOF_INT == SIZEOF_LONG */ #endif /* if SIZEOF_INT == SIZEOF_LONG */
} /* ecore_x_window_prop_card32_set */ }
/* /*
* Get CARD32 (array) property * Get CARD32 (array) property
@ -89,7 +89,7 @@ ecore_x_window_prop_card32_get(Ecore_X_Window win,
XFree(prop_ret); XFree(prop_ret);
return num; return num;
} /* ecore_x_window_prop_card32_get */ }
/* /*
* Get CARD32 (array) property of any length * Get CARD32 (array) property of any length
@ -140,7 +140,7 @@ ecore_x_window_prop_card32_list_get(Ecore_X_Window win,
XFree(prop_ret); XFree(prop_ret);
return num; return num;
} /* ecore_x_window_prop_card32_list_get */ }
/* /*
* Set X ID (array) property * Set X ID (array) property
@ -170,7 +170,7 @@ ecore_x_window_prop_xid_set(Ecore_X_Window win,
(unsigned char *)pl, num); (unsigned char *)pl, num);
free(pl); free(pl);
#endif /* if SIZEOF_INT == SIZEOF_LONG */ #endif /* if SIZEOF_INT == SIZEOF_LONG */
} /* ecore_x_window_prop_xid_set */ }
/* /*
* Get X ID (array) property * Get X ID (array) property
@ -219,7 +219,7 @@ ecore_x_window_prop_xid_get(Ecore_X_Window win,
XFree(prop_ret); XFree(prop_ret);
return num; return num;
} /* ecore_x_window_prop_xid_get */ }
/* /*
* Get X ID (array) property * Get X ID (array) property
@ -268,7 +268,7 @@ ecore_x_window_prop_xid_list_get(Ecore_X_Window win,
XFree(prop_ret); XFree(prop_ret);
return num; return num;
} /* ecore_x_window_prop_xid_list_get */ }
/* /*
* Remove/add/toggle X ID list item. * Remove/add/toggle X ID list item.
@ -323,7 +323,7 @@ ecore_x_window_prop_xid_list_change(Ecore_X_Window win,
done: done:
if (lst) if (lst)
free(lst); free(lst);
} /* ecore_x_window_prop_xid_list_change */ }
/* /*
* Set Atom (array) property * Set Atom (array) property
@ -336,7 +336,7 @@ ecore_x_window_prop_atom_set(Ecore_X_Window win,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_xid_set(win, atom, XA_ATOM, lst, num); ecore_x_window_prop_xid_set(win, atom, XA_ATOM, lst, num);
} /* ecore_x_window_prop_atom_set */ }
/* /*
* Get Atom (array) property * Get Atom (array) property
@ -354,7 +354,7 @@ ecore_x_window_prop_atom_get(Ecore_X_Window win,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ecore_x_window_prop_xid_get(win, atom, XA_ATOM, lst, len); return ecore_x_window_prop_xid_get(win, atom, XA_ATOM, lst, len);
} /* ecore_x_window_prop_atom_get */ }
/* /*
* Get Atom (array) property * Get Atom (array) property
@ -371,7 +371,7 @@ ecore_x_window_prop_atom_list_get(Ecore_X_Window win,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ecore_x_window_prop_xid_list_get(win, atom, XA_ATOM, plst); return ecore_x_window_prop_xid_list_get(win, atom, XA_ATOM, plst);
} /* ecore_x_window_prop_atom_list_get */ }
/* /*
* Remove/add/toggle atom list item. * Remove/add/toggle atom list item.
@ -384,7 +384,7 @@ ecore_x_window_prop_atom_list_change(Ecore_X_Window win,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_xid_list_change(win, atom, XA_ATOM, item, op); ecore_x_window_prop_xid_list_change(win, atom, XA_ATOM, item, op);
} /* ecore_x_window_prop_atom_list_change */ }
/* /*
* Set Window (array) property * Set Window (array) property
@ -397,7 +397,7 @@ ecore_x_window_prop_window_set(Ecore_X_Window win,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_xid_set(win, atom, XA_WINDOW, lst, num); ecore_x_window_prop_xid_set(win, atom, XA_WINDOW, lst, num);
} /* ecore_x_window_prop_window_set */ }
/* /*
* Get Window (array) property * Get Window (array) property
@ -415,7 +415,7 @@ ecore_x_window_prop_window_get(Ecore_X_Window win,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ecore_x_window_prop_xid_get(win, atom, XA_WINDOW, lst, len); return ecore_x_window_prop_xid_get(win, atom, XA_WINDOW, lst, len);
} /* ecore_x_window_prop_window_get */ }
/* /*
* Get Window (array) property * Get Window (array) property
@ -432,7 +432,7 @@ ecore_x_window_prop_window_list_get(Ecore_X_Window win,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ecore_x_window_prop_xid_list_get(win, atom, XA_WINDOW, plst); return ecore_x_window_prop_xid_list_get(win, atom, XA_WINDOW, plst);
} /* ecore_x_window_prop_window_list_get */ }
/** /**
* To be documented. * To be documented.
@ -443,7 +443,7 @@ EAPI Ecore_X_Atom
ecore_x_window_prop_any_type(void) ecore_x_window_prop_any_type(void)
{ {
return AnyPropertyType; return AnyPropertyType;
} /* ecore_x_window_prop_any_type */ }
/** /**
* To be documented. * To be documented.
@ -485,7 +485,7 @@ ecore_x_window_prop_property_set(Ecore_X_Window win,
free(dat); free(dat);
} }
} }
} /* ecore_x_window_prop_property_set */ }
/** /**
* To be documented. * To be documented.
@ -552,7 +552,7 @@ ecore_x_window_prop_property_get(Ecore_X_Window win,
for (i = 0; i < num_ret; i++) for (i = 0; i < num_ret; i++)
((unsigned int *)*data)[i] = ((unsigned long *)prop_ret)[i]; ((unsigned int *)*data)[i] = ((unsigned long *)prop_ret)[i];
break; break;
} /* switch */ }
XFree(prop_ret); XFree(prop_ret);
@ -560,7 +560,7 @@ ecore_x_window_prop_property_get(Ecore_X_Window win,
*num = num_ret; *num = num_ret;
return size_ret; return size_ret;
} /* ecore_x_window_prop_property_get */ }
EAPI void EAPI void
ecore_x_window_prop_property_del(Ecore_X_Window win, ecore_x_window_prop_property_del(Ecore_X_Window win,
@ -568,7 +568,7 @@ ecore_x_window_prop_property_del(Ecore_X_Window win,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XDeleteProperty(_ecore_x_disp, win, property); XDeleteProperty(_ecore_x_disp, win, property);
} /* ecore_x_window_prop_property_del */ }
EAPI Ecore_X_Atom * EAPI Ecore_X_Atom *
ecore_x_window_prop_list(Ecore_X_Window win, ecore_x_window_prop_list(Ecore_X_Window win,
@ -596,7 +596,7 @@ ecore_x_window_prop_list(Ecore_X_Window win,
XFree(atom_ret); XFree(atom_ret);
return atoms; return atoms;
} /* ecore_x_window_prop_list */ }
/** /**
* Set a window string property. * Set a window string property.
@ -622,7 +622,7 @@ ecore_x_window_prop_string_set(Ecore_X_Window win,
xtp.encoding = ECORE_X_ATOM_UTF8_STRING; xtp.encoding = ECORE_X_ATOM_UTF8_STRING;
xtp.nitems = strlen(str); xtp.nitems = strlen(str);
XSetTextProperty(_ecore_x_disp, win, &xtp, type); XSetTextProperty(_ecore_x_disp, win, &xtp, type);
} /* ecore_x_window_prop_string_set */ }
/** /**
* Get a window string property. * Get a window string property.
@ -673,7 +673,7 @@ ecore_x_window_prop_string_get(Ecore_X_Window win,
} }
return str; return str;
} /* ecore_x_window_prop_string_get */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_window_prop_protocol_isset(Ecore_X_Window win, ecore_x_window_prop_protocol_isset(Ecore_X_Window win,
@ -703,7 +703,7 @@ ecore_x_window_prop_protocol_isset(Ecore_X_Window win,
XFree(protos); XFree(protos);
return ret; return ret;
} /* ecore_x_window_prop_protocol_isset */ }
/** /**
* To be documented. * To be documented.
@ -746,5 +746,5 @@ ecore_x_window_prop_protocol_list_get(Ecore_X_Window win,
XFree(protos); XFree(protos);
*num_ret = protos_count; *num_ret = protos_count;
return prot_ret; return prot_ret;
} /* ecore_x_window_prop_protocol_list_get */ }

View File

@ -28,7 +28,7 @@ ecore_x_window_shape_mask_set(Ecore_X_Window win,
{ {
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
XShapeCombineMask(_ecore_x_disp, win, ShapeBounding, 0, 0, mask, ShapeSet); XShapeCombineMask(_ecore_x_disp, win, ShapeBounding, 0, 0, mask, ShapeSet);
} /* ecore_x_window_shape_mask_set */ }
/** /**
* Sets the input shape of the given window to that given by the pixmap @p mask. * Sets the input shape of the given window to that given by the pixmap @p mask.
@ -48,7 +48,7 @@ ecore_x_window_shape_input_mask_set(Ecore_X_Window win,
return; return;
win = mask = 0; win = mask = 0;
#endif /* ifdef ShapeInput */ #endif /* ifdef ShapeInput */
} /* ecore_x_window_shape_input_mask_set */ }
EAPI void EAPI void
ecore_x_window_shape_window_set(Ecore_X_Window win, ecore_x_window_shape_window_set(Ecore_X_Window win,
@ -63,7 +63,7 @@ ecore_x_window_shape_window_set(Ecore_X_Window win,
shape_win, shape_win,
ShapeBounding, ShapeBounding,
ShapeSet); ShapeSet);
} /* ecore_x_window_shape_window_set */ }
EAPI void EAPI void
ecore_x_window_shape_input_window_set(Ecore_X_Window win, ecore_x_window_shape_input_window_set(Ecore_X_Window win,
@ -83,7 +83,7 @@ ecore_x_window_shape_input_window_set(Ecore_X_Window win,
return; return;
win = shape_win = 0; win = shape_win = 0;
#endif #endif
} /* ecore_x_window_shape_input_window_set */ }
EAPI void EAPI void
ecore_x_window_shape_window_set_xy(Ecore_X_Window win, ecore_x_window_shape_window_set_xy(Ecore_X_Window win,
@ -100,7 +100,7 @@ ecore_x_window_shape_window_set_xy(Ecore_X_Window win,
shape_win, shape_win,
ShapeBounding, ShapeBounding,
ShapeSet); ShapeSet);
} /* ecore_x_window_shape_window_set_xy */ }
EAPI void EAPI void
ecore_x_window_shape_input_window_set_xy(Ecore_X_Window win, ecore_x_window_shape_input_window_set_xy(Ecore_X_Window win,
@ -122,7 +122,7 @@ ecore_x_window_shape_input_window_set_xy(Ecore_X_Window win,
return; return;
win = shape_win = x = y = 0; win = shape_win = x = y = 0;
#endif #endif
} /* ecore_x_window_shape_input_window_set_xy */ }
EAPI void EAPI void
ecore_x_window_shape_rectangle_set(Ecore_X_Window win, ecore_x_window_shape_rectangle_set(Ecore_X_Window win,
@ -147,7 +147,7 @@ ecore_x_window_shape_rectangle_set(Ecore_X_Window win,
1, 1,
ShapeSet, ShapeSet,
Unsorted); Unsorted);
} /* ecore_x_window_shape_rectangle_set */ }
EAPI void EAPI void
ecore_x_window_shape_input_rectangle_set(Ecore_X_Window win, ecore_x_window_shape_input_rectangle_set(Ecore_X_Window win,
@ -177,7 +177,7 @@ ecore_x_window_shape_input_rectangle_set(Ecore_X_Window win,
return; return;
win = x = y = w = h = 0; win = x = y = w = h = 0;
#endif #endif
} /* ecore_x_window_shape_input_rectangle_set */ }
EAPI void EAPI void
ecore_x_window_shape_rectangles_set(Ecore_X_Window win, ecore_x_window_shape_rectangles_set(Ecore_X_Window win,
@ -216,7 +216,7 @@ ecore_x_window_shape_rectangles_set(Ecore_X_Window win,
return; return;
win = rects = num = 0; win = rects = num = 0;
#endif #endif
} /* ecore_x_window_shape_rectangles_set */ }
EAPI void EAPI void
ecore_x_window_shape_input_rectangles_set(Ecore_X_Window win, ecore_x_window_shape_input_rectangles_set(Ecore_X_Window win,
@ -255,7 +255,7 @@ ecore_x_window_shape_input_rectangles_set(Ecore_X_Window win,
return; return;
win = rects = num = 0; win = rects = num = 0;
#endif #endif
} /* ecore_x_window_shape_input_rectangles_set */ }
EAPI void EAPI void
ecore_x_window_shape_rectangle_subtract(Ecore_X_Window win, ecore_x_window_shape_rectangle_subtract(Ecore_X_Window win,
@ -280,7 +280,7 @@ ecore_x_window_shape_rectangle_subtract(Ecore_X_Window win,
1, 1,
ShapeSubtract, ShapeSubtract,
Unsorted); Unsorted);
} /* ecore_x_window_shape_rectangle_subtract */ }
EAPI void EAPI void
ecore_x_window_shape_input_rectangle_subtract(Ecore_X_Window win, ecore_x_window_shape_input_rectangle_subtract(Ecore_X_Window win,
@ -310,7 +310,7 @@ ecore_x_window_shape_input_rectangle_subtract(Ecore_X_Window win,
return; return;
win = x = y = w = h = 0; win = x = y = w = h = 0;
#endif #endif
} /* ecore_x_window_shape_input_rectangle_subtract */ }
EAPI void EAPI void
ecore_x_window_shape_window_add(Ecore_X_Window win, ecore_x_window_shape_window_add(Ecore_X_Window win,
@ -325,7 +325,7 @@ ecore_x_window_shape_window_add(Ecore_X_Window win,
shape_win, shape_win,
ShapeBounding, ShapeBounding,
ShapeUnion); ShapeUnion);
} /* ecore_x_window_shape_window_add */ }
EAPI void EAPI void
ecore_x_window_shape_window_add_xy(Ecore_X_Window win, ecore_x_window_shape_window_add_xy(Ecore_X_Window win,
@ -342,7 +342,7 @@ ecore_x_window_shape_window_add_xy(Ecore_X_Window win,
shape_win, shape_win,
ShapeBounding, ShapeBounding,
ShapeUnion); ShapeUnion);
} /* ecore_x_window_shape_window_add_xy */ }
EAPI void EAPI void
ecore_x_window_shape_input_window_add_xy(Ecore_X_Window win, ecore_x_window_shape_input_window_add_xy(Ecore_X_Window win,
@ -364,7 +364,7 @@ ecore_x_window_shape_input_window_add_xy(Ecore_X_Window win,
return; return;
win = shape_win = x = y = 0; win = shape_win = x = y = 0;
#endif #endif
} /* ecore_x_window_shape_input_window_add_xy */ }
EAPI void EAPI void
ecore_x_window_shape_rectangle_add(Ecore_X_Window win, ecore_x_window_shape_rectangle_add(Ecore_X_Window win,
@ -389,7 +389,7 @@ ecore_x_window_shape_rectangle_add(Ecore_X_Window win,
1, 1,
ShapeUnion, ShapeUnion,
Unsorted); Unsorted);
} /* ecore_x_window_shape_rectangle_add */ }
EAPI void EAPI void
ecore_x_window_shape_input_rectangle_add(Ecore_X_Window win, ecore_x_window_shape_input_rectangle_add(Ecore_X_Window win,
@ -419,7 +419,7 @@ ecore_x_window_shape_input_rectangle_add(Ecore_X_Window win,
return; return;
win = x = y = w = h = 0; win = x = y = w = h = 0;
#endif #endif
} /* ecore_x_window_shape_input_rectangle_add */ }
EAPI void EAPI void
ecore_x_window_shape_rectangle_clip(Ecore_X_Window win, ecore_x_window_shape_rectangle_clip(Ecore_X_Window win,
@ -444,7 +444,7 @@ ecore_x_window_shape_rectangle_clip(Ecore_X_Window win,
1, 1,
ShapeIntersect, ShapeIntersect,
Unsorted); Unsorted);
} /* ecore_x_window_shape_rectangle_clip */ }
EAPI void EAPI void
ecore_x_window_shape_input_rectangle_clip(Ecore_X_Window win, ecore_x_window_shape_input_rectangle_clip(Ecore_X_Window win,
@ -474,7 +474,7 @@ ecore_x_window_shape_input_rectangle_clip(Ecore_X_Window win,
return; return;
win = x = y = w = h = 0; win = x = y = w = h = 0;
#endif #endif
} /* ecore_x_window_shape_input_rectangle_clip */ }
EAPI void EAPI void
ecore_x_window_shape_rectangles_add(Ecore_X_Window win, ecore_x_window_shape_rectangles_add(Ecore_X_Window win,
@ -508,7 +508,7 @@ ecore_x_window_shape_rectangles_add(Ecore_X_Window win,
ShapeUnion, ShapeUnion,
Unsorted); Unsorted);
if (rect) free(rect); if (rect) free(rect);
} /* ecore_x_window_shape_rectangles_add */ }
EAPI void EAPI void
ecore_x_window_shape_input_rectangles_add(Ecore_X_Window win, ecore_x_window_shape_input_rectangles_add(Ecore_X_Window win,
@ -547,7 +547,7 @@ ecore_x_window_shape_input_rectangles_add(Ecore_X_Window win,
return; return;
win = rects = num = 0; win = rects = num = 0;
#endif #endif
} /* ecore_x_window_shape_input_rectangles_add */ }
EAPI Ecore_X_Rectangle * EAPI Ecore_X_Rectangle *
ecore_x_window_shape_rectangles_get(Ecore_X_Window win, ecore_x_window_shape_rectangles_get(Ecore_X_Window win,
@ -585,7 +585,7 @@ ecore_x_window_shape_rectangles_get(Ecore_X_Window win,
} }
if (num_ret) *num_ret = num; if (num_ret) *num_ret = num;
return rects; return rects;
} /* ecore_x_window_shape_rectangles_get */ }
EAPI Ecore_X_Rectangle * EAPI Ecore_X_Rectangle *
ecore_x_window_shape_input_rectangles_get(Ecore_X_Window win, ecore_x_window_shape_input_rectangles_get(Ecore_X_Window win,
@ -643,7 +643,7 @@ ecore_x_window_shape_input_rectangles_get(Ecore_X_Window win,
if (num_ret) *num_ret = 1; if (num_ret) *num_ret = 1;
return rects; return rects;
#endif #endif
} /* ecore_x_window_shape_input_rectangles_get */ }
EAPI void EAPI void
ecore_x_window_shape_events_select(Ecore_X_Window win, ecore_x_window_shape_events_select(Ecore_X_Window win,
@ -654,5 +654,5 @@ ecore_x_window_shape_events_select(Ecore_X_Window win,
XShapeSelectInput(_ecore_x_disp, win, ShapeNotifyMask); XShapeSelectInput(_ecore_x_disp, win, ShapeNotifyMask);
else else
XShapeSelectInput(_ecore_x_disp, win, 0); XShapeSelectInput(_ecore_x_disp, win, 0);
} /* ecore_x_window_shape_events_select */ }

View File

@ -46,7 +46,7 @@ _ecore_x_input_init(void)
_ecore_x_xi2_devs = XIQueryDevice(_ecore_x_disp, XIAllDevices, _ecore_x_xi2_devs = XIQueryDevice(_ecore_x_disp, XIAllDevices,
&_ecore_x_xi2_num); &_ecore_x_xi2_num);
#endif /* ifdef ECORE_XI2 */ #endif /* ifdef ECORE_XI2 */
} /* _ecore_x_input_init */ }
void void
_ecore_x_input_shutdown(void) _ecore_x_input_shutdown(void)
@ -61,7 +61,7 @@ _ecore_x_input_shutdown(void)
_ecore_x_xi2_num = 0; _ecore_x_xi2_num = 0;
_ecore_x_xi2_opcode = -1; _ecore_x_xi2_opcode = -1;
#endif /* ifdef ECORE_XI2 */ #endif /* ifdef ECORE_XI2 */
} /* _ecore_x_input_shutdown */ }
void void
_ecore_x_input_handler(XEvent *xevent) _ecore_x_input_handler(XEvent *xevent)
@ -205,9 +205,9 @@ _ecore_x_input_handler(XEvent *xevent)
#endif #endif
default: default:
break; break;
} /* switch */ }
#endif /* ifdef ECORE_XI2 */ #endif /* ifdef ECORE_XI2 */
} /* _ecore_x_input_handler */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_input_multi_select(Ecore_X_Window win) ecore_x_input_multi_select(Ecore_X_Window win)
@ -279,5 +279,5 @@ ecore_x_input_multi_select(Ecore_X_Window win)
#else /* ifdef ECORE_XI2 */ #else /* ifdef ECORE_XI2 */
return EINA_FALSE; return EINA_FALSE;
#endif /* ifdef ECORE_XI2 */ #endif /* ifdef ECORE_XI2 */
} /* ecore_x_input_multi_select */ }

View File

@ -36,7 +36,7 @@ ecore_x_xinerama_screen_count_get(void)
#endif /* ifdef ECORE_XINERAMA */ #endif /* ifdef ECORE_XINERAMA */
return 0; return 0;
} /* ecore_x_xinerama_screen_count_get */ }
EAPI Eina_Bool EAPI Eina_Bool
ecore_x_xinerama_screen_geometry_get(int screen, ecore_x_xinerama_screen_geometry_get(int screen,
@ -87,5 +87,5 @@ ecore_x_xinerama_screen_geometry_get(int screen,
return EINA_FALSE; return EINA_FALSE;
screen = 0; screen = 0;
} /* ecore_x_xinerama_screen_geometry_get */ }