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 / Toplevel / FG_Out.al
CommitLineData
86530b38
AT
1# NOTE: Derived from blib/lib/Tk/Toplevel.pm.
2# Changes made here will be lost when autosplit is run again.
3# See AutoSplit.pm.
4package Tk::Toplevel;
5
6#line 188 "blib/lib/Tk/Toplevel.pm (autosplit into blib/lib/auto/Tk/Toplevel/FG_Out.al)"
7# tkFocusGroup_Out --
8#
9# Handles the <FocusOut> event. Checks if this is really a lose
10# focus event, not one generated by the mouse moving out of the
11# toplevel window. Calls the FocusOut command for the widget
12# who loses its focus.
13#
14sub FG_Out {
15 my($t, $w, $detail) = @_;
16 if ($detail ne 'NotifyNonlinear' and $detail ne 'NotifyNonlinearVirtual') {
17 # This is caused by mouse moving out of the window
18 return;
19 }
20 unless (exists $t->{'_FocusOut'}{$w}) {
21 return;
22 } else {
23 $t->{'_FocusOut'}{$w}->Call;
24 delete $t->{'_focus'};
25 }
26}
27
281;
29
30__END__
311;
32# end of Tk::Toplevel::FG_Out