X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fprompt.c;h=08356092693c875c1bb92be78450220ea5375568;hb=6f92931f843f8049d27d73937977b54d5f869499;hp=6df991a4af0dc9ad72de02c33f2616cd1895dc67;hpb=d179d6428ae585a3b8a13479bfe4586e41de2ff9;p=chaz%2Fopenbox diff --git a/openbox/prompt.c b/openbox/prompt.c index 6df991a4..08356092 100644 --- a/openbox/prompt.c +++ b/openbox/prompt.c @@ -175,7 +175,7 @@ ObPrompt* prompt_new(const gchar *msg, const gchar *title, /* set the window's title */ if (title) - OBT_PROP_SETS(self->super.window, NET_WM_NAME, utf8, title); + OBT_PROP_SETS(self->super.window, NET_WM_NAME, title); /* listen for key presses on the window */ self->event_mask = KeyPressMask; @@ -269,7 +269,7 @@ static void prompt_layout(ObPrompt *self) b += OUTSIDE_MARGIN; { - Rect const *area = screen_physical_area_all_monitors(); + const Rect *area = screen_physical_area_all_monitors(); maxw = MIN(MAX_WIDTH, area->width*4/5); } @@ -462,7 +462,7 @@ void prompt_show(ObPrompt *self, ObClient *parent, gboolean modal) /* activate the prompt */ OBT_PROP_MSG(ob_screen, self->super.window, NET_ACTIVE_WINDOW, 1, /* from an application.. */ - event_curtime, + event_time(), 0, 0, 0); return; @@ -540,7 +540,7 @@ gboolean prompt_key_event(ObPrompt *self, XEvent *e) if (sym == XK_Escape) prompt_cancel(self); - else if (sym == XK_Return || sym == XK_space) + else if (sym == XK_Return || sym == XK_KP_Enter || sym == XK_space) prompt_run_callback(self, self->focus->result); else if (sym == XK_Tab || sym == XK_Left || sym == XK_Right) { gint i;