CTWM
Loading...
Searching...
No Matches
/usr/src/RPM/BUILD/ctwm-4.1.0/clicktofocus.c
Go to the documentation of this file.
1#include "ctwm.h"
2#include "screen.h"
3#include "clicktofocus.h"
4#include "win_ops.h"
5
7{
9 TwmWindow *first = NULL;
10
11 if(! current) {
12 return NULL;
13 }
14
15 for(t = Scr->FirstWindow; t != NULL; t = t->next) {
16 if(!first && !t->isiconmgr && OCCUPY(t, current) && t->mapped) {
17 first = t;
18 }
19 if(t->hasfocusvisible && OCCUPY(t, current)) {
20 return t;
21 }
22 }
23
24 return first;
25}
26
static int PlaceX
Definition add_window.c:82
void set_last_window(WorkSpace *current)
static TwmWindow * get_last_window(WorkSpace *current)
Definition clicktofocus.c:6
#define OCCUPY(w, b)
Definition ctwm.h:369
#define Scr
Info and control for every X Window we take over.
bool isiconmgr
This is an icon manager window.
void SetFocus(TwmWindow *tmp_win, Time tim)
Definition win_ops.c:128