… | |
… | |
65 | #ifdef USE_XIM |
65 | #ifdef USE_XIM |
66 | refcache<rxvt_xim> xims; |
66 | refcache<rxvt_xim> xims; |
67 | vector<im_watcher *> imw; |
67 | vector<im_watcher *> imw; |
68 | |
68 | |
69 | void im_change_cb (); |
69 | void im_change_cb (); |
|
|
70 | void im_change_check (); |
70 | #endif |
71 | #endif |
71 | |
72 | |
72 | //public |
73 | //public |
73 | Display *display; |
74 | Display *display; |
74 | int depth; |
75 | int depth; |
… | |
… | |
83 | |
84 | |
84 | rxvt_display (const char *id); |
85 | rxvt_display (const char *id); |
85 | bool init (); |
86 | bool init (); |
86 | ~rxvt_display (); |
87 | ~rxvt_display (); |
87 | |
88 | |
|
|
89 | operator Display *() const { return display; } |
|
|
90 | |
88 | void flush (); |
91 | void flush (); |
89 | |
92 | Atom atom (const char *name); |
90 | void set_selection_owner (rxvt_term *owner); |
93 | void set_selection_owner (rxvt_term *owner); |
91 | |
94 | |
92 | void reg (xevent_watcher *w); |
95 | void reg (xevent_watcher *w); |
93 | void unreg (xevent_watcher *w); |
96 | void unreg (xevent_watcher *w); |
94 | |
97 | |
… | |
… | |
97 | void unreg (im_watcher *w); |
100 | void unreg (im_watcher *w); |
98 | |
101 | |
99 | rxvt_xim *get_xim (const char *locale, const char *modifiers); |
102 | rxvt_xim *get_xim (const char *locale, const char *modifiers); |
100 | void put_xim (rxvt_xim *xim); |
103 | void put_xim (rxvt_xim *xim); |
101 | #endif |
104 | #endif |
102 | |
|
|
103 | Atom atom (const char *name); |
|
|
104 | }; |
105 | }; |
105 | |
106 | |
106 | #ifdef USE_XIM |
107 | #ifdef USE_XIM |
107 | struct im_watcher : watcher, callback0<void> { |
108 | struct im_watcher : watcher, callback0<void> { |
108 | template<class O1, class O2> |
109 | template<class O1, class O2> |