disable this for now... see comment.

SVN revision: 12223
This commit is contained in:
Carsten Haitzler 2004-11-19 05:49:16 +00:00
parent c6323bbaec
commit 44b34b4b89
4 changed files with 24 additions and 2 deletions

View File

@ -789,6 +789,7 @@ void ecore_x_window_resize(Ecore_X_Window win, int w, int h);
void ecore_x_window_move_resize(Ecore_X_Window win, int x, int y, int w, int h); void ecore_x_window_move_resize(Ecore_X_Window win, int x, int y, int w, int h);
void ecore_x_window_focus(Ecore_X_Window win); void ecore_x_window_focus(Ecore_X_Window win);
void ecore_x_window_focus_at_time(Ecore_X_Window win, Ecore_X_Time t); void ecore_x_window_focus_at_time(Ecore_X_Window win, Ecore_X_Time t);
Ecore_X_Window ecore_x_window_focus_get(void);
void ecore_x_window_raise(Ecore_X_Window win); void ecore_x_window_raise(Ecore_X_Window win);
void ecore_x_window_lower(Ecore_X_Window win); void ecore_x_window_lower(Ecore_X_Window win);
void ecore_x_window_reparent(Ecore_X_Window win, Ecore_X_Window new_parent, int x, int y); void ecore_x_window_reparent(Ecore_X_Window win, Ecore_X_Window new_parent, int x, int y);

View File

@ -820,6 +820,9 @@ _ecore_x_event_handle_circulate_request(XEvent *xevent)
void void
_ecore_x_event_handle_property_notify(XEvent *xevent) _ecore_x_event_handle_property_notify(XEvent *xevent)
{ {
#if 0 /* for now i disabled this. nice idea though this is - it leaves a lot
* to be desired for efficiency that is better left to the app layer
*/
if (xevent->xproperty.atom == _ecore_x_atom_wm_class) if (xevent->xproperty.atom == _ecore_x_atom_wm_class)
{ {
Ecore_X_Event_Window_Prop_Name_Class_Change *e; Ecore_X_Event_Window_Prop_Name_Class_Change *e;
@ -908,6 +911,7 @@ _ecore_x_event_handle_property_notify(XEvent *xevent)
ecore_event_add(ECORE_X_EVENT_WINDOW_PROP_PID_CHANGE, e, NULL, NULL); ecore_event_add(ECORE_X_EVENT_WINDOW_PROP_PID_CHANGE, e, NULL, NULL);
} }
else else
#endif
{ {
Ecore_X_Event_Window_Property *e; Ecore_X_Event_Window_Property *e;

View File

@ -420,6 +420,23 @@ ecore_x_window_focus_at_time(Ecore_X_Window win, Ecore_X_Time t)
XSetInputFocus(_ecore_x_disp, win, RevertToNone, t); XSetInputFocus(_ecore_x_disp, win, RevertToNone, t);
} }
/**
* gets the focus to the window @p win.
* @return The window that has focus.
* @ingroup Ecore_X_Window_Focus_Functions
*/
Ecore_X_Window
ecore_x_window_focus_get(void)
{
Window win;
int revert_mode;
win = 0;
XGetInputFocus(_ecore_x_disp, &win, &revert_mode);
return win;
}
/** /**
* @defgroup Ecore_X_Window_Z_Order_Group X Window Z Order Functions * @defgroup Ecore_X_Window_Z_Order_Group X Window Z Order Functions
* *

View File

@ -249,8 +249,8 @@ ecore_x_window_prop_title_get(Ecore_X_Window win)
{ {
char *title; char *title;
title = ecore_x_window_prop_string_get(win, _ecore_x_atom_net_wm_name); /* title = ecore_x_window_prop_string_get(win, _ecore_x_atom_net_wm_name);*/
if (!title) title = ecore_x_window_prop_string_get(win, _ecore_x_atom_wm_name); title = ecore_x_window_prop_string_get(win, _ecore_x_atom_wm_name);
return title; return title;
} }