summaryrefslogtreecommitdiff
path: root/mcwm.c
diff options
context:
space:
mode:
authorMC <mc@hack.org>2010-06-21 12:10:08 +0200
committerMC <mc@hack.org>2010-06-21 12:10:08 +0200
commit8568c8791fd34b618ee9b3f68d580af560e357cb (patch)
treeec8013acb356025e76c43966f08ce5eebba0b0bd /mcwm.c
parent7d13534fecc65650972782805413157e826d6397 (diff)
downloadmcwm-8568c8791fd34b618ee9b3f68d580af560e357cb.zip
Don't need to set focusin twice.
Diffstat (limited to 'mcwm.c')
-rw-r--r--mcwm.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/mcwm.c b/mcwm.c
index 11fe0b2..e290b1c 100644
--- a/mcwm.c
+++ b/mcwm.c
@@ -336,7 +336,7 @@ int setupscreen(void)
setfocus(pointer->child);
free(pointer);
}
-
+
xcb_flush(conn);
free(reply);
@@ -1391,11 +1391,7 @@ int main(int argc, char **argv)
/* Get the first screen */
screen = xcb_setup_roots_iterator(xcb_get_setup(conn)).data;
-
root = screen->root;
- /* Initial focus is root */
- /* FIXME: Ask the X server what window has focus. */
- focuswin = screen->root;
PDEBUG("Screen size: %dx%d\nRoot window: %d\n", screen->width_in_pixels,
screen->height_in_pixels, screen->root);