@@ 263,10 263,8 @@ private:
#define CONFIG_CLIENTMENU_BUTTON Button1
#define CONFIG_COMMANDMENU_BUTTON Button2
#define CONFIG_CIRCULATE_BUTTON Button3 // switch window, when over frame
-#define CONFIG_PREVCHANNEL_BUTTON CONFIG_NO_BUTTON // flip channel, when over frame
-#define CONFIG_NEXTCHANNEL_BUTTON CONFIG_NO_BUTTON
-//#define CONFIG_PREVCHANNEL_BUTTON CONFIG_NO_BUTTON
-//#define CONFIG_NEXTCHANNEL_BUTTON CONFIG_NO_BUTTON
+#define CONFIG_PREVCHANNEL_BUTTON Button5 // flip channel, when over frame
+#define CONFIG_NEXTCHANNEL_BUTTON Button4 // flip channel, when over frame
// ==============================
@@ 229,17 229,6 @@ WindowManager::WindowManager(int argc, c
fprintf(stderr, "\n NETWM compliant.");
-#ifdef CONFIG_USE_COMPOSITE
- int ev, er;
- if (XCompositeQueryExtension(m_display, &ev, &er)) {
- fprintf(stderr, " Composite extension enabled.");
- for (int i = 0; i < m_screensTotal; ++i) {
- XCompositeRedirectSubwindows(m_display, RootWindow(m_display, i),
- CompositeRedirectAutomatic);
- }
- }
-#endif
-
fprintf(stderr, "\n Command menu taken from ");
if (wmxdir == NULL) {
fprintf(stderr, "%s/%s.\n", home, CONFIG_COMMAND_MENU);
@@ 259,6 248,17 @@ WindowManager::WindowManager(int argc, c
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;