Whether the application is active?
- From: "aniket ray" <aniket ray gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Whether the application is active?
- Date: Wed, 23 Jan 2008 19:12:50 +0530
Hi,
Is there a way to find out if the current application is the active
application (has user-focus) or not?
I have a gtk application with multiple windows and if any among the windows
has focus then I want a variable (let's say boolean isActive) to be set as
true.
I tried changing the value of isActive based on focus-in and focus-out
events of each of the windows. But then, if I switch from one window of the
app to another, the variable is becoming false for a period of time (albeit
a small one).
Any help in this regard is extremely welcome.
Thanks
Aniket Ray
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]