2019-12-02 18:23:00 +00:00
|
|
|
/* Copyright (c) 1994-1996 David Hogan, see README for licence details */
|
|
|
|
|
2021-02-26 18:01:22 +00:00
|
|
|
#ifdef DEBUG
|
|
|
|
#define trace(s, c, e) dotrace((s), (c), (e))
|
2019-12-02 18:23:00 +00:00
|
|
|
#else
|
2021-02-26 18:01:22 +00:00
|
|
|
#define trace(s, c, e)
|
2019-12-02 18:23:00 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define setstate setstaterio
|
|
|
|
|
|
|
|
/* color.c */
|
2021-11-16 22:16:28 +00:00
|
|
|
unsigned long colorpixel(
|
|
|
|
Display*, ScreenInfo*, int, unsigned long, unsigned long);
|
2019-12-02 18:23:00 +00:00
|
|
|
|
|
|
|
/* main.c */
|
2021-02-26 18:01:22 +00:00
|
|
|
void usage();
|
|
|
|
void initscreen();
|
|
|
|
ScreenInfo* getscreen();
|
|
|
|
Time timestamp();
|
|
|
|
void sendcmessage();
|
|
|
|
void sendconfig();
|
|
|
|
void sighandler();
|
|
|
|
void getevent();
|
|
|
|
void cleanup();
|
2019-12-02 18:23:00 +00:00
|
|
|
|
|
|
|
/* event.c */
|
2021-02-26 18:01:22 +00:00
|
|
|
void mainloop();
|
|
|
|
void configurereq();
|
|
|
|
void mapreq();
|
|
|
|
void circulatereq();
|
|
|
|
void unmap();
|
|
|
|
void newwindow();
|
|
|
|
void destroy();
|
|
|
|
void clientmesg();
|
|
|
|
void cmap();
|
|
|
|
void property();
|
|
|
|
void shapenotify();
|
|
|
|
void enter();
|
|
|
|
void leave();
|
|
|
|
void focusin();
|
|
|
|
void reparent();
|
|
|
|
void motionnotify();
|
2019-12-02 18:23:00 +00:00
|
|
|
BorderOrient borderorient();
|
|
|
|
|
|
|
|
/* manage.c */
|
2021-02-26 18:01:22 +00:00
|
|
|
int manage();
|
|
|
|
void scanwins();
|
|
|
|
void setshape();
|
|
|
|
void withdraw();
|
|
|
|
void gravitate();
|
|
|
|
void cmapfocus();
|
|
|
|
void cmapnofocus();
|
|
|
|
void getcmaps();
|
|
|
|
int _getprop();
|
|
|
|
char* getprop();
|
|
|
|
Window getwprop();
|
|
|
|
int getiprop();
|
|
|
|
int getstate();
|
|
|
|
void setstate();
|
|
|
|
void setlabel();
|
|
|
|
void getproto();
|
|
|
|
void gettrans();
|
2019-12-02 18:23:00 +00:00
|
|
|
|
|
|
|
/* key.c */
|
|
|
|
void keypress();
|
|
|
|
void keyrelease();
|
|
|
|
void keysetup();
|
2022-03-01 06:40:32 +00:00
|
|
|
void quickreshape(Client*, int, int, int, int, int);
|
2021-02-21 23:13:58 +00:00
|
|
|
void stickystack(int);
|
2022-03-01 06:40:32 +00:00
|
|
|
void centerclient(Client*, XRRMonitorInfo, int);
|
2019-12-02 18:23:00 +00:00
|
|
|
|
|
|
|
/* menu.c */
|
2021-02-26 18:01:22 +00:00
|
|
|
void button();
|
|
|
|
void spawn();
|
|
|
|
void reshape();
|
|
|
|
void move();
|
2024-09-26 13:50:54 +00:00
|
|
|
void delete();
|
2021-02-26 18:01:22 +00:00
|
|
|
void hide();
|
|
|
|
void unhide();
|
|
|
|
void unhidec();
|
|
|
|
void renamec();
|
|
|
|
void button2();
|
|
|
|
void initb2menu();
|
|
|
|
void switch_to();
|
|
|
|
void switch_to_c();
|
|
|
|
void stick();
|
2019-12-02 18:23:00 +00:00
|
|
|
|
|
|
|
/* client.c */
|
2021-02-26 18:01:22 +00:00
|
|
|
void setactive();
|
|
|
|
void draw_border();
|
|
|
|
void active();
|
|
|
|
void nofocus();
|
|
|
|
void top();
|
|
|
|
Client* getclient();
|
|
|
|
void rmclient();
|
|
|
|
void dump_revert();
|
|
|
|
void dump_clients();
|
2019-12-02 18:23:00 +00:00
|
|
|
void shuffle(int);
|
2021-02-21 23:13:58 +00:00
|
|
|
int isautostick(Client* c);
|
2021-11-16 22:16:28 +00:00
|
|
|
int istransparent(Client* c);
|
|
|
|
int shouldalwaysdraw(Client* c);
|
|
|
|
int isterminalwindow(Client* c);
|
2021-03-09 05:35:05 +00:00
|
|
|
void ensureactive();
|
2022-03-01 06:40:32 +00:00
|
|
|
void ensureactiveonmonitor(int);
|
|
|
|
void shuffleonmonitor(int);
|
2022-03-05 06:57:25 +00:00
|
|
|
Window getrevert(Client*);
|
2019-12-02 18:23:00 +00:00
|
|
|
|
|
|
|
/* grab.c */
|
2021-02-26 18:01:22 +00:00
|
|
|
int menuhit();
|
|
|
|
Client* selectwin();
|
|
|
|
int sweep();
|
|
|
|
int drag();
|
|
|
|
int pull();
|
|
|
|
void getmouse();
|
|
|
|
void setmouse();
|
2019-12-02 18:23:00 +00:00
|
|
|
|
|
|
|
/* error.c */
|
2021-02-26 18:01:22 +00:00
|
|
|
int handler();
|
|
|
|
void fatal();
|
|
|
|
void graberror();
|
|
|
|
void showhints();
|
|
|
|
void dotrace();
|
2019-12-02 18:23:00 +00:00
|
|
|
|
|
|
|
/* cursor.c */
|
2021-02-26 18:01:22 +00:00
|
|
|
void initcurs();
|
2019-12-02 18:23:00 +00:00
|
|
|
|
|
|
|
void ShowEvent(XEvent*);
|
2022-02-27 17:18:17 +00:00
|
|
|
|
|
|
|
void fetchmonitorinfo();
|
|
|
|
int getmonitorbyclient(Client*);
|
2022-03-01 06:40:32 +00:00
|
|
|
int getmonitorbymouse();
|
|
|
|
void wrangle(Client*, XRRMonitorInfo);
|
2024-11-29 16:52:32 +00:00
|
|
|
void getcascadecoords(Window, int, int*, int*);
|