Re: Creating a non-focused window

2008-05-25 Thread Tom Machinski
On Sat, May 24, 2008 at 11:12 PM, James Scott Jr <[EMAIL PROTECTED]> wrote: > Tom, > > The word "hint" almost always refers to a potential capability of the > Window Manager; meaning the wm does not have to honor the request or > feature. Maybe your code is working and the wm is ignoring the requ

Re: Creating a non-focused window

2008-05-24 Thread Tom Machinski
On Fri, May 23, 2008 at 5:41 PM, Bill O'Connor <[EMAIL PROTECTED]> wrote: > > I can't make this work in either lang. > I can check that the flag is being set with > gtk_window_get_focus_on_map(), but it just doesn't do anything. > > My suggestion is that you not do this. Thanks for checking, B

Re: Creating a non-focused window

2008-05-23 Thread Tom Machinski
On Fri, May 23, 2008 at 2:26 PM, Brian J. Tarricone <[EMAIL PROTECTED]> wrote: > > Hmm, when I write basically the same thing as your Python implementation > in C, I get the same result as you -- the window grabs focus when it's > shown. OK, so I've compiled and ran both your code below, and a s

Re: Creating a non-focused window

2008-05-23 Thread Tom Machinski
On Fri, May 23, 2008 at 9:52 AM, Brian J. Tarricone <[EMAIL PROTECTED]> wrote: > Well, it works here, using straight C. I don't really know Python, so I > can't really say why it wouldn't work there. Thanks a lot Brian. Could you perchance paste the code you used? If this is a bug in PyGTK, it

Re: Creating a non-focused window

2008-05-23 Thread Tom Machinski
On Thu, May 22, 2008 at 11:52 PM, Brian J. Tarricone <[EMAIL PROTECTED]> wrote: > > gtk_window_set_focus_on_map() (or presumably > window.set_focus_on_map(False) in... whatever langauges you're using). Thanks Brian, aniket. Unfortunately, this solution does not work. `dpkg -l libgtk2.0-0` shows

Re: Creating a non-focused window

2008-05-23 Thread Tom Machinski
On Thu, May 22, 2008 at 11:22 PM, Tiberius DULUMAN < [EMAIL PROTECTED]> wrote: > > The only way I know to do that is by calling > window.set_accept_focus(False) > > before window.show(). The serious flaw with that method is that the > > resulting window, while being prevented from stealing the foc

Creating a non-focused window

2008-05-22 Thread Tom Machinski
Hi, I wrote a simple GTK+ application that displays a popup window. The problem is that whenever the window is displayed, it immediately gets ("steals") the focus. I would like to prevent that from happening: i.e., the window should be created and displayed, but it should not be focused, but inst