• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
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

Revision26265801d4e9162c628e9ed78a294e590c7659db (tree)
Time1999-08-21 19:02:58
Authorjohn <john>
Commiterjohn

Log Message

(x_atom_symbol, x_win_from_arg): new functions

Change Summary

Incremental Difference

--- a/src/display.c
+++ b/src/display.c
@@ -211,6 +211,33 @@ sys_kill (void)
211211
212212 /* utilities */
213213
214+repv
215+x_atom_symbol (Atom atom)
216+{
217+ char *name = XGetAtomName (dpy, atom);
218+ if (name != 0)
219+ {
220+ repv sym = Fintern (rep_string_dup (name), rep_obarray);
221+ XFree (name);
222+ return sym;
223+ }
224+ else
225+ return Qnil;
226+}
227+
228+Window
229+x_win_from_arg (repv arg)
230+{
231+ if (arg == Qroot)
232+ return root_window;
233+ else if (WINDOWP(arg))
234+ return VWIN(arg)->id;
235+ else if (rep_INTP(arg))
236+ return rep_INT(arg);
237+ else
238+ return 0;
239+}
240+
214241 /***************************************************************************
215242 *
216243 * ICCCM Client Messages - Section 4.2.8 of the ICCCM dictates that all