Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove some defaults that dont make sense
[spectrwm.git]
/
lib
/
swm_hack.c
diff --git
a/lib/swm_hack.c
b/lib/swm_hack.c
index
bb89545
..
c5f5b5b
100644
(file)
--- a/
lib/swm_hack.c
+++ b/
lib/swm_hack.c
@@
-57,6
+57,8
@@
static Window root = None;
static int xterm = 0;
static Display *display = NULL;
static int xterm = 0;
static Display *display = NULL;
+void set_property(Display *, Window, char *, char *);
+
/* Find our root window */
static Window
MyRoot(Display * dpy)
/* Find our root window */
static Window
MyRoot(Display * dpy)
@@
-138,17
+140,17
@@
XCreateWindow(Display *dpy, Window parent, int x, int y,
display = dpy;
}
display = dpy;
}
- if (parent == DefaultRootWindow(display))
- parent = MyRoot(display);
+ if (parent == DefaultRootWindow(dpy))
+ parent = MyRoot(dpy);
- id = (*func) (display, parent, x, y, width, height, border_width,
+ id = (*func) (dpy, parent, x, y, width, height, border_width,
depth, clss, visual, valuemask, attributes);
if (id) {
if ((env = getenv("_SWM_WS")) != NULL)
depth, clss, visual, valuemask, attributes);
if (id) {
if ((env = getenv("_SWM_WS")) != NULL)
- set_property(display, id, "_SWM_WS", env);
+ set_property(dpy, id, "_SWM_WS", env);
if ((env = getenv("_SWM_PID")) != NULL)
if ((env = getenv("_SWM_PID")) != NULL)
- set_property(display, id, "_SWM_PID", env);
+ set_property(dpy, id, "_SWM_PID", env);
if ((env = getenv("_SWM_XTERM_FONTADJ")) != NULL) {
unsetenv("_SWM_XTERM_FONTADJ");
xterm = 1;
if ((env = getenv("_SWM_XTERM_FONTADJ")) != NULL) {
unsetenv("_SWM_XTERM_FONTADJ");
xterm = 1;