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.164 by root, Mon Jun 4 18:17:25 2012 UTC vs.
Revision 1.166 by root, Tue Jun 5 11:00:40 2012 UTC

978rxvt_term::destroy () 978rxvt_term::destroy ()
979 979
980void 980void
981rxvt_term::set_should_invoke (int htype, int inc) 981rxvt_term::set_should_invoke (int htype, int inc)
982 CODE: 982 CODE:
983 THIS->perl.should_invoke [htype] += inc; 983 uint8_t &count = THIS->perl.should_invoke [htype];
984 uint8_t prev = count;
985 count += inc;
986 if (!prev != !count)
987 {
988 // hook status changed, react
989 switch (htype)
990 {
991 case HOOK_POSITION_CHANGE:
992 if (count)
993 THIS->get_window_origin (THIS->parent_x, THIS->parent_y);
994 }
995 }
984 996
985int 997int
986rxvt_term::grab_button (int button, U32 modifiers, Window window = THIS->vt) 998rxvt_term::grab_button (int button, U32 modifiers, Window window = THIS->vt)
987 CODE: 999 CODE:
988 RETVAL = XGrabButton (THIS->dpy, button, modifiers, window, 1, 1000 RETVAL = XGrabButton (THIS->dpy, button, modifiers, window, 1,
1245 CODE: 1257 CODE:
1246 RETVAL = THIS->parent; 1258 RETVAL = THIS->parent;
1247 OUTPUT: 1259 OUTPUT:
1248 RETVAL 1260 RETVAL
1249 1261
1250Window 1262int
1251rxvt_term::vt () 1263rxvt_term::parent_x ()
1252 CODE: 1264 CODE:
1253 RETVAL = THIS->vt; 1265 RETVAL = THIS->parent_x;
1266 OUTPUT:
1267 RETVAL
1268
1269int
1270rxvt_term::parent_y ()
1271 CODE:
1272 RETVAL = THIS->parent_y;
1254 OUTPUT: 1273 OUTPUT:
1255 RETVAL 1274 RETVAL
1256 1275
1257void 1276void
1258rxvt_term::vt_emask_add (U32 emask) 1277rxvt_term::vt_emask_add (U32 emask)
1934} 1953}
1935 1954
1936############################################################################# 1955#############################################################################
1937# fancy bg bloatstuff (TODO: should be moved up somewhere) 1956# fancy bg bloatstuff (TODO: should be moved up somewhere)
1938 1957
1958# TODO: ugly
1959void
1960rxvt_term::get_geometry ()
1961 PPCODE:
1962 EXTEND (SP, 4);
1963 PUSHs (sv_2mortal (newSViv (THIS->parent_x)));
1964 PUSHs (sv_2mortal (newSViv (THIS->parent_y)));
1965 PUSHs (sv_2mortal (newSViv (THIS->szHint.width)));
1966 PUSHs (sv_2mortal (newSViv (THIS->szHint.height)));
1967
1939#if HAVE_IMG 1968#if HAVE_IMG
1940 1969
1941rxvt_img * 1970rxvt_img *
1942rxvt_term::new_img (SV *format, int width, int height) 1971rxvt_term::new_img (SV *format, int width, int height)
1943 CODE: 1972 CODE:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines