remove otherwm
This commit is contained in:
parent
2d63bf2825
commit
57785860b7
10
awesome.c
10
awesome.c
|
@ -45,7 +45,7 @@ DC dc;
|
||||||
/* static */
|
/* static */
|
||||||
|
|
||||||
static int (*xerrorxlib) (Display *, XErrorEvent *);
|
static int (*xerrorxlib) (Display *, XErrorEvent *);
|
||||||
static Bool otherwm = False, readin = True;
|
static Bool readin = True;
|
||||||
static Bool running = True;
|
static Bool running = True;
|
||||||
|
|
||||||
|
|
||||||
|
@ -208,11 +208,10 @@ setup(Display *disp, awesome_config *awesomeconf)
|
||||||
* Startup Error handler to check if another window manager
|
* Startup Error handler to check if another window manager
|
||||||
* is already running.
|
* is already running.
|
||||||
*/
|
*/
|
||||||
static int
|
static int __attribute__ ((noreturn))
|
||||||
xerrorstart(Display * dsply __attribute__ ((unused)), XErrorEvent * ee __attribute__ ((unused)))
|
xerrorstart(Display * dsply __attribute__ ((unused)), XErrorEvent * ee __attribute__ ((unused)))
|
||||||
{
|
{
|
||||||
otherwm = True;
|
eprint("awesome: another window manager is already running\n");
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* extern */
|
/* extern */
|
||||||
|
@ -305,9 +304,6 @@ main(int argc, char *argv[])
|
||||||
XSelectInput(dpy, root, SubstructureRedirectMask);
|
XSelectInput(dpy, root, SubstructureRedirectMask);
|
||||||
XSync(dpy, False);
|
XSync(dpy, False);
|
||||||
|
|
||||||
if(otherwm)
|
|
||||||
eprint("awesome: another window manager is already running\n");
|
|
||||||
|
|
||||||
XSync(dpy, False);
|
XSync(dpy, False);
|
||||||
XSetErrorHandler(NULL);
|
XSetErrorHandler(NULL);
|
||||||
xerrorxlib = XSetErrorHandler(xerror);
|
xerrorxlib = XSetErrorHandler(xerror);
|
||||||
|
|
Loading…
Reference in New Issue