Toggling compositing is specific only to X11 so move the corresponding shortcut to the X11 compositor implementation.