Revisão | 2e3fdd2c17d1336456063450baa48298dae28c5b (tree) |
---|---|
Hora | 2020-08-28 06:20:45 |
Autor | SHIRAKATA Kentaro <argrath@ub32...> |
Commiter | SHIRAKATA Kentaro |
fix #40562
@@ -1,3 +1,6 @@ | ||
1 | + * 次の問題を修正 | |
2 | + * X11環境で日本語入力ができない (#40562) | |
3 | + | |
1 | 4 | Sat Apr 18 2020 Kentaro Shirakata <argrath@ub32.org> |
2 | 5 | |
3 | 6 | * NetHack-3.6.6ベース JNetHackテストリリース(3.6.6-0.1) |
@@ -1985,9 +1985,11 @@ char *input; | ||
1985 | 1985 | getline_dialog = CreateDialog(getline_popup, nhStr("dialog"), |
1986 | 1986 | done_button, abort_button); |
1987 | 1987 | |
1988 | +#if 0 /*JP*//*文字列設定の後ろに回す*/ | |
1988 | 1989 | XtRealizeWidget(getline_popup); |
1989 | 1990 | XSetWMProtocols(XtDisplay(getline_popup), XtWindow(getline_popup), |
1990 | 1991 | &wm_delete_window, 1); |
1992 | +#endif | |
1991 | 1993 | } |
1992 | 1994 | SetDialogPrompt(getline_dialog, (String) question); /* set prompt */ |
1993 | 1995 | /* 60: make the answer widget be wide enough to hold 60 characters, |
@@ -2001,12 +2003,21 @@ char *input; | ||
2001 | 2003 | #else |
2002 | 2004 | SetDialogResponse(getline_dialog, nhStr(""), 60); /* set default answer */ |
2003 | 2005 | #endif |
2006 | +#if 1 /*JP*//*文字列設定の後ろに回す*/ | |
2007 | + XtRealizeWidget(getline_popup); | |
2008 | + XSetWMProtocols(XtDisplay(getline_popup), XtWindow(getline_popup), | |
2009 | + &wm_delete_window, 1); | |
2010 | +#endif | |
2004 | 2011 | positionpopup(getline_popup, TRUE); /* center,bottom */ |
2005 | 2012 | |
2006 | 2013 | nh_XtPopup(getline_popup, (int) XtGrabExclusive, getline_dialog); |
2007 | 2014 | |
2008 | 2015 | /* The callback will enable the event loop exit. */ |
2009 | 2016 | (void) x_event(EXIT_ON_EXIT); |
2017 | + | |
2018 | +#if 1 /*JP*//*毎回破棄する*/ | |
2019 | + release_getline_widgets(); | |
2020 | +#endif | |
2010 | 2021 | } |
2011 | 2022 | |
2012 | 2023 | /* Display file ----------------------------------------------------------- */ |