Japanese translation of message catalog for Sawfish Window-Manager
修訂 | 1fe5b1a69b6d9512243cf69d748b1e87eb17a48d (tree) |
---|---|
時間 | 1999-08-21 01:55:54 |
作者 | john <john> |
Commiter | john |
(frame_part_destroyer): don't try to delete parts without windows
@@ -317,8 +317,11 @@ frame_part_destroyer (Lisp_Window *w) | ||
317 | 317 | if (fp->gc) |
318 | 318 | XFreeGC (dpy, fp->gc); |
319 | 319 | |
320 | - XDeleteContext (dpy, fp->id, window_fp_context); | |
321 | - XDestroyWindow (dpy, fp->id); | |
320 | + if (fp->id != 0) | |
321 | + { | |
322 | + XDeleteContext (dpy, fp->id, window_fp_context); | |
323 | + XDestroyWindow (dpy, fp->id); | |
324 | + } | |
322 | 325 | |
323 | 326 | next = fp->next; |
324 | 327 | rep_free (fp); |
@@ -802,6 +805,8 @@ void | ||
802 | 805 | create_window_frame (Lisp_Window *w) |
803 | 806 | { |
804 | 807 | DB(("create_window_frame (%s)\n", w->name)); |
808 | + if (w->frame != 0) | |
809 | + destroy_window_frame (w); | |
805 | 810 | w->destroy_frame = 0; |
806 | 811 | w->focus_change = 0; |
807 | 812 | w->rebuild_frame = 0; |