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
6
static
TwmWindow
*
get_last_window
(
WorkSpace
*
current
)
7
{
8
TwmWindow
*
t
;
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
27
void
set_last_window
(
WorkSpace
*
current
)
28
{
29
TwmWindow
*
t
;
30
31
t
=
get_last_window
(
current
);
32
33
SetFocus
(
t
,
CurrentTime
);
34
}
PlaceX
static int PlaceX
Definition
add_window.c:82
set_last_window
void set_last_window(WorkSpace *current)
Definition
clicktofocus.c:27
get_last_window
static TwmWindow * get_last_window(WorkSpace *current)
Definition
clicktofocus.c:6
clicktofocus.h
ctwm.h
OCCUPY
#define OCCUPY(w, b)
Definition
ctwm.h:369
Scr
#define Scr
screen.h
TwmWindow
Info and control for every X Window we take over.
Definition
twm_window_struct.h:34
TwmWindow::isiconmgr
bool isiconmgr
This is an icon manager window.
Definition
twm_window_struct.h:184
WorkSpace
Definition
workspace_structs.h:64
SetFocus
void SetFocus(TwmWindow *tmp_win, Time tim)
Definition
win_ops.c:128
win_ops.h
Generated by
1.10.0