User Time handling bits.

SVN revision: 18472
This commit is contained in:
Kim Woelders 2005-11-14 19:28:01 +00:00
parent ff36fcda6a
commit 1388595dd7
3 changed files with 31 additions and 0 deletions

View File

@ -1228,6 +1228,13 @@ ecore_x_netwm_desktop_get(Ecore_X_Window win, unsigned int *desk)
desk, 1);
}
int
ecore_x_netwm_user_time_get(Ecore_X_Window win, unsigned int *ts)
{
return ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_NET_WM_USER_TIME,
ts, 1);
}
void
ecore_x_netwm_opacity_set(Ecore_X_Window win, unsigned int opacity)
{

View File

@ -264,6 +264,10 @@ void ecore_x_netwm_desktop_set(Ecore_X_Window win,
unsigned int desk);
int ecore_x_netwm_desktop_get(Ecore_X_Window win,
unsigned int *desk);
int ecore_x_netwm_user_time_get(Ecore_X_Window win,
unsigned int *ts);
void ecore_x_netwm_opacity_set(Ecore_X_Window win,
unsigned int opacity);
int ecore_x_netwm_opacity_get(Ecore_X_Window win,

View File

@ -650,6 +650,23 @@ EWMH_GetWindowIcons(EWin * ewin)
EwinChange(ewin, EWIN_CHANGE_ICON_PMAP);
}
static void
EWMH_GetWindowUserTime(EWin * ewin)
{
#if 0 /* TBD */
int num;
unsigned int ts;
num = ecore_x_netwm_user_time_get(_EwinGetClientXwin(ewin), &ts);
if (num <= 0)
return;
Eprintf("EWMH_GetWindowUserTime %#x\n", ts);
#else
ewin = NULL;
#endif
}
static void
EWMH_GetWindowMisc(EWin * ewin)
{
@ -762,6 +779,7 @@ EWMH_GetWindowHints(EWin * ewin)
EWMH_GetWindowType(ewin);
EWMH_GetWindowIcons(ewin);
EWMH_GetWindowStrut(ewin);
EWMH_GetWindowUserTime(ewin);
}
/*
@ -1066,4 +1084,6 @@ EWMH_ProcessPropertyChange(EWin * ewin, Atom atom_change)
EWMH_GetWindowStrut(ewin);
else if (atom_change == ECORE_X_ATOM_NET_WM_WINDOW_OPACITY)
EWMH_GetWindowOpacity(ewin);
else if (atom_change == ECORE_X_ATOM_NET_WM_USER_TIME)
EWMH_GetWindowUserTime(ewin);
}