aboutsummaryrefslogtreecommitdiffstats
path: root/id/thank-you
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Updated Estonian translation"Thomas Backlund2014-10-121-0/+1
| | | | This reverts commit a0b2d09125d7911656fe4cb286f20643c4432281.
* Updated Estonian translationMarek Laane2014-10-121-1/+0
|
* added Indonesian redirection (new language)Filip Komar2013-01-011-0/+1
b27c786a784db886215e17047d8f98d8f1'>commitdiffstats
path: root/tools/xhost+.c
blob: 58781274eff5ad5cd4d088934731abdd94b7c623 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <stdlib.h>
#include <X11/Xlib.h>


int main(int argc, char **argv) {
  Display *d = XOpenDisplay(getenv("DISPLAY") ? getenv("DISPLAY") : ":0");
  if (d == NULL) exit(1);
  XDisableAccessControl(d);
  XCloseDisplay(d);
  exit(0);
}