Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / perl-5.8.0 / lib / site_perl / 5.8.0 / sun4-solaris / auto / Tk / Wm / FullScreen.al
CommitLineData
86530b38
AT
1# NOTE: Derived from blib/lib/Tk/Wm.pm.
2# Changes made here will be lost when autosplit is run again.
3# See AutoSplit.pm.
4package Tk::Wm;
5
6#line 130 "blib/lib/Tk/Wm.pm (autosplit into blib/lib/auto/Tk/Wm/FullScreen.al)"
7sub FullScreen
8{
9 my $w = shift;
10 my $over = (@_) ? shift : 0;
11 my $width = $w->screenwidth;
12 my $height = $w->screenheight;
13 $w->GeometryRequest($width,$height);
14 $w->overrideredirect($over & 1);
15 $w->Post(0,0);
16 $w->update;
17 if ($over & 2)
18 {
19 my $x = $w->rootx;
20 my $y = $w->rooty;
21 $width -= 2*$x;
22 $height -= $x + $y;
23 $w->GeometryRequest($width,$height);
24 $w->update;
25 }
26}
27
28# end of Tk::Wm::FullScreen
291;