CTWM
Loading...
Searching...
No Matches
/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

typedef enum WinType WinType

Enumeration Type Documentation

◆ WinType

enum 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, and isGroupLeader().

Referenced by OtpAdd().

◆ isSmallTransientOf()

bool isSmallTransientOf ( TwmWindow * trans,
TwmWindow * main )

Definition at line 166 of file otp.c.

References TwmWindow::frame, TwmWindow::frame_height, TwmWindow::frame_width, isTransientOf(), main(), and Scr.

Referenced by shouldStayAbove().

◆ isTransientOf()

bool isTransientOf ( TwmWindow * trans,
TwmWindow * main )

◆ OtpAdd()

◆ OtpBottomWin()

TwmWindow * OtpBottomWin ( void )

◆ OtpChangePriority()

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

◆ OtpCheckConsistency()

◆ OtpCirculateSubwindows()

void OtpCirculateSubwindows ( VirtualScreen * vs,
int direction )

Definition at line 849 of file otp.c.

References DPRINTF, dpy, Event, HandleCirculateNotify(), 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, and OwlClearAflag().

Referenced by unzoom().

◆ OtpEffectiveDisplayPriority()

int OtpEffectiveDisplayPriority ( TwmWindow * twm_win)

Definition at line 1794 of file otp.c.

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

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, and OwlEffectivePriority().

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(), PRI, and Scr.

Referenced by HandleFocusIn(), and SetFocus().

◆ OtpForcePlacement()

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

◆ OtpFreeIcon()

void OtpFreeIcon ( TwmWindow * twm_win)

Definition at line 1278 of file otp.c.

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

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(), and OtpRaise().

Referenced by HandleCirculateNotify().

◆ OtpIsFocusDependent()

bool OtpIsFocusDependent ( TwmWindow * twm_win)

Definition at line 1883 of file otp.c.

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

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

◆ OtpLower()

◆ OtpNextWinDown()

TwmWindow * OtpNextWinDown ( TwmWindow * twm_win)

Definition at line 1467 of file otp.c.

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

Referenced by GotoWorkSpace().

◆ OtpNextWinUp()

◆ OtpRaise()

◆ 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, and OtpAdd().

Referenced by RedoIcon().

◆ OtpRecomputePrefs()

void OtpRecomputePrefs ( TwmWindow * twm_win)

Definition at line 1073 of file otp.c.

References TwmWindow::icon, Icon::otp, TwmWindow::otp, OtpCheckConsistency(), RecomputeOwlPrefs(), and Scr.

Referenced by apply_window_name().

◆ 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(), and ScreenInfo::OTP.

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 OtpPreferences::priorityL.

◆ OtpScrSetSwitching()

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

Definition at line 1297 of file otp.c.

References ScreenInfo::IconOTP, IconWin, ScreenInfo::OTP, 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 OtpPreferences::priority.

◆ OtpScrSwitchingL()

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

Definition at line 1287 of file otp.c.

References ScreenInfo::IconOTP, IconWin, ScreenInfo::OTP, and OtpPreferences::switchingL.

◆ OtpSetAflag()

void OtpSetAflag ( TwmWindow * twm_win,
unsigned flag )

Definition at line 1541 of file otp.c.

References TwmWindow::otp, and OwlSetAflag().

Referenced by fullzoom().

◆ OtpSetAflagMask()

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

Definition at line 1522 of file otp.c.

References TwmWindow::otp, and OwlSetAflagMask().

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 )

◆ OtpTopWin()

TwmWindow * OtpTopWin ( void )

Definition at line 1446 of file otp.c.

References OtpWinList::above, Scr, OtpWinList::type, 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(), 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 )