Skip to content
Snippets Groups Projects
Commit 4f716df3 authored by Olivier Fourdan's avatar Olivier Fourdan
Browse files

Include scroll left and right buttons for shade/unshade

(Old svn revision: 10973)
parent d9a38d81
No related branches found
No related tags found
No related merge requests found
...@@ -507,7 +507,7 @@ static inline void titleButton(Client *c, int state, XButtonEvent * ev) ...@@ -507,7 +507,7 @@ static inline void titleButton(Client *c, int state, XButtonEvent * ev)
/* Let GTK handle this for us. */ /* Let GTK handle this for us. */
} }
} }
else if(ev->button == Button4) else if((ev->button == Button4) || (ev->button == Button6))
{ {
/* Mouse wheel scroll up */ /* Mouse wheel scroll up */
if(!CLIENT_FLAG_TEST(c, CLIENT_FLAG_SHADED)) if(!CLIENT_FLAG_TEST(c, CLIENT_FLAG_SHADED))
...@@ -515,7 +515,7 @@ static inline void titleButton(Client *c, int state, XButtonEvent * ev) ...@@ -515,7 +515,7 @@ static inline void titleButton(Client *c, int state, XButtonEvent * ev)
clientShade(c); clientShade(c);
} }
} }
else if(ev->button == Button5) else if((ev->button == Button5) || (ev->button == Button7))
{ {
/* Mouse wheel scroll down */ /* Mouse wheel scroll down */
if(CLIENT_FLAG_TEST(c, CLIENT_FLAG_SHADED)) if(CLIENT_FLAG_TEST(c, CLIENT_FLAG_SHADED))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment