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



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 
your applications to behave, you might be able to fix your problem by 
reconfiguring your window manager. You may even be able to do this on a 
window class or window name basis which would be done in .Xdefaults.

Kurt M. Bruhnke
Rockwell-Collins Simulation & Training Solutions
Phone: 703-234-2163
Email: kmbruhnk rockwellcollins com



From:   gtk-app-devel-list-request gnome org
To:     gtk-app-devel-list gnome org
Date:   02/15/2013 07:00 AM
Subject:        gtk-app-devel-list Digest, Vol 106, Issue 9
Sent by:        "gtk-app-devel-list" 
<gtk-app-devel-list-bounces gnome org>



Date: Fri, 15 Feb 2013 10:58:26 +0100
From: "Olivier Guillion - Myriad" <olivier myriad-online com>
To: gtk-app-devel-list gnome org
Subject: Re: How to prevent windows to be raised at the top of the
                 stack when              clicked?
Message-ID: <511E06C2 17445 5DCCB2 olivier myriad-online com>
Content-Type: text/plain; charset=US-ASCII

Michael Cronenworth <mike 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 didn't work as expected.

To manage the stacking order properly, each window has to be set transient 
for 
the window below it in the stack. But changing the order in this 
"transient 
list" doesn't work as expected : sometimes windows remain at their 
previous Z-
order after the call. It seems that  gtk_window_set_transient_for()  is 
merely 
designed to manage dialog boxes that open over a document window, and not 
to 
apply changes to existing windows stack ordering.

I'm still trying to go further with this function though. So far, the only 

solution I could find with this function is, when something changes in the 

stack order, to delete the transient info of each and every window, then 
rebuild it entirely.

It seems to work, but it's not straightforward. I'll tell here the results 
of 
my experiments.

Regards,
Olivier

Olivier Guillion
Myriad
26 rue Michel de Montaigne
31200 Toulouse 
FRANCE
--------      WebSite    -----------
http://www.myriad-online.com
Download here the latest version of our shareware programs, view the 
online 
tutorials or get info about Myriad and its activities.
---------------------------------





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]