mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* key.c (init_key_x11): Don't try to use X11 if DISPLAY is not
set in the environment.
This commit is contained in:
parent
92da7e9dc0
commit
66b2b1381c
@ -1,3 +1,8 @@
|
||||
2003-02-23 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* key.c (init_key_x11): Don't try to use X11 if DISPLAY is not
|
||||
set in the environment.
|
||||
|
||||
2003-02-22 Pavel Tsekov <ptsekov@gmx.net>
|
||||
|
||||
* key.c: Add support for dynamic loading of libX11.
|
||||
|
@ -259,7 +259,7 @@ static Bool (*func_XQueryPointer) (Display *, Window, Window *, Window *,
|
||||
unsigned int *);
|
||||
|
||||
static GModule *x11_module;
|
||||
#endif /* HAVE_GMODULE */
|
||||
#endif /* HAVE_GMODULE */
|
||||
|
||||
static Display *x11_display;
|
||||
static Window x11_window;
|
||||
@ -269,7 +269,12 @@ init_key_x11 (void)
|
||||
{
|
||||
#ifdef HAVE_GMODULE
|
||||
gchar *x11_module_fname;
|
||||
#endif /* HAVE_GMODULE */
|
||||
|
||||
if (!getenv ("DISPLAY"))
|
||||
return;
|
||||
|
||||
#ifdef HAVE_GMODULE
|
||||
x11_module_fname = g_module_build_path (NULL, "X11");
|
||||
|
||||
if (!x11_module_fname)
|
||||
|
Loading…
Reference in New Issue
Block a user