… | |
… | |
252 | //if (menuBar.win) |
252 | //if (menuBar.win) |
253 | // XDestroyWindow (disp, menuBar.win); |
253 | // XDestroyWindow (disp, menuBar.win); |
254 | #endif |
254 | #endif |
255 | delete TermWin.drawable; |
255 | delete TermWin.drawable; |
256 | // destroy all windows |
256 | // destroy all windows |
257 | if (TermWin.parent[0] |
257 | if (TermWin.parent[0]) |
258 | #if ENABLE_FRILLS |
|
|
259 | && !rs[Rs_embed] |
|
|
260 | #endif |
|
|
261 | ) |
|
|
262 | XDestroyWindow (disp, TermWin.parent[0]); |
258 | XDestroyWindow (disp, TermWin.parent[0]); |
263 | } |
259 | } |
264 | |
260 | |
265 | // TODO: free pixcolours, colours should become part of rxvt_display |
261 | // TODO: free pixcolours, colours should become part of rxvt_display |
266 | |
262 | |
… | |
… | |
845 | (void)ioctl (pty.pty, TIOCSWINSZ, &ws); |
841 | (void)ioctl (pty.pty, TIOCSWINSZ, &ws); |
846 | |
842 | |
847 | #if 0 |
843 | #if 0 |
848 | // TIOCSWINSZ⎈ is supposed to do this automatically and correctly |
844 | // TIOCSWINSZ⎈ is supposed to do this automatically and correctly |
849 | if (cmd_pid) /* force through to the command */ |
845 | if (cmd_pid) /* force through to the command */ |
850 | kill (cmd_pid, SIGWINCH); |
846 | kill (-cmd_pid, SIGWINCH); |
851 | #endif |
847 | #endif |
852 | } |
848 | } |
853 | |
849 | |
854 | /*----------------------------------------------------------------------*/ |
850 | /*----------------------------------------------------------------------*/ |
855 | /* set_fonts () - load and set the various fonts |
851 | /* set_fonts () - load and set the various fonts |
… | |
… | |
959 | /* xterm sequences - title, iconName, color (exptl) */ |
955 | /* xterm sequences - title, iconName, color (exptl) */ |
960 | void |
956 | void |
961 | rxvt_term::set_title (const char *str) |
957 | rxvt_term::set_title (const char *str) |
962 | { |
958 | { |
963 | set_string_property (XA_WM_NAME, str); |
959 | set_string_property (XA_WM_NAME, str); |
964 | #if ENABLE_FRILLS |
960 | #if ENABLE_EWMH |
965 | set_utf8_property (xa[XA_NET_WM_NAME], str); |
961 | set_utf8_property (xa[XA_NET_WM_NAME], str); |
966 | #endif |
962 | #endif |
967 | } |
963 | } |
968 | |
964 | |
969 | void |
965 | void |
970 | rxvt_term::set_icon_name (const char *str) |
966 | rxvt_term::set_icon_name (const char *str) |
971 | { |
967 | { |
972 | set_string_property (XA_WM_ICON_NAME, str); |
968 | set_string_property (XA_WM_ICON_NAME, str); |
973 | #if ENABLE_FRILLS |
969 | #if ENABLE_EWMH |
974 | set_utf8_property (xa[XA_NET_WM_ICON_NAME], str); |
970 | set_utf8_property (xa[XA_NET_WM_ICON_NAME], str); |
975 | #endif |
971 | #endif |
976 | } |
972 | } |
977 | |
973 | |
978 | #ifdef XTERM_COLOR_CHANGE |
974 | #ifdef XTERM_COLOR_CHANGE |
… | |
… | |
1250 | XWindowAttributes wattr; |
1246 | XWindowAttributes wattr; |
1251 | |
1247 | |
1252 | if (width == 0 || height == 0) |
1248 | if (width == 0 || height == 0) |
1253 | { |
1249 | { |
1254 | XGetWindowAttributes (display->display, display->root, &wattr); |
1250 | XGetWindowAttributes (display->display, display->root, &wattr); |
|
|
1251 | |
1255 | if (width == 0) |
1252 | if (width == 0) |
1256 | width = wattr.width - szHint.base_width; |
1253 | width = wattr.width - szHint.base_width; |
1257 | if (height == 0) |
1254 | if (height == 0) |
1258 | height = wattr.height - szHint.base_height; |
1255 | height = wattr.height - szHint.base_height; |
1259 | } |
1256 | } |