Giving focus to the root window of the screen on Linux
Prasad Tammana <prasadt <at> chromium.org>
2011-11-01 02:59:38 GMT
Is there a way for an app to give focus to the root window on Linux? The only I found looking around is to set user time on the root window to be current and that's not working for me. Here is what I'm doing:
GdkWindow* root_window = gdk_screen_get_root_window(gdk_screen_get_default());
gdk_x11_window_set_user_time(root_window, GDK_CURRENT_TIME);
I tried a few variations of this without luck. I also tried the following and that didn't work either:
GdkWindow* root_window = gdk_screen_get_root_window(
gdk_screen_get_default());
gdk_window_focus(root_window, GDK_CURRENT_TIME);
In the scenario where the only browser windows are panels, and all the panels are minimized, I'd like for Chrome to give up focus and they way I'm trying to do it is by giving focus to the root window. Is there a more direct way for an app to give up focus?
Thanks,
Prasad
--
Chromium Developers mailing list: chromium-dev <at> chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev