nanogui: Thread: Bug in GrMapWindow???


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Bug in GrMapWindow???
From: Olaf Winne ####@####.####
Date: 22 Nov 2001 10:32:32 -0000
Message-Id: <01112211324700.00712@o6v9n4>

Hi, 
maybe I got it wrong, but I tried to use the map and unmap function of nano-X.

First, I declared two windows (GrNewWindowEx). Then I mapped the first (no 
probelms):

               GrMapWindow(w_init);

I need to change between the defined windows, which are all 
GR_ROOT_WINDOW_ID windows.

To show another window, I use:

      GrMapWindow(w_MsgBox);
      GrUnmapWindow(w_init);

And to switch back to the first window, the commands above vice versa.

What happens: The second window is displayed correctly over the first one. 
But when I switch back, the second window stays on top (in fact, the color of 
the title bar changes).

The only way to show the first window again is to destroy the second window, 
what I don't want, because ist is for later use also.

Any hints? 

Thank you,
Olaf





Subject: Re: [nanogui] Bug in GrMapWindow???
From: Olaf Winne ####@####.####
Date: 22 Nov 2001 10:46:29 -0000
Message-Id: <01112211442501.00712@o6v9n4>

I found out, that it's not a problem of nano-X. It seems like the nanowm is 
buggy. 

Olaf

Am Donnerstag, 22. November 2001 11:32 schrieb Olaf Winne:
> Hi,
> maybe I got it wrong, but I tried to use the map and unmap function of
> nano-X.
>
> First, I declared two windows (GrNewWindowEx). Then I mapped the first (no
> probelms):
>
>                GrMapWindow(w_init);
>
> I need to change between the defined windows, which are all
> GR_ROOT_WINDOW_ID windows.
>
> To show another window, I use:
>
>       GrMapWindow(w_MsgBox);
>       GrUnmapWindow(w_init);
>
> And to switch back to the first window, the commands above vice versa.
>
> What happens: The second window is displayed correctly over the first one.
> But when I switch back, the second window stays on top (in fact, the color
> of the title bar changes).
>
> The only way to show the first window again is to destroy the second
> window, what I don't want, because ist is for later use also.
>
> Any hints?
>
> Thank you,
> Olaf
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
Subject: Re: [nanogui] Bug in GrMapWindow???
From: "Greg Haerr" ####@####.####
Date: 22 Nov 2001 17:40:50 -0000
Message-Id: <03e901c1737c$a67e0460$3aba46a6@xmission.com>

: I found out, that it's not a problem of nano-X. It seems like the nanowm is 
: buggy. 

Actually, it's GrReparentWindow that's buggy.  When nanowm
is running, it uses GrReparentWindow to reparent your original
window inside its frame window.  Read the comments in 
nanox/srvfunc.c::GrReparentWindow.  Also, there's
an #if 1 that can be changed to work with the new experimental
behaviour.  I've been trying to fix this but the visibility attribute
of unmapped/reparented window chains isn't quite right yet.
The demos/nanox/demo2.c source code GrMapWindow
also will show this bug with demo2.sh/demo22.sh.

Regards,

Greg




: 
: Olaf
: 
: Am Donnerstag, 22. November 2001 11:32 schrieb Olaf Winne:
: > Hi,
: > maybe I got it wrong, but I tried to use the map and unmap function of
: > nano-X.
: >
: > First, I declared two windows (GrNewWindowEx). Then I mapped the first (no
: > probelms):
: >
: >                GrMapWindow(w_init);
: >
: > I need to change between the defined windows, which are all
: > GR_ROOT_WINDOW_ID windows.
: >
: > To show another window, I use:
: >
: >       GrMapWindow(w_MsgBox);
: >       GrUnmapWindow(w_init);
: >
: > And to switch back to the first window, the commands above vice versa.
: >
: > What happens: The second window is displayed correctly over the first one.
: > But when I switch back, the second window stays on top (in fact, the color
: > of the title bar changes).
: >
: > The only way to show the first window again is to destroy the second
: > window, what I don't want, because ist is for later use also.
: >
: > Any hints?
: >
: > Thank you,
: > Olaf
: >
: >
: >
: >
: >
: >
: > ---------------------------------------------------------------------
: > To unsubscribe, e-mail: ####@####.####
: > For additional commands, e-mail: ####@####.####

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.