Re: How can I raise and focus a window if I don't have the window manager?
- From: Havoc Pennington <hp redhat com>
- To: "godsatan" <godsatan kimo com tw>
- Cc: <gtk-app-devel-list gnome org>
- Subject: Re: How can I raise and focus a window if I don't have the window manager?
- Date: 03 May 2001 00:18:13 -0400
"godsatan" <godsatan kimo com tw> writes:
I have three windows, main_window, mail_window, and mail_content_window.
This system is without window manger. I need show mail_window and let it
getting focus when user press a specific key on main_window. And then popup
a mail_content_window when user press enter key on mail_window. I use
gtk_widget_show() and gtk_window_activate_focus() to implement what i need.
The problem is only main_window and mail_window can get focus then get the
events. I couldn't switch focus from mail_content_window to mail_window
because it didn't get the focus. But mail_content_window is indeed showed.
Dose anyone can give me some advice about how to raise and focus a window if
I don't have the window manager?
gdk_window_show() will raise the window, and you have to include
gdk/gdkx.h and use XSetInputFocus () to set the focus.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]