… | |
… | |
181 | "MULTIPLE", |
181 | "MULTIPLE", |
182 | "TARGETS", |
182 | "TARGETS", |
183 | "TIMESTAMP", |
183 | "TIMESTAMP", |
184 | "VT_SELECTION", |
184 | "VT_SELECTION", |
185 | "INCR", |
185 | "INCR", |
|
|
186 | "WM_PROTOCOLS", |
186 | "WM_DELETE_WINDOW", |
187 | "WM_DELETE_WINDOW", |
187 | "CLIPBOARD", |
188 | "CLIPBOARD", |
188 | #if ENABLE_FRILLS |
189 | #if ENABLE_FRILLS |
189 | "_NET_WM_PID", |
190 | "_NET_WM_PID", |
190 | "_MOTIF_WM_HINTS", |
191 | "_MOTIF_WM_HINTS", |
… | |
… | |
199 | "ESETROOT_PMAP_ID", |
200 | "ESETROOT_PMAP_ID", |
200 | #endif |
201 | #endif |
201 | #ifdef OFFIX_DND |
202 | #ifdef OFFIX_DND |
202 | "DndProtocol", |
203 | "DndProtocol", |
203 | "DndSelection", |
204 | "DndSelection", |
|
|
205 | #endif |
|
|
206 | #if ENABLE_XEMBED |
|
|
207 | "_XEMBED", |
204 | #endif |
208 | #endif |
205 | }; |
209 | }; |
206 | |
210 | |
207 | bool |
211 | bool |
208 | rxvt_term::init_vars () |
212 | rxvt_term::init_vars () |
… | |
… | |
973 | Get_Colours (); |
977 | Get_Colours (); |
974 | |
978 | |
975 | if (!set_fonts ()) |
979 | if (!set_fonts ()) |
976 | rxvt_fatal ("unable to load base fontset, please specify a valid one using -fn, aborting.\n"); |
980 | rxvt_fatal ("unable to load base fontset, please specify a valid one using -fn, aborting.\n"); |
977 | |
981 | |
978 | #if ENABLE_FRILLS |
982 | #if ENABLE_XEMBED |
979 | if (rs[Rs_embed]) |
983 | if (rs[Rs_embed]) |
980 | { |
984 | { |
981 | XWindowAttributes wattr; |
985 | XWindowAttributes wattr; |
982 | |
986 | |
983 | top = strtol (rs[Rs_embed], 0, 0); |
987 | top = strtol (rs[Rs_embed], 0, 0); |
… | |
… | |
1011 | #ifdef PREFER_24BIT |
1015 | #ifdef PREFER_24BIT |
1012 | attributes.background_pixel = pix_colors_focused[Color_border]; |
1016 | attributes.background_pixel = pix_colors_focused[Color_border]; |
1013 | attributes.border_pixel = pix_colors_focused[Color_border]; |
1017 | attributes.border_pixel = pix_colors_focused[Color_border]; |
1014 | attributes.colormap = display->cmap; |
1018 | attributes.colormap = display->cmap; |
1015 | top = XCreateWindow (disp, DefaultRootWindow (disp), |
1019 | top = XCreateWindow (disp, DefaultRootWindow (disp), |
1016 | szHint.x, szHint.y, |
1020 | szHint.x, szHint.y, |
1017 | szHint.width, szHint.height, |
1021 | szHint.width, szHint.height, |
1018 | TermWin.ext_bwidth, |
1022 | TermWin.ext_bwidth, |
1019 | display->depth, InputOutput, |
1023 | display->depth, InputOutput, |
1020 | display->visual, |
1024 | display->visual, |
1021 | CWColormap | CWBackPixel | CWBorderPixel, &attributes); |
1025 | CWColormap | CWBackPixel | CWBorderPixel, &attributes); |
1022 | #else |
1026 | #else |
1023 | top = XCreateSimpleWindow (disp, DefaultRootWindow (disp), |
1027 | top = XCreateSimpleWindow (disp, DefaultRootWindow (disp), |
1024 | szHint.x, szHint.y, |
1028 | szHint.x, szHint.y, |
1025 | szHint.width, szHint.height, |
1029 | szHint.width, szHint.height, |
1026 | TermWin.ext_bwidth, |
1030 | TermWin.ext_bwidth, |
1027 | pix_colors_focused[Color_border], |
1031 | pix_colors_focused[Color_border], |
1028 | pix_colors_focused[Color_border]); |
1032 | pix_colors_focused[Color_border]); |
1029 | #endif |
1033 | #endif |
1030 | } |
1034 | } |
1031 | |
1035 | |
1032 | TermWin.parent[0] = top; |
1036 | TermWin.parent[0] = top; |
1033 | |
1037 | |
… | |
… | |
1047 | |
1051 | |
1048 | XSetWMProperties (disp, top, NULL, NULL, |
1052 | XSetWMProperties (disp, top, NULL, NULL, |
1049 | (char **)argv, argc, &szHint, &wmHint, &classHint); |
1053 | (char **)argv, argc, &szHint, &wmHint, &classHint); |
1050 | |
1054 | |
1051 | /* Enable delete window protocol */ |
1055 | /* Enable delete window protocol */ |
1052 | XSetWMProtocols (disp, top, &xa[XA_WMDELETEWINDOW], 1); |
1056 | XSetWMProtocols (disp, top, &xa[XA_WM_DELETE_WINDOW], 1); |
1053 | |
1057 | |
1054 | #if ENABLE_FRILLS |
1058 | #if ENABLE_FRILLS |
1055 | long pid = getpid (); |
1059 | long pid = getpid (); |
1056 | |
1060 | |
1057 | XChangeProperty (disp, top, |
1061 | XChangeProperty (disp, top, |
… | |
… | |
1063 | KeyPressMask |
1067 | KeyPressMask |
1064 | #if (MOUSE_WHEEL && MOUSE_SLIP_WHEELING) || ENABLE_FRILLS || ISO_14755 |
1068 | #if (MOUSE_WHEEL && MOUSE_SLIP_WHEELING) || ENABLE_FRILLS || ISO_14755 |
1065 | | KeyReleaseMask |
1069 | | KeyReleaseMask |
1066 | #endif |
1070 | #endif |
1067 | | FocusChangeMask | VisibilityChangeMask |
1071 | | FocusChangeMask | VisibilityChangeMask |
1068 | | ExposureMask |
|
|
1069 | | StructureNotifyMask); |
1072 | | ExposureMask | StructureNotifyMask); |
|
|
1073 | |
1070 | termwin_ev.start (display, top); |
1074 | termwin_ev.start (display, top); |
1071 | |
1075 | |
1072 | #if ENABLE_FRILLS |
1076 | #if ENABLE_FRILLS |
1073 | if (mwmhints.flags) |
1077 | if (mwmhints.flags) |
1074 | XChangeProperty (disp, top, xa[XA_MOTIF_WM_HINTS], xa[XA_MOTIF_WM_HINTS], 32, |
1078 | XChangeProperty (disp, top, xa[XA_MOTIF_WM_HINTS], xa[XA_MOTIF_WM_HINTS], 32, |