]> Dogcows Code - chaz/openbox/blobdiff - openbox/prompt.c
make obt translate keypress events to a valid utf8 character (note this makes openbox...
[chaz/openbox] / openbox / prompt.c
index 73536152ac687c21de05418d359f746ff16ca40e..9fd56773a726ee3d04205f1fae0498bede663e09 100644 (file)
@@ -166,6 +166,8 @@ ObPrompt* prompt_new(const gchar *msg, const gchar *title,
                                        CopyFromParent,
                                        CWOverrideRedirect,
                                        &attrib);
+    self->ic = obt_keyboard_context_new(self->super.window,
+                                        self->super.window);
 
     /* make it a dialog type window */
     OBT_PROP_SET32(self->super.window, NET_WM_WINDOW_TYPE, ATOM,
@@ -239,6 +241,8 @@ void prompt_unref(ObPrompt *self)
 
         prompt_list = g_list_remove(prompt_list, self);
 
+        obt_keyboard_context_unref(self->ic);
+
         for (i = 0; i < self->n_buttons; ++i) {
             window_remove(self->button[i].window);
             XDestroyWindow(obt_display, self->button[i].window);
This page took 0.018544 seconds and 4 git commands to generate.