Mercurial > kinput2.yaz
comparison lib/OverConv.c @ 4:5b1d5c19f325
imported patch 06_kinput2-v3.1-wm_delete_window.patch
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 08 Mar 2010 20:07:06 +0900 |
parents | e55ccba56891 |
children |
comparison
equal
deleted
inserted
replaced
3:e55ccba56891 | 4:5b1d5c19f325 |
---|---|
1277 SelectionStart(ocw, kind) | 1277 SelectionStart(ocw, kind) |
1278 OverTheSpotConversionWidget ocw; | 1278 OverTheSpotConversionWidget ocw; |
1279 int kind; | 1279 int kind; |
1280 { | 1280 { |
1281 Cardinal ncand; | 1281 Cardinal ncand; |
1282 Atom wm_state, atom; | 1282 Atom wm_state, atom, protocols[1]; |
1283 unsigned long data[2]; | 1283 unsigned long data[2]; |
1284 Display *dpy; | 1284 Display *dpy; |
1285 | 1285 |
1286 TRACE(("OverTheSpotConversion:SelectionStart()\n")); | 1286 TRACE(("OverTheSpotConversion:SelectionStart()\n")); |
1287 if (ocw->overthespot.selectionpoppedup) { | 1287 if (ocw->overthespot.selectionpoppedup) { |
1306 dpy = XtDisplay ((Widget) ocw); | 1306 dpy = XtDisplay ((Widget) ocw); |
1307 wm_state = CachedInternAtom (dpy, "_NET_WM_STATE", True); | 1307 wm_state = CachedInternAtom (dpy, "_NET_WM_STATE", True); |
1308 atom = CachedInternAtom (dpy, "_NET_WM_STATE_ABOVE", True); | 1308 atom = CachedInternAtom (dpy, "_NET_WM_STATE_ABOVE", True); |
1309 data[0] = atom; | 1309 data[0] = atom; |
1310 XChangeProperty (dpy, XtWindow (ocw->overthespot.selectionshell), wm_state, XA_ATOM, 32, PropModeAppend, data, 1); | 1310 XChangeProperty (dpy, XtWindow (ocw->overthespot.selectionshell), wm_state, XA_ATOM, 32, PropModeAppend, data, 1); |
1311 protocols[0] = CachedInternAtom (dpy, "WM_DELETE_WINDOW", True); | |
1312 XSetWMProtocols (dpy, XtWindow (ocw->overthespot.selectionshell), protocols, 1); | |
1311 } | 1313 } |
1312 | 1314 |
1313 /*- locateSelectionPopup: put selection popup at an appropriate position -*/ | 1315 /*- locateSelectionPopup: put selection popup at an appropriate position -*/ |
1314 static void | 1316 static void |
1315 locateSelectionPopup(ocw) | 1317 locateSelectionPopup(ocw) |