]> Dogcows Code - chaz/openbox/blobdiff - openbox/prompt.c
use const Rect* not Rect const*
[chaz/openbox] / openbox / prompt.c
index 6df991a4af0dc9ad72de02c33f2616cd1895dc67..50d09037a23e34ec293029255c06ce43dc8a38ef 100644 (file)
@@ -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);
     }
 
@@ -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;
This page took 0.022916 seconds and 4 git commands to generate.