Subject: | window maximize/restore under fvwm |
Date: | Tue, 29 Jan 2013 08:11:25 +1100 |
To: | bug-Prima [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
Under recent debian i386 fvwm 2.5.30, doing a $main->maximize and then
$main->restore in prima doesn't restore the previous window size.
Run foo.pl below, click on maximize, then click on restore. The window
is restored to its original position, but its size is still the full
screen size extending off the right and bottom edges of the screen.
fvwm has, or is supposed to have, _NET_WM maximize things.
use strict;
use Prima;
use Prima::Buttons;
use Prima 'Application';
my $main = Prima::MainWindow->new (size => [100,100]);
$main->insert ('Button',
text => 'Maximize',
pack => { side => 'top' },
onClick => sub {
my ($button) = @_;
print "maximize\n";
$main->maximize;
});
$main->insert ('Button',
text => 'Restore',
pack => { side => 'top' },
onClick => sub {
my ($button) = @_;
print "restore\n";
$main->restore;
});
Prima->run;
exit 0;