mirror of
https://github.com/dylanaraps/sowm.git
synced 2026-11-28 21:08:41 +00:00
sowm: remove root global
This commit is contained in:
1 file changed
+1
-2
@@ -50,7 +50,6 @@ static int ws = 1, sw, sh, wx, wy;
|
|||||||
static unsigned int ww, wh;
|
static unsigned int ww, wh;
|
||||||
|
|
||||||
static Display *d;
|
static Display *d;
|
||||||
static Window root;
|
|
||||||
static XButtonEvent mouse;
|
static XButtonEvent mouse;
|
||||||
|
|
||||||
static void (*events[LASTEvent])(XEvent *e) = {
|
static void (*events[LASTEvent])(XEvent *e) = {
|
||||||
@@ -276,7 +275,7 @@ int main(void) {
|
|||||||
XSetErrorHandler(xerror);
|
XSetErrorHandler(xerror);
|
||||||
|
|
||||||
int s = DefaultScreen(d);
|
int s = DefaultScreen(d);
|
||||||
root = RootWindow(d, s);
|
Window root = RootWindow(d, s);
|
||||||
sw = XDisplayWidth(d, s);
|
sw = XDisplayWidth(d, s);
|
||||||
sh = XDisplayHeight(d, s);
|
sh = XDisplayHeight(d, s);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user