FW: GDK_WINDOW_XID and XGetInputFocus give me different results
- From: "zielone" <zielone0 poczta onet pl>
- To: <gtk-app-devel-list gnome org>
- Subject: FW: GDK_WINDOW_XID and XGetInputFocus give me different results
- Date: Sat, 8 Jan 2005 00:52:46 +0100
Hi All
I notice strange behaviour of this function
when i try to get window id this method:
GtkWidget* widget = (GtkWidget*)wxSomeWxWindow->GetHandle();
Window myid = GDK_WINDOW_XID(widget->window)
I receive always id decrease by 1 in comparing to id received by
function:
XGetInputFocus(display, &focus, &revert_to);
For example i have such results after converse to int:
39846108 for first method
39846109 for second method
I would like to have id of my window and do some action only when focus
is not in my window
If(myid!=focus) //i dont have focus
{
do something
}
But in this case even if i have focus i still do something because of
this difference
Can someone explain me this??
Michael
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]