about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/client.c b/client.c
index 8d5ea30..6a231b9 100644
--- a/client.c
+++ b/client.c
@@ -262,11 +262,13 @@ manage(Window w, XWindowAttributes *wa)
 				c->maxw == c->minw && c->maxh == c->minh);
 	settitle(c);
 
+	if(isvisible(c))
+		sel = c;
+	arrange(NULL);
 	XMapWindow(dpy, c->win);
 	XMapWindow(dpy, c->title);
 	if(isvisible(c))
 		focus(c);
-	arrange(NULL);
 }
 
 void
'>
26
27
28
29


                

                   


















                                      
                                                                            



                                              
#ifndef LYJUMP_H
#define LYJUMP_H

#include <HTList.h>

typedef struct _JumpDatum {
    char *key;
    char *url;
} JumpDatum;

struct JumpTable { 
    int key;
    int nel;
    char *msg;
    char *file;
    char *shortcut;
    HTList *history;
    JumpDatum *table;
    struct JumpTable *next;
    char *mp;
};

extern struct JumpTable *JThead;
extern void LYJumpTable_free NOPARAMS;
extern void LYAddJumpShortcut PARAMS((HTList *the_history, char *shortcut));
extern BOOL LYJumpInit PARAMS((char *config));
extern char *LYJump PARAMS((int key));

#endif /* LYJUMP_H */