• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

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

修订版9a87464104b205469b86a17e5968913f1c45e715 (tree)
时间2010-11-17 21:57:16
作者Michal Maruska <mmaruska@gmai...>
CommiterMichal Maruska

Log Message

unmap_notify: run Qframe_unmap_notify_hook

更改概述

差异

--- a/src/events.c
+++ b/src/events.c
@@ -82,6 +82,7 @@ DEFSYM(visibility_notify_hook, "visibility-notify-hook");
8282 DEFSYM(destroy_notify_hook, "destroy-notify-hook");
8383 DEFSYM(map_notify_hook, "map-notify-hook");
8484 DEFSYM(unmap_notify_hook, "unmap-notify-hook");
85+DEFSYM(frame_unmap_notify_hook, "frame-unmap-notify-hook");
8586 DEFSYM(reparent_notify_hook, "reparent-notify-hook");
8687 DEFSYM(property_notify_hook, "property-notify-hook");
8788 DEFSYM(enter_notify_hook, "enter-notify-hook");
@@ -910,6 +911,20 @@ unmap_notify (XEvent *ev)
910911 to reuse the window. */
911912 XDeleteProperty (dpy, ev->xunmap.window, xa_wm_state);
912913 }
914+ else if ((w = find_window_by_frame (ev->xunmap.window)))
915+ {
916+ if (ev->xunmap.event == root_window) /* why: to not act twice!*/
917+ Fcall_window_hook (Qframe_unmap_notify_hook, rep_VAL(w), Qnil, Qnil);
918+ }
919+ else if ((w = find_window_by_frame_part (ev->xunmap.window)))
920+ {
921+ /* a frame part unmapped */
922+ }
923+ else
924+ {
925+ /* maybe the lisp structure --- pointers from a lisp window to X windows
926+ * /frame parts ---was already destroyed */
927+ }
913928 }
914929
915930 static inline repv
@@ -1853,6 +1868,7 @@ events_init (void)
18531868 rep_INTERN_SPECIAL(destroy_notify_hook);
18541869 rep_INTERN_SPECIAL(map_notify_hook);
18551870 rep_INTERN_SPECIAL(unmap_notify_hook);
1871+ rep_INTERN_SPECIAL(frame_unmap_notify_hook);
18561872 rep_INTERN_SPECIAL(reparent_notify_hook);
18571873 rep_INTERN_SPECIAL(property_notify_hook);
18581874 rep_INTERN_SPECIAL(enter_notify_hook);