On Fri, Jul 22, 2011 at 06:58:44PM -0400, Kevin Ryde via RT wrote:
Show quoted text
Always, and automatically.
Show quoted text> > The problem is, that XMapRaised() call that supposed to bring an X
> > window on top of window stack, can be (and apparently is) ignored by
> > Ubuntu's default window manager.
> Are you sure? Which wm is that?
Almost sure. I did all kinds of debug prints and added XMapRaised and XRaiseWindow calls
in arbitrary places in the code. The WM is metacity.
Show quoted text> > It seems, that if a window
> > manager is hell-bent on not letting a program doing that, one just
> > cannot by using standard X11 calls.
> That's so, but it's supposed to have a reason for doing or not doing of
> course :-).
It works fine when XMapRaised is called on a hidden window.
Show quoted text> My reading of the netwm is that applications can/should use the normal
> ConfigureRequest for stacking order.
Indeed. Metacity does an interesting thing - when I do bring_to_front
on the only window in the Prima app, its icon blinks on the taskbar, and
as soon I navigate the mouse outside the currently focused app, it brings
the Prima app up the stack. However, when I do that on a two-window Prima app,
the icon still blinks, but metacity doesn't bring forward the window.
But anyways. I've committed an extra bring_to_front in HelpViewer.pm, which even
though doesn't do much, still feels in line with the expected behavior.
Show quoted text> There's a _NET_WM_USER_TIME thing which is supposed to prevent a badly
> lagged application from raising or focusing away from something else
> you've switched to in the interim, but if I'm not mistaken you never set
> that so it shouldn't apply.
Agree, it's kind of too much.
Show quoted text>
>
>
Show quoted text> #!/usr/bin/perl -w
> use strict;
> use Prima 'Buttons', 'Application';
>
> my $w = Prima::MainWindow->create (height => 100,
> width => 200);
> $w->insert(Button =>
> origin => [ 0,50],
> selectable => 1,
> text => "open_help",
> onClick => sub {
> $::application->open_help ("Prima");
> },
> );
> $w->insert(Button =>
> origin => [ 0,0],
> selectable => 1,
> text => "open_help and raise",
> onClick => sub {
> $::application->open_help ("Prima");
> my $help = $Prima::HelpViewer::helpWindows[0];
> $help->bring_to_front;
> },
> );
> Prima->run;
> exit 0;
Show quoted text>
>
>
> --
> These prestigious wrought-iron security gates are bullet-proof,
> bomb-proof, and battering-ram resistant.
--
Sincerely,
Dmitry Karasik