# HG changeset patch # User cannam # Date 1232449732 0 # Tue Jan 20 11:08:52 2009 +0000 # Branch wmx # Node ID b235ccd048d385909a5ff54a4cbfcc4a5d7c1de1 # Parent 97171595654b4e3da3fdac0bb1b3286b4f0a3ab4 * I'm a total idiot -- the last change moved this block of code, but it was still in the wrong place (before screens had been counted) diff --git a/Manager.C b/Manager.C --- a/Manager.C +++ b/Manager.C @@ -248,17 +248,6 @@ m_shell = (char *)getenv("SHELL"); if (!m_shell) m_shell = NewString("/bin/sh"); -#ifdef CONFIG_USE_COMPOSITE - int ev, er; - if (XCompositeQueryExtension(m_display, &ev, &er)) { - fprintf(stderr, "\n Enabling composite extension.\n"); - for (int i = 0; i < m_screensTotal; ++i) { - XCompositeRedirectSubwindows(m_display, RootWindow(m_display, i), - CompositeRedirectAutomatic); - } - } -#endif - // find out what the Alt keycode and thus modifier mask are int kpk = 0; int kmin = 0; @@ -355,7 +344,18 @@ if (m_screensTotal > 1) { fprintf(stderr, "\n Detected %d screens.", m_screensTotal); } - + +#ifdef CONFIG_USE_COMPOSITE + int ev, er; + if (XCompositeQueryExtension(m_display, &ev, &er)) { + fprintf(stderr, "\n Enabling composite extension.\n"); + for (int i = 0; i < m_screensTotal; ++i) { + XCompositeRedirectSubwindows(m_display, RootWindow(m_display, i), + CompositeRedirectAutomatic); + } + } +#endif + XSetSelectionOwner(m_display, Atoms::wmx_running, None, timestamp(True)); // used to have m_menuWindow XSync(m_display, False);