Re: get_maximized



Hi;

Could you please quote the right way?  Thanks.

On Wed, 2006-09-06 at 06:54 -0700, Sergei Steshenko wrote:

  $window->signal_connect(window_state_event => sub {
      my ($w, $event) = @_;
  
      if ($event->changed_mask & [ 'maximized', ]) {
          print "The window has been maximized\n";
      }
  });

Isn't "&" in

$event->changed_mask & [ 'maximized', ]

bitwise AND ?

And doesn't "[ 'maximized', ]" return array reference ?

If the answer to both questions is YES, how will it work ?

Sheer magic, or more probably an error due to my badly deteriorating
memory.  I'll let you decide and, in case, test.

Ciao,
 Emmanuele.

-- 
Emmanuele Bassi,  E: ebassi gmail com
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]