523.1.1
by Matthew Fuller
Inagurate a win_utils.c with GetWindowSizeHints(). |
1 |
/*
|
2 |
* Window util funcs
|
|
3 |
*/
|
|
4 |
#ifndef _CTWM_WIN_UTILS_H
|
|
5 |
#define _CTWM_WIN_UTILS_H
|
|
6 |
||
7 |
||
8 |
void GetWindowSizeHints(TwmWindow *tmp_win); |
|
523.1.2
by Matthew Fuller
Move FetchWmProtocols() over to win_utils as well. |
9 |
void FetchWmProtocols(TwmWindow *tmp); |
523.1.3
by Matthew Fuller
Move GetGravityOffsets() into win_utils and give it a more descriptive |
10 |
void GetGravityOffsets(TwmWindow *tmp, int *xp, int *yp); |
523.1.5
by Matthew Fuller
GetTwmWindow() is pretty obvious _utils fodder. |
11 |
TwmWindow *GetTwmWindow(Window w); |
544.1.5
by Matthew Fuller
Switch GetWMPropertyString() over to returning char * rather than |
12 |
char *GetWMPropertyString(Window w, Atom prop); |
523.1.10
by Matthew Fuller
Move {Get,Free}WMPropertyString into win_utils. |
13 |
void FreeWMPropertyString(char *prop); |
523.1.16
by Matthew Fuller
Move visible() into win_utils. |
14 |
bool visible(const TwmWindow *tmp_win); |
523.1.18
by Matthew Fuller
Move the masking funcs into win_util and GC util.h from the files only |
15 |
long mask_out_event(Window w, long ignore_event); |
16 |
long mask_out_event_mask(Window w, long ignore_event, long curmask); |
|
17 |
int restore_mask(Window w, long restore); |
|
523.1.20
by Matthew Fuller
Getting and setting WM_STATE props is pretty obviously a window util, |
18 |
void SetMapStateProp(TwmWindow *tmp_win, int state); |
19 |
bool GetWMState(Window w, int *statep, Window *iwp); |
|
523.1.23
by Matthew Fuller
Move DisplayPosition() off into win_utils as well. Stick some |
20 |
void DisplayPosition(const TwmWindow *_unused_tmp_win, int x, int y); |
614.1.28
by Maxime Soulé
If CenterFeedbackWindow, feedback window centered in current monitor |
21 |
void MoveResizeSizeWindow(int x, int y, unsigned int width, |
22 |
unsigned int height); |
|
523.1.24
by Matthew Fuller
Move these Pack/Push/Grid funcs into win_utils, since they're about |
23 |
void TryToPack(TwmWindow *tmp_win, int *x, int *y); |
24 |
void TryToPush(TwmWindow *tmp_win, int x, int y); |
|
25 |
void TryToGrid(TwmWindow *tmp_win, int *x, int *y); |
|
614.1.2
by Maxime Soulé
Menus are now clipped using layout |
26 |
bool ConstrainByLayout(RLayout *layout, int move_off_res, int *left, int width, |
27 |
int *top, int height); |
|
523.1.26
by Matthew Fuller
Move these Constrain funcs to keeping windows on-screen to win_utils. |
28 |
void ConstrainByBorders1(int *left, int width, int *top, int height); |
29 |
void ConstrainByBorders(TwmWindow *twmwin, int *left, int width, |
|
30 |
int *top, int height); |
|
539.1.18
by Matthew Fuller
WarpToWindow() also has no relation to menus and is broadly used |
31 |
void WarpToWindow(TwmWindow *t, bool must_raise); |
539.1.22
by Matthew Fuller
send_clientmessage() probably belongs better in win_utils than util. |
32 |
void send_clientmessage(Window w, Atom a, Time timestamp); |
557.1.4
by Matthew Fuller
Move creating the synthetic hints into a function so we can reuse it. |
33 |
XWMHints *gen_synthetic_wmhints(TwmWindow *win); |
625.1.1
by Matthew Fuller
Extract the adjustment of wmhints stuff into a separate function for |
34 |
XWMHints *munge_wmhints(TwmWindow *win, XWMHints *hints); |
615.1.25
by Matthew Fuller
Split out setting ->name from doing the stuff that we do after |
35 |
bool set_window_name(TwmWindow *win); |
615.1.4
by Matthew Fuller
Split out all the code to support "window name has changed, do stuff |
36 |
void apply_window_name(TwmWindow *win); |
615.1.30
by Matthew Fuller
Shift the icon_name setting bits off into functions like we did for |
37 |
bool set_window_icon_name(TwmWindow *win); |
38 |
void apply_window_icon_name(TwmWindow *win); |
|
523.1.1
by Matthew Fuller
Inagurate a win_utils.c with GetWindowSizeHints(). |
39 |
|
40 |
||
41 |
#endif /* _CTWM_WIN_UTILS_H */ |