diff options
author | fluxgen <fluxgen> | 2003-05-12 11:14:47 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-05-12 11:14:47 (GMT) |
commit | 553cee1dde24c10efbaf031d460a365a5c948e48 (patch) | |
tree | 6f09492a29faaa3ec65501a88c6822b5a6376894 /src | |
parent | 47f5dbb143f7bc9d31ab4472bf5c643fad0583f3 (diff) | |
download | fluxbox-553cee1dde24c10efbaf031d460a365a5c948e48.zip fluxbox-553cee1dde24c10efbaf031d460a365a5c948e48.tar.bz2 |
trying to use XRRScreenChangeSelectInput
Diffstat (limited to 'src')
-rw-r--r-- | src/fluxbox.cc | 9 |
1 files changed, 8 insertions, 1 deletions
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 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: fluxbox.cc,v 1.141 2003/05/12 04:28:05 fluxgen Exp $ | 25 | // $Id: fluxbox.cc,v 1.142 2003/05/12 11:14:47 fluxgen Exp $ |
26 | 26 | ||
27 | #include "fluxbox.hh" | 27 | #include "fluxbox.hh" |
28 | 28 | ||
@@ -500,8 +500,15 @@ Fluxbox::Fluxbox(int argc, char **argv, const char *dpy_name, const char *rcfile | |||
500 | continue; | 500 | continue; |
501 | } | 501 | } |
502 | #ifdef HAVE_RANDR | 502 | #ifdef HAVE_RANDR |
503 | |||
504 | #ifdef X_RRScreenChangeSelectInput | ||
505 | // use old set randr event | ||
506 | XRRScreenChangeSelectInput(disp, screen->rootWindow().window(), True); | ||
507 | #else | ||
503 | XRRSelectInput(disp, screen->rootWindow().window(), | 508 | XRRSelectInput(disp, screen->rootWindow().window(), |
504 | RRScreenChangeNotifyMask); | 509 | RRScreenChangeNotifyMask); |
510 | #endif // X_RRScreenChangeSelectInput | ||
511 | |||
505 | #endif // HAVE_RANDR | 512 | #endif // HAVE_RANDR |
506 | 513 | ||
507 | m_screen_list.push_back(screen); | 514 | m_screen_list.push_back(screen); |