• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Japanese translation of message catalog for Sawfish Window-Manager


Commit MetaInfo

修訂1fe5b1a69b6d9512243cf69d748b1e87eb17a48d (tree)
時間1999-08-21 01:55:54
作者john <john>
Commiterjohn

Log Message

(frame_part_destroyer): don't try to delete parts without windows

Change Summary

差異

--- a/src/frames.c
+++ b/src/frames.c
@@ -317,8 +317,11 @@ frame_part_destroyer (Lisp_Window *w)
317317 if (fp->gc)
318318 XFreeGC (dpy, fp->gc);
319319
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+ }
322325
323326 next = fp->next;
324327 rep_free (fp);
@@ -802,6 +805,8 @@ void
802805 create_window_frame (Lisp_Window *w)
803806 {
804807 DB(("create_window_frame (%s)\n", w->name));
808+ if (w->frame != 0)
809+ destroy_window_frame (w);
805810 w->destroy_frame = 0;
806811 w->focus_change = 0;
807812 w->rebuild_frame = 0;