summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJihoon Kim <imfine98@gmail.com>2012-12-09 12:34:10 +0000
committerJihoon Kim <imfine98@gmail.com>2012-12-09 12:34:10 +0000
commite13743279f65e4a206dd891ba64a3f38d61cc751 (patch)
tree1b10b53a80b74fe65edf7eae9781d42ea64cb402
parent717f492b1a62549c9c72de14a51c33454bbd3aae (diff)
scim-immodule: use ecore_x_display_get instead of XOpenDisplay
SVN revision: 80548
Diffstat (limited to '')
-rw-r--r--src/modules/ecore/immodules/scim/scim_imcontext.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/ecore/immodules/scim/scim_imcontext.cpp b/src/modules/ecore/immodules/scim/scim_imcontext.cpp
index b8d0ea0d65..3369f1c68a 100644
--- a/src/modules/ecore/immodules/scim/scim_imcontext.cpp
+++ b/src/modules/ecore/immodules/scim/scim_imcontext.cpp
@@ -2416,10 +2416,10 @@ static void _x_send_key_event(const KeyEvent &key)
2416 SCIM_DEBUG_FRONTEND(1) << __FUNCTION__ << "...\n"; 2416 SCIM_DEBUG_FRONTEND(1) << __FUNCTION__ << "...\n";
2417 2417
2418 // Obtain the X11 display. 2418 // Obtain the X11 display.
2419 Display *display = XOpenDisplay(NULL); 2419 Display *display = (Display *)ecore_x_display_get();
2420 if (display == NULL) 2420 if (display == NULL)
2421 { 2421 {
2422 std::cerr << "XOpenDisplay failed\n"; 2422 std::cerr << "ecore_x_display_get() failed\n";
2423 return; 2423 return;
2424 } 2424 }
2425 2425
@@ -2448,8 +2448,6 @@ static void _x_send_key_event(const KeyEvent &key)
2448 event = createKeyEvent(display, winFocus, winRoot, false, key.code, modifier); 2448 event = createKeyEvent(display, winFocus, winRoot, false, key.code, modifier);
2449 XSendEvent(event.display, event.window, True, KeyReleaseMask, (XEvent *)&event); 2449 XSendEvent(event.display, event.window, True, KeyReleaseMask, (XEvent *)&event);
2450 } 2450 }
2451
2452 XCloseDisplay(display);
2453} 2451}
2454 2452
2455static void 2453static void