Matchbox stacking issue

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Matchbox stacking issue

Marco Pesenti Gritti
Hi,

I'm attaching a test case that creates two toplevel windows. Each of
them has a transient dialog associated.

The stacking order in matchbox is:

Dialog 1
Dialog 2
Window 2
Window 1

I'd expect it to be:

Dialog 2
Window 2
Dialog 1
Window 1

and that's what I get in metacity effectively.

Is this a bug? Are there reasons to behave in this way? Or am I simply
missing something?

Marco
Reply | Threaded
Open this post in threaded view
|

Matchbox stacking issue

Marco Pesenti Gritti
Marco Pesenti Gritti wrote:

> Hi,
>
> I'm attaching a test case that creates two toplevel windows. Each of
> them has a transient dialog associated.
>
> The stacking order in matchbox is:
>
> Dialog 1
> Dialog 2
> Window 2
> Window 1
>
> I'd expect it to be:
>
> Dialog 2
> Window 2
> Dialog 1
> Window 1
>
> and that's what I get in metacity effectively.
>
> Is this a bug? Are there reasons to behave in this way? Or am I simply
> missing something?

Really attaching the testcase this time...

Marco
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 429 bytes
Desc: not available
Url : http://mailman.laptop.org/pipermail/sugar/attachments/20060719/bf62d00d/test.py
Reply | Threaded
Open this post in threaded view
|

Matchbox stacking issue

Matthew Allum-2
Hi;

On Wed, 2006-07-19 at 20:31 +0200, Marco Pesenti Gritti wrote:
>
> > Is this a bug? Are there reasons to behave in this way? Or am I simply
> > missing something?

Its more a feature than a bug. If multiple app windows are in the same
window group ( of which in a single GTK program with multiple app wins
are ), transient dialogs become transient to the group as a whole. This
is whats happening here - if you page through the app window stack
you'll see the dialogs remain raised.

This behaviour can be quite useful if you have a multiple app win
application. But its pretty new code and a bit annoying it does this
with such a seemingly simple test case.

Anyway attached is an updated test.py which splits up the group and does
what you expect, though Im sure there is a nicer way to do this
python/gtk wise.

  -- Matthew


-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 674 bytes
Desc: not available
Url : http://mailman.laptop.org/pipermail/sugar/attachments/20060720/c11edf5e/test.py