• 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

修訂9a957d2adf34b7056c70b471fa28f4df3eaa6452 (tree)
時間2010-11-17 21:56:26
作者Michal Maruska <mmaruska@gmai...>
CommiterMichal Maruska

Log Message

comments selection.c

Change Summary

差異

--- a/src/selection.c
+++ b/src/selection.c
@@ -47,6 +47,7 @@ available for reading.
4747 Atom selection;
4848 rep_DECLARE1 (sel, rep_SYMBOLP);
4949 selection = symbol_to_atom (sel);
50+ /* if the atom doesn't exist, the selection is not active anyway! */
5051 return (XGetSelectionOwner (dpy, selection) != None) ? Qt : Qnil;
5152 }
5253
@@ -72,13 +73,15 @@ If the selection currently has no value, nil is returned.
7273 Window owner;
7374 rep_DECLARE1 (sel, rep_SYMBOLP);
7475 selection = symbol_to_atom (sel);
75- owner = XGetSelectionOwner (dpy, selection);
76+ owner = XGetSelectionOwner (dpy, selection); /* fixme: this is equal to -active-p !! */
7677 if (owner != None)
7778 {
7879 XEvent ev;
7980 Window sel_window = no_focus_window;
8081 XConvertSelection (dpy, selection, XA_STRING,
8182 sawfish_selection, sel_window, last_event_time);
83+ /* XConvertSelection can generate BadAtom and BadWindow errors */
84+ /* What if the owner disconnects, shall we receive SelectionClear? */
8285 XIfEvent (dpy, &ev, selnotify_pred, (XPointer) 0);
8386 if (ev.xselection.property != None)
8487 {