Skip to content

Commit

Permalink
Explain XOpenDisplay(NULL)
Browse files Browse the repository at this point in the history
  • Loading branch information
mk-pmb committed Jul 2, 2023
1 parent c1a34e8 commit 1f4f9bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xseticon-pmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ int main(int argc, char* argv[]) {
CARD32* icondata;
load_icon(imType, imPath, &nelements, &icondata);

Display* display = XOpenDisplay(NULL);
Display* display = XOpenDisplay(NULL); // NULL = use $DISPLAY env var
XSynchronize(display, TRUE);
if (!display) { failed("XOpenDisplay"); }
Atom iconprop = XInternAtom(display, "_NET_WM_ICON", 0);
Expand Down

0 comments on commit 1f4f9bc

Please sign in to comment.