comparison lib/OverConv.c @ 18:07a41a882b14

imported patch 21_kinput2-v3.1-rootwindow-1.patch
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 08 Mar 2010 20:38:17 +0900
parents 92745d501b9a
children 55ed5c42c22f
comparison
equal deleted inserted replaced
17:688ac5040e7d 18:07a41a882b14
34 #include "CanvasShel.h" 34 #include "CanvasShel.h"
35 #include "ICLabel.h" 35 #include "ICLabel.h"
36 36
37 #define DEBUG_VAR debug_OverTheSpotConversion 37 #define DEBUG_VAR debug_OverTheSpotConversion
38 #include "DebugPrint.h" 38 #include "DebugPrint.h"
39
40 #define CloseWindowProtection(w) \
41 {\
42 Atom protocols;\
43 protocols = XInternAtom(XtDisplay(w), "WM_DELETE_WINDOW", False);\
44 XSetWMProtocols(XtDisplay(w), XtWindow(w), &protocols, 1);\
45 }
39 46
40 typedef enum { NeedNone, NeedRedraw, NeedReconfig } ResetStatus; 47 typedef enum { NeedNone, NeedRedraw, NeedReconfig } ResetStatus;
41 48
42 /*- resource table -*/ 49 /*- resource table -*/
43 static XtResource resources[] = { 50 static XtResource resources[] = {
1293 ocw->overthespot.candlist, 1300 ocw->overthespot.candlist,
1294 ocw->overthespot.numcands, 0, True); 1301 ocw->overthespot.numcands, 0, True);
1295 1302
1296 locateSelectionPopup(ocw); 1303 locateSelectionPopup(ocw);
1297 XtPopup(ocw->overthespot.selectionshell, XtGrabNone); 1304 XtPopup(ocw->overthespot.selectionshell, XtGrabNone);
1305 CloseWindowProtection(ocw->overthespot.selectionshell);
1298 ocw->overthespot.selectionpoppedup = True; 1306 ocw->overthespot.selectionpoppedup = True;
1299 } 1307 }
1300 1308
1301 /*- locateSelectionPopup: put selection popup at an appropriate position -*/ 1309 /*- locateSelectionPopup: put selection popup at an appropriate position -*/
1302 static void 1310 static void
1502 1510
1503 /* ポップウ髟阡札奪廚垢襴苳詞所を決める */ 1511 /* ポップウ髟阡札奪廚垢襴苳詞所を決める */
1504 locateAuxPopup(ocw, False); 1512 locateAuxPopup(ocw, False);
1505 1513
1506 XtPopup(ocw->overthespot.auxshell, XtGrabNone); 1514 XtPopup(ocw->overthespot.auxshell, XtGrabNone);
1515 CloseWindowProtection(ocw->overthespot.auxshell)
1507 ocw->overthespot.auxpoppedup = True; 1516 ocw->overthespot.auxpoppedup = True;
1508 } 1517 }
1509 1518
1510 /* ARGSUSED */ 1519 /* ARGSUSED */
1511 static void 1520 static void