From 553cee1dde24c10efbaf031d460a365a5c948e48 Mon Sep 17 00:00:00 2001 From: fluxgen <fluxgen> Date: Mon, 12 May 2003 11:14:47 +0000 Subject: trying to use XRRScreenChangeSelectInput --- src/fluxbox.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 780e8ab..ab35aff 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: fluxbox.cc,v 1.141 2003/05/12 04:28:05 fluxgen Exp $ +// $Id: fluxbox.cc,v 1.142 2003/05/12 11:14:47 fluxgen Exp $ #include "fluxbox.hh" @@ -500,8 +500,15 @@ Fluxbox::Fluxbox(int argc, char **argv, const char *dpy_name, const char *rcfile continue; } #ifdef HAVE_RANDR + +#ifdef X_RRScreenChangeSelectInput + // use old set randr event + XRRScreenChangeSelectInput(disp, screen->rootWindow().window(), True); +#else XRRSelectInput(disp, screen->rootWindow().window(), RRScreenChangeNotifyMask); +#endif // X_RRScreenChangeSelectInput + #endif // HAVE_RANDR m_screen_list.push_back(screen); -- cgit v0.11.2