… | |
… | |
1032 | #endif |
1032 | #endif |
1033 | }; |
1033 | }; |
1034 | |
1034 | |
1035 | XSetWMProtocols (disp, top, protocols, sizeof (protocols) / sizeof (protocols[0])); |
1035 | XSetWMProtocols (disp, top, protocols, sizeof (protocols) / sizeof (protocols[0])); |
1036 | |
1036 | |
|
|
1037 | #if ENABLE_FRILLS |
|
|
1038 | if (rs[Rs_transient_for]) |
|
|
1039 | XSetTransientForHint (disp, top, (Window)strtol (rs[Rs_transient_for], 0, 0)); |
|
|
1040 | #endif |
|
|
1041 | |
1037 | #if ENABLE_EWMH |
1042 | #if ENABLE_EWMH |
1038 | long pid = getpid (); |
1043 | long pid = getpid (); |
1039 | |
1044 | |
1040 | XChangeProperty (disp, top, |
1045 | XChangeProperty (disp, top, |
1041 | xa[XA_NET_WM_PID], XA_CARDINAL, 32, |
1046 | xa[XA_NET_WM_PID], XA_CARDINAL, 32, |
… | |
… | |
1084 | attributes.bit_gravity = NorthWestGravity; |
1089 | attributes.bit_gravity = NorthWestGravity; |
1085 | XChangeWindowAttributes (disp, vt, CWBitGravity, &attributes); |
1090 | XChangeWindowAttributes (disp, vt, CWBitGravity, &attributes); |
1086 | |
1091 | |
1087 | vt_emask = ExposureMask | ButtonPressMask | ButtonReleaseMask | PropertyChangeMask; |
1092 | vt_emask = ExposureMask | ButtonPressMask | ButtonReleaseMask | PropertyChangeMask; |
1088 | |
1093 | |
1089 | #ifdef POINTER_BLANK |
|
|
1090 | if (OPTION (Opt_pointerBlank)) |
1094 | if (OPTION (Opt_pointerBlank) |
|
|
1095 | #ifdef ENABLE_PERL |
|
|
1096 | || self |
|
|
1097 | #endif |
|
|
1098 | ) |
1091 | vt_emask |= PointerMotionMask; |
1099 | vt_emask |= PointerMotionMask; |
1092 | else |
1100 | else |
1093 | #endif |
|
|
1094 | vt_emask |= Button1MotionMask | Button3MotionMask; |
1101 | vt_emask |= Button1MotionMask | Button3MotionMask; |
1095 | |
1102 | |
1096 | XSelectInput (disp, vt, vt_emask); |
1103 | XSelectInput (disp, vt, vt_emask); |
1097 | vt_ev.start (display, vt); |
1104 | vt_ev.start (display, vt); |
1098 | |
1105 | |