ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtperl.xs
(Generate patch)

Comparing rxvt-unicode/src/rxvtperl.xs (file contents):
Revision 1.114 by ayin, Mon Aug 27 18:31:00 2007 UTC vs.
Revision 1.115 by ayin, Wed Oct 31 09:55:24 2007 UTC

382 382
383 // pre-handling of some events 383 // pre-handling of some events
384 if (htype == HOOK_REFRESH_END) 384 if (htype == HOOK_REFRESH_END)
385 { 385 {
386 AV *av = (AV *)SvRV (*hv_fetch ((HV *)SvRV ((SV *)term->perl.self), "_overlay", 8, 0)); 386 AV *av = (AV *)SvRV (*hv_fetch ((HV *)SvRV ((SV *)term->perl.self), "_overlay", 8, 0));
387 387
388 for (int i = 0; i <= AvFILL (av); i++) 388 for (int i = 0; i <= AvFILL (av); i++)
389 ((overlay *)SvIV (*av_fetch (av, i, 0)))->swap (); 389 ((overlay *)SvIV (*av_fetch (av, i, 0)))->swap ();
390 } 390 }
391 391
392 swap (perl_environ, environ); 392 swap (perl_environ, environ);
591 591
592 // post-handling of some events 592 // post-handling of some events
593 if (htype == HOOK_REFRESH_BEGIN) 593 if (htype == HOOK_REFRESH_BEGIN)
594 { 594 {
595 AV *av = (AV *)SvRV (*hv_fetch ((HV *)SvRV ((SV *)term->perl.self), "_overlay", 8, 0)); 595 AV *av = (AV *)SvRV (*hv_fetch ((HV *)SvRV ((SV *)term->perl.self), "_overlay", 8, 0));
596 596
597 for (int i = AvFILL (av); i >= 0; i--) 597 for (int i = AvFILL (av); i >= 0; i--)
598 ((overlay *)SvIV (*av_fetch (av, i, 0)))->swap (); 598 ((overlay *)SvIV (*av_fetch (av, i, 0)))->swap ();
599 } 599 }
600 else if (htype == HOOK_DESTROY) 600 else if (htype == HOOK_DESTROY)
601 { 601 {
602 clearSVptr ((SV *)term->perl.self); 602 clearSVptr ((SV *)term->perl.self);
603 SvREFCNT_dec ((SV *)term->perl.self); 603 SvREFCNT_dec ((SV *)term->perl.self);
604 604
605 // don't allow further calls 605 // don't allow further calls
606 term->perl.self = 0; 606 term->perl.self = 0;
607 } 607 }
608 608
609 swap (perl_environ, environ); 609 swap (perl_environ, environ);
1672 Atom *props = XListProperties (THIS->dpy, window, &count); 1672 Atom *props = XListProperties (THIS->dpy, window, &count);
1673 1673
1674 EXTEND (SP, count); 1674 EXTEND (SP, count);
1675 while (count--) 1675 while (count--)
1676 PUSHs (newSVuv ((U32)props [count])); 1676 PUSHs (newSVuv ((U32)props [count]));
1677 1677
1678 XFree (props); 1678 XFree (props);
1679} 1679}
1680 1680
1681void 1681void
1682rxvt_term::XGetWindowProperty (Window window, Atom property) 1682rxvt_term::XGetWindowProperty (Window window, Atom property)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines