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.165 by root, Mon Jun 4 21:33:47 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)
1938 1957
1939# TODO: ugly 1958# TODO: ugly
1940void 1959void
1941rxvt_term::get_geometry () 1960rxvt_term::get_geometry ()
1942 PPCODE: 1961 PPCODE:
1943 Window wdummy;
1944 int x, y;
1945 XWindowAttributes wattr;
1946 XGetWindowAttributes (THIS->dpy, THIS->parent, &wattr);
1947 XTranslateCoordinates (THIS->dpy, THIS->parent, wattr.root,
1948 -wattr.border_width, -wattr.border_width,
1949 &x, &y, &wdummy);
1950 EXTEND (SP, 4); 1962 EXTEND (SP, 4);
1951 PUSHs (sv_2mortal (newSViv (x))); 1963 PUSHs (sv_2mortal (newSViv (THIS->parent_x)));
1952 PUSHs (sv_2mortal (newSViv (y))); 1964 PUSHs (sv_2mortal (newSViv (THIS->parent_y)));
1953 PUSHs (sv_2mortal (newSViv (wattr.width))); 1965 PUSHs (sv_2mortal (newSViv (THIS->szHint.width)));
1954 PUSHs (sv_2mortal (newSViv (wattr.height))); 1966 PUSHs (sv_2mortal (newSViv (THIS->szHint.height)));
1955 1967
1956#if HAVE_IMG 1968#if HAVE_IMG
1957 1969
1958rxvt_img * 1970rxvt_img *
1959rxvt_term::new_img (SV *format, int width, int height) 1971rxvt_term::new_img (SV *format, int width, int height)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines