… | |
… | |
211 | bgPixmap.h_align = bgPixmap.v_align = 0; |
211 | bgPixmap.h_align = bgPixmap.v_align = 0; |
212 | #endif |
212 | #endif |
213 | bgPixmap.flags = 0; |
213 | bgPixmap.flags = 0; |
214 | bgPixmap.pixmap = None; |
214 | bgPixmap.pixmap = None; |
215 | #endif |
215 | #endif |
216 | |
|
|
217 | last_bot = last_state = -1; |
216 | last_bot = last_state = -1; |
218 | |
217 | |
219 | set_option (Opt_scrollBar); |
218 | set_option (Opt_scrollBar); |
220 | set_option (Opt_scrollTtyOutput); |
219 | set_option (Opt_scrollTtyOutput); |
221 | set_option (Opt_jumpScroll); |
220 | set_option (Opt_jumpScroll); |
… | |
… | |
909 | #if ENABLE_FRILLS |
908 | #if ENABLE_FRILLS |
910 | if (option (Opt_borderLess)) |
909 | if (option (Opt_borderLess)) |
911 | { |
910 | { |
912 | if (XInternAtom (dpy, "_MOTIF_WM_INFO", True) == None) |
911 | if (XInternAtom (dpy, "_MOTIF_WM_INFO", True) == None) |
913 | { |
912 | { |
914 | /* print_warning("Window Manager does not support MWM hints. Bypassing window manager control for borderless window.\n");*/ |
913 | // rxvt_warn("Window Manager does not support MWM hints. Bypassing window manager control for borderless window.\n"); |
915 | attributes.override_redirect = true; |
914 | attributes.override_redirect = true; |
916 | mwmhints.flags = 0; |
|
|
917 | } |
915 | } |
918 | else |
916 | else |
919 | { |
917 | { |
920 | mwmhints.flags = MWM_HINTS_DECORATIONS; |
918 | mwmhints.flags = MWM_HINTS_DECORATIONS; |
921 | mwmhints.decorations = 0; |
|
|
922 | } |
919 | } |
923 | } |
920 | } |
924 | else |
|
|
925 | mwmhints.flags = 0; |
|
|
926 | #endif |
921 | #endif |
927 | |
922 | |
928 | #if ENABLE_XEMBED |
923 | #if ENABLE_XEMBED |
929 | if (rs[Rs_embed]) |
924 | if (rs[Rs_embed]) |
930 | { |
925 | { |
… | |
… | |
1040 | vt_emask |= Button1MotionMask | Button3MotionMask; |
1035 | vt_emask |= Button1MotionMask | Button3MotionMask; |
1041 | |
1036 | |
1042 | vt_select_input (); |
1037 | vt_select_input (); |
1043 | |
1038 | |
1044 | vt_ev.start (display, vt); |
1039 | vt_ev.start (display, vt); |
1045 | |
|
|
1046 | #ifdef XPM_BACKGROUND |
|
|
1047 | if (rs[Rs_backgroundPixmap] != NULL) |
|
|
1048 | { |
|
|
1049 | const char *p = rs[Rs_backgroundPixmap]; |
|
|
1050 | |
|
|
1051 | if ((p = strchr (p, ';')) != NULL) |
|
|
1052 | { |
|
|
1053 | p++; |
|
|
1054 | bgPixmap.handle_geometry (p); |
|
|
1055 | } |
|
|
1056 | else |
|
|
1057 | bgPixmap.set_defaultGeometry (); |
|
|
1058 | |
|
|
1059 | set_bgPixmap (rs[Rs_backgroundPixmap]); |
|
|
1060 | scr_touch (true); |
|
|
1061 | } |
|
|
1062 | #endif |
|
|
1063 | |
1040 | |
1064 | /* graphics context for the vt window */ |
1041 | /* graphics context for the vt window */ |
1065 | gcvalue.foreground = pix_colors[Color_fg]; |
1042 | gcvalue.foreground = pix_colors[Color_fg]; |
1066 | gcvalue.background = pix_colors[Color_bg]; |
1043 | gcvalue.background = pix_colors[Color_bg]; |
1067 | gcvalue.graphics_exposures = 0; |
1044 | gcvalue.graphics_exposures = 0; |