On 19 Sep 2005 23:26:12 +0000, Marcel Linden wrote:
> 
> I wrote a small perlscript, which uses the Tracker::Windowlist to get a 
> windowlist. But unfortunately I don't see a way to ignore those
> windows that have the WindowListSkip-Flag set.
> 
> I tried:
> 
> my $tracker = $module->track("WindowList");
> my @windows = $tracker->windows;
> foreach my $window ($tracker->windows) {

Here you would continue with something like:

        next if $window->flag("WindowListSkip");

except that this is not implemented yet, because the flags structure is
currently only parsable in C modules, there is no way to do it in perl.
There were several related discussion on how to implement it, including
this thread:

  http://www.mail-archive.com/[email protected]/msg05561.html

Of course, you may try other ways to do what you want, for example:

  $module->send("All (!WindowListSkip) SendToModule $module->{name} apply");

  # then listen to M_STRING and get win_id from it
  my $non_skipped_window = $tracker->data($win_id);

Regards,
Mikhael.

Reply via email to