mirror of
https://github.com/0intro/wmii
synced 2025-02-16 14:24:00 +03:00
Declare ignored_errors extern in cmd/wmii/x11.c. Fix warning.
This commit is contained in:
parent
ab9caa789e
commit
ebd63a2aa7
@ -163,21 +163,8 @@ update_filter(bool print) {
|
||||
update_input();
|
||||
}
|
||||
|
||||
/*
|
||||
* There's no way to check accesses to destroyed windows, thus
|
||||
* those cases are ignored (especially on UnmapNotifies).
|
||||
* Other types of errors call Xlib's default error handler, which
|
||||
* calls exit().
|
||||
*/
|
||||
ErrorCode ignored_xerrors[] = {
|
||||
{ 0, BadWindow },
|
||||
{ X_SetInputFocus, BadMatch },
|
||||
{ X_PolyText8, BadDrawable },
|
||||
{ X_PolyFillRectangle, BadDrawable },
|
||||
{ X_PolySegment, BadDrawable },
|
||||
{ X_ConfigureWindow, BadMatch },
|
||||
{ X_GrabKey, BadAccess },
|
||||
{ X_GetAtomName, BadAtom },
|
||||
{ 0, }
|
||||
};
|
||||
|
||||
static void
|
||||
|
@ -80,7 +80,7 @@ area_create(View *v, Area *pos, int scrn, uint width) {
|
||||
Area *a;
|
||||
|
||||
assert(!pos || pos->screen == scrn);
|
||||
SET(i);
|
||||
SET(index);
|
||||
if(v->areas) { /* Creating a column. */
|
||||
minwidth = column_minwidth();
|
||||
index = pos ? area_idx(pos) : 1;
|
||||
|
@ -153,6 +153,7 @@ ErrorCode ignored_xerrors[] = {
|
||||
{ X_ConfigureWindow, BadMatch },
|
||||
{ X_GrabKey, BadAccess },
|
||||
{ X_GetAtomName, BadAtom },
|
||||
{ 0, }
|
||||
};
|
||||
|
||||
void
|
||||
|
@ -195,7 +195,7 @@ initdisplay(void) {
|
||||
|
||||
/* Error handling */
|
||||
|
||||
ErrorCode ignored_xerrors[];
|
||||
extern ErrorCode ignored_xerrors[];
|
||||
static bool _trap_errors;
|
||||
static long nerrors;
|
||||
|
||||
|
@ -81,6 +81,10 @@ void warpmouse(int, int);
|
||||
void memory(void);
|
||||
int args(void);
|
||||
|
||||
ErrorCode ignored_xerrors[] = {
|
||||
{ 0, }
|
||||
};
|
||||
|
||||
/* main --- crack arguments, set up X stuff, run the main menu loop */
|
||||
|
||||
int
|
||||
|
Loading…
x
Reference in New Issue
Block a user