mirror of
https://github.com/0intro/wmii
synced 2024-11-22 22:02:30 +03:00
removed win_state functions, not used
This commit is contained in:
parent
e716fb9955
commit
4628fa8259
23
cmd/wm/wm.c
23
cmd/wm/wm.c
@ -104,29 +104,6 @@ win_proto(Window w)
|
||||
return protos;
|
||||
}
|
||||
|
||||
int
|
||||
win_state(Window w)
|
||||
{
|
||||
/* state hints */
|
||||
XWMHints *hints = XGetWMHints(blz.dpy, w);
|
||||
int res;
|
||||
|
||||
long *prop = 0;
|
||||
if(win_property(w, wm_atom[WMState], wm_atom[WMState], 2L,
|
||||
((unsigned char **) &prop)) > 0)
|
||||
{
|
||||
res = (int) *prop;
|
||||
free((long *) prop);
|
||||
} else {
|
||||
res = hints ? hints->initial_state : NormalState;
|
||||
}
|
||||
|
||||
if(hints) {
|
||||
free(hints);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
static void
|
||||
init_atoms()
|
||||
{
|
||||
|
@ -326,5 +326,4 @@ unsigned int newcolw_of_view(View *v);
|
||||
|
||||
/* wm.c */
|
||||
int win_proto(Window w);
|
||||
int win_state(Window w);
|
||||
int wmii_error_handler(Display *dpy, XErrorEvent *error);
|
||||
|
Loading…
Reference in New Issue
Block a user