1/* 2 * Captive ctwm handling bits. 3 */ 4 5#ifndef _CTWM_CAPTIVE_H 6#define _CTWM_CAPTIVE_H 7 8// Guard to help catch non-ifdef'd references 9#ifndef CAPTIVE 10#error "You're unconditionally including captive.h!" 11#endif 12 13 14typedef struct CaptiveCTWM { 15 Window root; 16 char *name; 17} CaptiveCTWM; 18 19 20bool RedirectToCaptive(Window window); 21char *AddToCaptiveList(const char *cptname); 22void RemoveFromCaptiveList(const char *cptname); 23void SetPropsIfCaptiveCtwm(TwmWindow *win); 24CaptiveCTWM GetCaptiveCTWMUnderPointer(void); 25void SetNoRedirect(Window window); 26void ConfigureCaptiveRootWindow(XEvent *ev); 27void AdoptWindow(void); 28 29 30#endif //_CTWM_CAPTIVE_H 31