set the global display var
This commit is contained in:
parent
cdcc526a02
commit
4c71c71d57
1 changed files with 2 additions and 0 deletions
|
@ -89,6 +89,8 @@ Display::Display()
|
||||||
int junk;
|
int junk;
|
||||||
(void)junk;
|
(void)junk;
|
||||||
|
|
||||||
|
display = this;
|
||||||
|
|
||||||
// Open the X display
|
// Open the X display
|
||||||
if (!(_display = XOpenDisplay(NULL))) {
|
if (!(_display = XOpenDisplay(NULL))) {
|
||||||
printf(_("Unable to open connection to the X server. Please set the \n\
|
printf(_("Unable to open connection to the X server. Please set the \n\
|
||||||
|
|
Loading…
Reference in a new issue