CTWM
Loading...
Searching...
No Matches
/usr/src/RPM/BUILD/ctwm-4.1.0/otp.h
Go to the documentation of this file.
1/*
2 * Copyright 1992, 2005, 2007 Stefan Monnier.
3 *
4 * $Id: otp.h,v 1.7 2005/04/08 16:59:17 monnier Exp $
5 *
6 * handles all the OnTopPriority-related issues.
7 *
8 */
9
10#ifndef _CTWM_OTP_H
11#define _CTWM_OTP_H
12
13/* kind of window */
14typedef enum WinType { WinWin, IconWin } WinType;
15
16/* Flags that might alter OTP (currently only EWMH bits) */
17#ifdef EWMH
18#define OTP_AFLAG_ABOVE (1 << 0)
19#define OTP_AFLAG_BELOW (1 << 1)
20#define OTP_AFLAG_FULLSCREEN (1 << 2)
21#endif
22
23
24/* Wrapper functions to maintain the internal list uptodate. */
26 WinType wintype, Window parent, int x, int y);
28 Window parent, int win_x, int win_y,
29 int icon_x, int icon_y);
30
31/* misc functions that are not specific to OTP */
36
37/* functions to "move" windows */
45 WinType wintype, int place);
46
47/* functions to change a window's OTP value */
48void OtpSetPriority(TwmWindow *, WinType, int, int);
54
55void OtpReassignIcon(TwmWindow *twm_win, Icon *old_icon);
56void OtpFreeIcon(TwmWindow *twm_win);
57
58void OtpSetAflagMask(TwmWindow *twm_win, unsigned mask, unsigned setto);
59void OtpSetAflag(TwmWindow *twm_win, unsigned flag);
60void OtpClearAflag(TwmWindow *twm_win, unsigned flag);
62void OtpRestackWindow(TwmWindow *twm_win);
63
64void OtpUnfocusWindow(TwmWindow *twm_win);
65void OtpFocusWindow(TwmWindow *twm_win);
66
67/* functions to manage the preferences. The second arg specifies icon prefs */
72void OtpScrSetZero(ScreenInfo *, WinType, int);
73
74/* functions to inform OTP-manager of window creation/destruction */
75void OtpAdd(TwmWindow *, WinType);
77
78/* Iterators. */
80TwmWindow *OtpTopWin(void);
83
84/* Other access functions */
87bool OtpIsFocusDependent(TwmWindow *twm_win);
88
89/* Other debugging functions */
90bool OtpCheckConsistency(void);
91
92#endif /* _CTWM_OTP_H */
static int PlaceX
Definition add_window.c:82
int y
Definition menus.c:70
int x
Definition menus.c:69
void OtpSetAflag(TwmWindow *twm_win, unsigned flag)
Definition otp.c:1541
void OtpRecomputePrefs(TwmWindow *)
Definition otp.c:1073
bool isSmallTransientOf(TwmWindow *, TwmWindow *)
Definition otp.c:166
bool isTransientOf(TwmWindow *, TwmWindow *)
Definition otp.c:148
void OtpRaiseLower(TwmWindow *, WinType)
Definition otp.c:791
TwmWindow * OtpNextWinUp(TwmWindow *)
Definition otp.c:1458
WinType
Definition otp.h:14
@ WinWin
Definition otp.h:14
@ IconWin
Definition otp.h:14
void OtpScrInitData(ScreenInfo *)
Definition otp.c:1366
void OtpChangePriority(TwmWindow *, WinType, int)
Definition otp.c:920
void OtpSwitchPriority(TwmWindow *, WinType)
Definition otp.c:941
void OtpSetAflagMask(TwmWindow *twm_win, unsigned mask, unsigned setto)
Definition otp.c:1522
bool isGroupLeader(TwmWindow *)
Definition otp.c:153
TwmWindow * OtpNextWinDown(TwmWindow *)
Definition otp.c:1467
int OtpEffectivePriority(TwmWindow *twm_win)
Definition otp.c:1803
void OtpScrSetZero(ScreenInfo *, WinType, int)
Definition otp.c:1309
void OtpRestackWindow(TwmWindow *twm_win)
Definition otp.c:1648
void OtpUnfocusWindow(TwmWindow *twm_win)
Unfocus a window.
Definition otp.c:1753
void OtpSetPriority(TwmWindow *, WinType, int, int)
Definition otp.c:894
void OtpHandleCirculateNotify(VirtualScreen *vs, TwmWindow *twm_win, WinType wintype, int place)
Definition otp.c:877
void OtpStashAflagsFirstTime(TwmWindow *twm_win)
Definition otp.c:1585
bool isGroupLeaderOf(TwmWindow *, TwmWindow *)
Definition otp.c:159
void OtpClearAflag(TwmWindow *twm_win, unsigned flag)
Definition otp.c:1559
void OtpLower(TwmWindow *, WinType)
Definition otp.c:777
int OtpEffectiveDisplayPriority(TwmWindow *twm_win)
Definition otp.c:1794
void OtpToggleSwitching(TwmWindow *, WinType)
Definition otp.c:963
void OtpFocusWindow(TwmWindow *twm_win)
Focus a window.
Definition otp.c:1774
void OtpRaise(TwmWindow *, WinType)
Definition otp.c:763
void OtpTinyLower(TwmWindow *, WinType)
Definition otp.c:819
void OtpAdd(TwmWindow *, WinType)
Definition otp.c:1222
name_list ** OtpScrSwitchingL(ScreenInfo *, WinType)
Definition otp.c:1287
bool OtpCheckConsistency(void)
Definition otp.c:188
void OtpFreeIcon(TwmWindow *twm_win)
Definition otp.c:1278
void OtpForcePlacement(TwmWindow *, int, TwmWindow *)
Definition otp.c:990
void OtpCirculateSubwindows(VirtualScreen *vs, int direction)
Definition otp.c:849
void OtpRemove(TwmWindow *, WinType)
Definition otp.c:1094
bool OtpIsFocusDependent(TwmWindow *twm_win)
Definition otp.c:1883
void OtpReassignIcon(TwmWindow *twm_win, Icon *old_icon)
Definition otp.c:1262
void ReparentWindowAndIcon(Display *display, TwmWindow *twm_win, Window parent, int win_x, int win_y, int icon_x, int icon_y)
Definition otp.c:1399
TwmWindow * OtpBottomWin(void)
Definition otp.c:1437
void OtpScrSetSwitching(ScreenInfo *, WinType, bool)
Definition otp.c:1297
void OtpTinyRaise(TwmWindow *, WinType)
Definition otp.c:805
TwmWindow * OtpTopWin(void)
Definition otp.c:1446
name_list ** OtpScrPriorityL(ScreenInfo *, WinType, int)
Definition otp.c:1324
int ReparentWindow(Display *display, TwmWindow *twm_win, WinType wintype, Window parent, int x, int y)
Definition otp.c:1378
Definition icons.h:26
Info and control for each X Screen we control.
Definition screen.h:96
Info and control for every X Window we take over.