CTWM
Loading...
Searching...
No Matches
Typedefs | Enumerations | Functions
/usr/src/RPM/BUILD/ctwm-4.1.0/otp.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef enum WinType WinType
 

Enumerations

enum  WinType { WinWin , IconWin }
 

Functions

int ReparentWindow (Display *display, TwmWindow *twm_win, WinType wintype, Window parent, int x, int y)
 
void ReparentWindowAndIcon (Display *display, TwmWindow *twm_win, Window parent, int win_x, int win_y, int icon_x, int icon_y)
 
bool isTransientOf (TwmWindow *, TwmWindow *)
 
bool isSmallTransientOf (TwmWindow *, TwmWindow *)
 
bool isGroupLeaderOf (TwmWindow *, TwmWindow *)
 
bool isGroupLeader (TwmWindow *)
 
void OtpRaise (TwmWindow *, WinType)
 
void OtpLower (TwmWindow *, WinType)
 
void OtpRaiseLower (TwmWindow *, WinType)
 
void OtpTinyRaise (TwmWindow *, WinType)
 
void OtpTinyLower (TwmWindow *, WinType)
 
void OtpCirculateSubwindows (VirtualScreen *vs, int direction)
 
void OtpHandleCirculateNotify (VirtualScreen *vs, TwmWindow *twm_win, WinType wintype, int place)
 
void OtpSetPriority (TwmWindow *, WinType, int, int)
 
void OtpChangePriority (TwmWindow *, WinType, int)
 
void OtpSwitchPriority (TwmWindow *, WinType)
 
void OtpToggleSwitching (TwmWindow *, WinType)
 
void OtpRecomputePrefs (TwmWindow *)
 
void OtpForcePlacement (TwmWindow *, int, TwmWindow *)
 
void OtpReassignIcon (TwmWindow *twm_win, Icon *old_icon)
 
void OtpFreeIcon (TwmWindow *twm_win)
 
void OtpSetAflagMask (TwmWindow *twm_win, unsigned mask, unsigned setto)
 
void OtpSetAflag (TwmWindow *twm_win, unsigned flag)
 
void OtpClearAflag (TwmWindow *twm_win, unsigned flag)
 
void OtpStashAflagsFirstTime (TwmWindow *twm_win)
 
void OtpRestackWindow (TwmWindow *twm_win)
 
void OtpUnfocusWindow (TwmWindow *twm_win)
 Unfocus a window.
 
void OtpFocusWindow (TwmWindow *twm_win)
 Focus a window.
 
void OtpScrInitData (ScreenInfo *)
 
name_list ** OtpScrSwitchingL (ScreenInfo *, WinType)
 
name_list ** OtpScrPriorityL (ScreenInfo *, WinType, int)
 
void OtpScrSetSwitching (ScreenInfo *, WinType, bool)
 
void OtpScrSetZero (ScreenInfo *, WinType, int)
 
void OtpAdd (TwmWindow *, WinType)
 
void OtpRemove (TwmWindow *, WinType)
 
TwmWindowOtpBottomWin (void)
 
TwmWindowOtpTopWin (void)
 
TwmWindowOtpNextWinUp (TwmWindow *)
 
TwmWindowOtpNextWinDown (TwmWindow *)
 
int OtpEffectiveDisplayPriority (TwmWindow *twm_win)
 
int OtpEffectivePriority (TwmWindow *twm_win)
 
bool OtpIsFocusDependent (TwmWindow *twm_win)
 
bool OtpCheckConsistency (void)
 

Typedef Documentation

◆ WinType

Enumeration Type Documentation

◆ WinType

Enumerator
WinWin 
IconWin 

Definition at line 14 of file otp.h.

Function Documentation

◆ isGroupLeader()

bool isGroupLeader ( TwmWindow * twm_win)

Definition at line 153 of file otp.c.

References TwmWindow::group, and TwmWindow::w.

Referenced by isGroupLeaderOf(), and OtpAdd().

◆ isGroupLeaderOf()

bool isGroupLeaderOf ( TwmWindow * leader,
TwmWindow * twm_win )

Definition at line 159 of file otp.c.

References TwmWindow::group, isGroupLeader(), and PlaceX.

Referenced by OtpAdd().

◆ isSmallTransientOf()

bool isSmallTransientOf ( TwmWindow * trans,
TwmWindow * main )

Definition at line 166 of file otp.c.

References isTransientOf(), main(), PlaceX, and Scr.

Referenced by shouldStayAbove().

◆ isTransientOf()

bool isTransientOf ( TwmWindow * trans,
TwmWindow * main )

Definition at line 148 of file otp.c.

References main(), and PlaceX.

Referenced by isSmallTransientOf(), OtpAdd(), OtpFocusWindowBE(), and TryToMoveTransientsOfTo().

◆ OtpAdd()

void OtpAdd ( TwmWindow * twm_win,
WinType wintype )

◆ OtpBottomWin()

TwmWindow * OtpBottomWin ( void )

◆ OtpChangePriority()

void OtpChangePriority ( TwmWindow * twm_win,
WinType wintype,
int relpriority )

◆ OtpCheckConsistency()

bool OtpCheckConsistency ( void )

◆ OtpCirculateSubwindows()

void OtpCirculateSubwindows ( VirtualScreen * vs,
int direction )

Definition at line 849 of file otp.c.

References DPRINTF, dpy, Event, HandleCirculateNotify(), PlaceX, and VirtualScreen::window.

Referenced by f_circledown_impl(), and f_circleup_impl().

◆ OtpClearAflag()

void OtpClearAflag ( TwmWindow * twm_win,
unsigned flag )

Definition at line 1559 of file otp.c.

References TwmWindow::otp, OwlClearAflag(), and PlaceX.

Referenced by unzoom().

◆ OtpEffectiveDisplayPriority()

int OtpEffectiveDisplayPriority ( TwmWindow * twm_win)

Definition at line 1794 of file otp.c.

References TwmWindow::otp, OTP_ZERO, OwlEffectivePriority(), and PlaceX.

Referenced by EwmhSet_NET_WM_STATE(), Identify(), and OwlPrettyPrint().

◆ OtpEffectivePriority()

int OtpEffectivePriority ( TwmWindow * twm_win)

Definition at line 1803 of file otp.c.

References TwmWindow::otp, OwlEffectivePriority(), and PlaceX.

Referenced by EwmhClientMessage_NET_WM_STATEchange(), and OwlPrettyPrint().

◆ OtpFocusWindow()

void OtpFocusWindow ( TwmWindow * twm_win)

Focus a window.

This needs to know internals of OTP because of focus-dependent stacking of it and its transients.

Definition at line 1774 of file otp.c.

References TwmWindow::otp, OtpFocusWindowBE(), PlaceX, PRI, and Scr.

Referenced by HandleFocusIn(), and SetFocus().

◆ OtpForcePlacement()

void OtpForcePlacement ( TwmWindow * twm_win,
int where,
TwmWindow * other_win )

Definition at line 990 of file otp.c.

References InsertOwlAbove(), TwmWindow::otp, OtpCheckConsistency(), PlaceX, and RemoveOwl().

Referenced by HandleConfigureRequest().

◆ OtpFreeIcon()

void OtpFreeIcon ( TwmWindow * twm_win)

Definition at line 1278 of file otp.c.

References TwmWindow::icon, IconWin, OtpRemove(), and PlaceX.

Referenced by RedoIcon().

◆ OtpHandleCirculateNotify()

void OtpHandleCirculateNotify ( VirtualScreen * vs,
TwmWindow * twm_win,
WinType wintype,
int place )

Definition at line 877 of file otp.c.

References DPRINTF, OtpLower(), OtpRaise(), and PlaceX.

Referenced by HandleCirculateNotify().

◆ OtpIsFocusDependent()

bool OtpIsFocusDependent ( TwmWindow * twm_win)

Definition at line 1883 of file otp.c.

References TwmWindow::otp, PlaceX, and OtpWinList::pri_aflags.

Referenced by HandleFocusIn(), HandleFocusOut(), and SetFocus().

◆ OtpLower()

void OtpLower ( TwmWindow * twm_win,
WinType wintype )

◆ OtpNextWinDown()

TwmWindow * OtpNextWinDown ( TwmWindow * twm_win)

Definition at line 1467 of file otp.c.

References OtpWinList::below, TwmWindow::otp, PlaceX, OtpWinList::twm_win, and WinWin.

Referenced by GotoWorkSpace().

◆ OtpNextWinUp()

TwmWindow * OtpNextWinUp ( TwmWindow * twm_win)

◆ OtpRaise()

void OtpRaise ( TwmWindow * twm_win,
WinType wintype )

◆ OtpRaiseLower()

void OtpRaiseLower ( TwmWindow * twm_win,
WinType wintype )

◆ OtpReassignIcon()

void OtpReassignIcon ( TwmWindow * twm_win,
Icon * old_icon )

Definition at line 1262 of file otp.c.

References TwmWindow::icon, IconWin, Icon::otp, OtpAdd(), and PlaceX.

Referenced by RedoIcon().

◆ OtpRecomputePrefs()

void OtpRecomputePrefs ( TwmWindow * twm_win)

◆ OtpRemove()

void OtpRemove ( TwmWindow * twm_win,
WinType wintype )

◆ OtpRestackWindow()

void OtpRestackWindow ( TwmWindow * twm_win)

◆ OtpScrInitData()

void OtpScrInitData ( ScreenInfo * scr)

Definition at line 1366 of file otp.c.

References free_OtpPreferences(), ScreenInfo::IconOTP, new_OtpPreferences(), ScreenInfo::OTP, and PlaceX.

Referenced by InitScreenInfo().

◆ OtpScrPriorityL()

name_list ** OtpScrPriorityL ( ScreenInfo * scr,
WinType wintype,
int priority )

Definition at line 1324 of file otp.c.

References ABS, ScreenInfo::IconOTP, IconWin, ScreenInfo::OTP, OTP_ZERO, and PlaceX.

◆ OtpScrSetSwitching()

void OtpScrSetSwitching ( ScreenInfo * scr,
WinType wintype,
bool switching )

Definition at line 1297 of file otp.c.

References ScreenInfo::IconOTP, IconWin, ScreenInfo::OTP, PlaceX, and OtpPreferences::switching.

◆ OtpScrSetZero()

void OtpScrSetZero ( ScreenInfo * scr,
WinType wintype,
int priority )

Definition at line 1309 of file otp.c.

References ABS, ScreenInfo::IconOTP, IconWin, ScreenInfo::OTP, OTP_ZERO, and PlaceX.

◆ OtpScrSwitchingL()

name_list ** OtpScrSwitchingL ( ScreenInfo * scr,
WinType wintype )

Definition at line 1287 of file otp.c.

References ScreenInfo::IconOTP, IconWin, ScreenInfo::OTP, and PlaceX.

◆ OtpSetAflag()

void OtpSetAflag ( TwmWindow * twm_win,
unsigned flag )

Definition at line 1541 of file otp.c.

References TwmWindow::otp, OwlSetAflag(), and PlaceX.

Referenced by fullzoom().

◆ OtpSetAflagMask()

void OtpSetAflagMask ( TwmWindow * twm_win,
unsigned mask,
unsigned setto )

Definition at line 1522 of file otp.c.

References TwmWindow::otp, OwlSetAflagMask(), and PlaceX.

Referenced by EwmhClientMessage_NET_WM_STATEchange().

◆ OtpSetPriority()

void OtpSetPriority ( TwmWindow * twm_win,
WinType wintype,
int new_pri,
int where )

◆ OtpStashAflagsFirstTime()

void OtpStashAflagsFirstTime ( TwmWindow * twm_win)

Definition at line 1585 of file otp.c.

References TwmWindow::otp, OwlStashAflags(), and OtpWinList::stashed_aflags.

Referenced by otp_priority_handler().

◆ OtpSwitchPriority()

void OtpSwitchPriority ( TwmWindow * twm_win,
WinType wintype )

◆ OtpTinyLower()

void OtpTinyLower ( TwmWindow * twm_win,
WinType wintype )

◆ OtpTinyRaise()

void OtpTinyRaise ( TwmWindow * twm_win,
WinType wintype )

◆ OtpToggleSwitching()

void OtpToggleSwitching ( TwmWindow * twm_win,
WinType wintype )

Definition at line 963 of file otp.c.

References TwmWindow::icon, IconWin, Icon::otp, TwmWindow::otp, OtpCheckConsistency(), and PlaceX.

Referenced by otp_priority_handler().

◆ OtpTopWin()

TwmWindow * OtpTopWin ( void )

Definition at line 1446 of file otp.c.

References OtpWinList::above, PlaceX, Scr, OtpWinList::twm_win, and WinWin.

Referenced by GotoWorkSpace().

◆ OtpUnfocusWindow()

void OtpUnfocusWindow ( TwmWindow * twm_win)

Unfocus a window.

This needs to know internals of OTP because of focus-dependent stacking of it and its transients.

Definition at line 1753 of file otp.c.

References TwmWindow::otp, OtpFocusWindowBE(), PlaceX, PRI, and Scr.

Referenced by HandleFocusIn(), HandleFocusOut(), and SetFocus().

◆ ReparentWindow()

int ReparentWindow ( Display * display,
TwmWindow * twm_win,
WinType wintype,
Window parent,
int x,
int y )

◆ ReparentWindowAndIcon()

void ReparentWindowAndIcon ( Display * display,
TwmWindow * twm_win,
Window parent,
int win_x,
int win_y,
int icon_x,
int icon_y )