~kklimonda/ubuntu/lucid/rxvt-unicode/lp-514821

« back to all changes in this revision

Viewing changes to src/rxvtperl.xs

  • Committer: Bazaar Package Importer
  • Author(s): Decklin Foster
  • Date: 2006-09-01 14:44:58 UTC
  • mfrom: (1.1.8 upstream) (3.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20060901144458-98hrz8zg01w8a3vy
Tags: 7.9-2
* Edit the comments in the app-defaults file, and disable all settings by
  default. If font autoselection fails, I would prefer to open a new bug
  specifically for that. (Closes: #385481)
* Reorganize and edit README.Debian, pushing as much as possible into FAQ
  format (with resource setting issues first).

Show diffs side-by-side

added added

removed removed

Lines of Context:
357
357
 
358
358
  for (i = AvFILL (overlay_av); i >= 0; i--)
359
359
    if (SvIV (*av_fetch (overlay_av, i, 1)) == (long)this)
360
 
      {
361
 
        av_delete (overlay_av, i, G_DISCARD);
362
 
        break;
363
 
      }
 
360
      break;
364
361
 
365
362
  for (; i < AvFILL (overlay_av); i++)
366
363
    av_store (overlay_av, i, SvREFCNT_inc (*av_fetch (overlay_av, i + 1, 0)));
793
790
    const_iv (Button5Mask),
794
791
    const_iv (AnyModifier),
795
792
 
 
793
    const_iv (NoSymbol),
 
794
    const_iv (GrabModeSync),
 
795
    const_iv (GrabModeAsync),
 
796
 
796
797
    const_iv (EVENT_NONE),
797
798
    const_iv (EVENT_READ),
798
799
    const_iv (EVENT_WRITE),
1017
1018
        CODE:
1018
1019
        THIS->perl.should_invoke [htype] += inc;
1019
1020
 
1020
 
void
 
1021
int
1021
1022
rxvt_term::grab_button (int button, U32 modifiers, Window window = THIS->vt)
1022
1023
        CODE:
1023
 
        XGrabButton (THIS->dpy, button, modifiers, window, 1,
1024
 
                     ButtonPressMask | ButtonReleaseMask | EnterWindowMask | LeaveWindowMask | PointerMotionMask,
1025
 
                     GrabModeSync, GrabModeSync, None, GRAB_CURSOR);
 
1024
        RETVAL = XGrabButton (THIS->dpy, button, modifiers, window, 1,
 
1025
                              ButtonPressMask | ButtonReleaseMask | EnterWindowMask | LeaveWindowMask | PointerMotionMask,
 
1026
                              GrabModeSync, GrabModeSync, None, GRAB_CURSOR);
 
1027
        OUTPUT: RETVAL
1026
1028
 
1027
 
void
 
1029
int
1028
1030
rxvt_term::ungrab_button (int button, U32 modifiers, Window window = THIS->vt)
1029
1031
        CODE:
1030
 
        XUngrabButton (THIS->dpy, button, modifiers, window);
1031
 
 
1032
 
#if 0
1033
 
 
1034
 
void
1035
 
XGrabKey (rxvt_term *THIS, int keycode, U32 modifiers, Window window = THIS->vt)
1036
 
        C_ARGS:
1037
 
        THIS->dpy, keycode, modifiers, window, 1,
1038
 
        GrabModeSync, GrabModeSync
1039
 
 
1040
 
void
1041
 
XUngrabKey (rxvt_term *THIS, int keycode, U32 modifiers, Window window = THIS->vt)
1042
 
        C_ARGS: THIS->dpy, keycode, modifiers, window
1043
 
 
1044
 
#endif
 
1032
        RETVAL = XUngrabButton (THIS->dpy, button, modifiers, window);
 
1033
        OUTPUT: RETVAL
 
1034
 
 
1035
void
 
1036
rxvt_term::XGrabKey (int keycode, U32 modifiers, Window window = THIS->vt, \
 
1037
                     int owner_events = 1, int pointer_mode = GrabModeAsync, int keyboard_mode = GrabModeAsync)
 
1038
        CODE:
 
1039
        XGrabKey (THIS->dpy, keycode, modifiers, window, owner_events, pointer_mode, keyboard_mode);
 
1040
 
 
1041
void
 
1042
rxvt_term::XUngrabKey (int keycode, U32 modifiers, Window window = THIS->vt)
 
1043
        CODE:
 
1044
        XUngrabKey (THIS->dpy, keycode, modifiers, window);
 
1045
 
 
1046
void
 
1047
rxvt_term::XUngrabKeyboard (Time eventtime)
 
1048
        CODE:
 
1049
        XUngrabKeyboard (THIS->dpy, eventtime);
1045
1050
 
1046
1051
bool
1047
1052
rxvt_term::grab (Time eventtime, int sync = 0)
1086
1091
        ungrab (THIS);
1087
1092
 
1088
1093
int
 
1094
rxvt_term::XStringToKeysym (char *string)
 
1095
        CODE:
 
1096
        RETVAL = XStringToKeysym (string);
 
1097
        OUTPUT: RETVAL
 
1098
 
 
1099
char *
 
1100
rxvt_term::XKeysymToString (int sym)
 
1101
        CODE:
 
1102
        RETVAL = XKeysymToString (sym);
 
1103
        OUTPUT: RETVAL
 
1104
 
 
1105
int
 
1106
rxvt_term::XKeysymToKeycode (int sym)
 
1107
        CODE:
 
1108
        RETVAL = XKeysymToKeycode (THIS->dpy, sym);
 
1109
        OUTPUT: RETVAL
 
1110
 
 
1111
int
 
1112
rxvt_term::XKeycodeToKeysym (int code, int index)
 
1113
        CODE:
 
1114
        RETVAL = XKeycodeToKeysym (THIS->dpy, code, index);
 
1115
        OUTPUT: RETVAL
 
1116
 
 
1117
int
1089
1118
rxvt_term::strwidth (SV *str)
1090
1119
        CODE:
1091
1120
{