dDisp;
if (ev.xany.window == vt
+ && SHOULD_INVOKE (HOOK_X_EVENT)
&& HOOK_INVOKE ((this, HOOK_X_EVENT, DT_XEVENT, &ev, DT_END)))
return;
if (ev.xany.window == vt)
{
- if (HOOK_INVOKE ((this, HOOK_MOTION_NOTIFY, DT_XEVENT, &ev, DT_END)))
+ if (SHOULD_INVOKE (HOOK_MOTION_NOTIFY)
+ && HOOK_INVOKE ((this, HOOK_MOTION_NOTIFY, DT_XEVENT, &ev, DT_END)))
; // nop
else if (ev.xbutton.state & (Button1Mask | Button3Mask))
{
rxvt_set_locale (savelocale);
}
-void
-rxvt_term::make_current () const
-{
- SET_R (this);
- rxvt_set_locale (locale);
- set_environ (envv);
-}
-
#if ENABLE_COMBINING
class rxvt_composite_vec rxvt_composite;
bool pty_fill ();
- void make_current () const; // make this the "currently active" urxvt instance
+ void make_current () const // make this the "currently active" urxvt instance
+ {
+ SET_R (this);
+ rxvt_set_locale (locale);
+ set_environ (envv);
+ }
void init_secondary ();
const char **init_resources (int argc, const char *const *argv);
#define RXVTPERL_H_
#if ENABLE_PERL
-# define SHOULD_INVOKE(htype) perl.should_invoke [htype]
+# define SHOULD_INVOKE(htype) \
+ ( (htype) == HOOK_INIT \
+ || (htype) == HOOK_DESTROY \
+ || (htype) == HOOK_REFRESH_BEGIN \
+ || (htype) == HOOK_REFRESH_END \
+ || perl.should_invoke [htype])
# define HOOK_INVOKE(args) rxvt_perl.invoke args
#include "rxvt.h"
enum data_type {
- DT_END,
+ DT_END, // no further arguments
DT_INT,
DT_LONG,
- DT_STR,
- DT_STR_LEN,
- DT_WCS_LEN,
+ DT_STR, // 0-terminates string
+ DT_STR_LEN, // string + length
+ DT_WCS_LEN, // wstring + length
DT_XEVENT,
};