Re: How to prevent windows to be raised at the top of the stack when clicked?

2013-02-21 Thread Olivier Guillion - Myriad
Hi, Lucas, Vous avez écrit (you wrote:) It's not completely satisfactory, because for instance, when tool palettes are clicked they will raise above the currently open dialog box. Not exactly. Depending on the WM settings, a click may well not raise the window. The fact is: *you*

Re: How to prevent windows to be raised at the top of the stack when clicked?

2013-02-19 Thread Olivier Guillion - Myriad
Thank you very much, Sam, It does make sense indeed. I almost abandoned the idea of managing completely the stacking order at application-level, and tried to find a way to distribute my windows into several non-intersecting stacking groups. By using the gdk_window_set_type_hint() function, I

Re: How to prevent windows to be raised at the top of the stack when clicked?

2013-02-18 Thread Olivier Guillion - Myriad
Hi, I made some more tests about the solutions that seem to be useable. It appears that they are not. Reminder: the problem is to let the application manage window stacking (z- order), instead of letting the Window manager do most of the job by itself. - The gtk_windows_set_transient_for()

Re: How to prevent windows to be raised at the top of the stack when clicked?

2013-02-18 Thread Sam Spilsbury
Hi, On Thu, Feb 14, 2013 at 12:17 AM, Olivier Guillion - Myriad oliv...@myriad-online.com wrote: Hi, I'm struggling with this problem for several days now, and can't find any solution. I'm writing an application for Ubuntu using GTK in C language. This application manages various windows

Re: How to prevent windows to be raised at the top of the stack when clicked?

2013-02-15 Thread Olivier Guillion - Myriad
Michael Cronenworth m...@cchtml.com wrote: Is there a way to prevent a clicked window from being automatically sent to top of the stack ? Any help would be greatly appreciated. You can use gtk_window_set_transient_for() to force stack ordering. Thanks, Michael, I already tried it, and it

Re: How to prevent windows to be raised at the top of the stack when clicked?

2013-02-15 Thread kmbruhnk
Have you tried looking at the settings for your window manager? I know with mwm (yes, I still use it) you can change the button bindings so that, for instance, a mouse button down in a window can call f.nop instead of the usual f.raise. Depending on how standardized your window manager wants

Re: How to prevent windows to be raised at the top of the stack when clicked?

2013-02-15 Thread Olivier Guillion - Myriad
Thank you, Kurt ! I'm a complete newbie in Linux programming, and I didn't realize that the window manager could be configured on an application-basis. It worth definitely a look. Thanks again, Kurt M. Bruhnke wrote : Have you tried looking at the settings for your window manager? I know

How to prevent windows to be raised at the top of the stack when clicked?

2013-02-13 Thread Olivier Guillion - Myriad
Hi, I'm struggling with this problem for several days now, and can't find any solution. I'm writing an application for Ubuntu using GTK in C language. This application manages various windows (floating palettes, documents, toolbars, etc), with a complex stacking (Z-order) strategy. I would

Re: How to prevent windows to be raised at the top of the stack when clicked?

2013-02-13 Thread Michael Cronenworth
Olivier Guillion - Myriad wrote: Is there a way to prevent a clicked window from being automatically sent to top of the stack ? Any help would be greatly appreciated. You can use gtk_window_set_transient_for() to force stack ordering. ___