diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-02-21 17:14:37 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-02-21 17:14:37 +0100 |
commit | 75c9f58900283b551efe60891a7e3fb218852eb3 (patch) | |
tree | 5865a8655cf06a549c5fcb5fda4adc06f839d8f9 /source | |
parent | 3be6079705667db001d85115a541186957607c3b (diff) |
Remove XIC and XIM.
Diffstat (limited to 'source')
-rw-r--r-- | source/view.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/source/view.c b/source/view.c index 1b96c14e..66ad22b4 100644 --- a/source/view.c +++ b/source/view.c @@ -42,7 +42,6 @@ #include <X11/Xutil.h> #include <X11/Xproto.h> #include <X11/keysym.h> -#include <X11/XKBlib.h> #include <sys/wait.h> #include <sys/types.h> @@ -79,8 +78,6 @@ Window main_window = None; cairo_surface_t *surface = NULL; cairo_surface_t *fake_bg = NULL; cairo_t *draw = NULL; -XIM xim; -XIC xic; Colormap map = None; XVisualInfo vinfo; @@ -552,10 +549,6 @@ static Window __create_window ( Display *display, MenuFlags menu_flags ) window_set_atom_prop ( display, box, netatoms[_NET_WM_STATE], atoms, sizeof ( atoms ) / sizeof ( Atom ) ); } - xim = XOpenIM ( display, NULL, NULL, NULL ); - xic = XCreateIC ( xim, XNInputStyle, XIMPreeditNothing | XIMStatusNothing, XNClientWindow, - box, XNFocusWindow, box, NULL ); - // Set the WM_NAME XStoreName ( display, box, "rofi" ); @@ -1751,8 +1744,6 @@ void rofi_view_cleanup () XUnmapWindow ( display, main_window ); XDestroyWindow ( display, main_window ); main_window = None; - XDestroyIC ( xic ); - XCloseIM ( xim ); } if ( map != None ) { |