parent
385572ec64
commit
506ac3e4ac
@ -69,7 +69,7 @@ option(WITH_XCOMPOSITE "XCOMPOSITE support" OFF)
|
||||
option(WITH_XKB "XKB support" ON)
|
||||
|
||||
if(NOT DEFINED ENABLE_XRANDR_MONITORS)
|
||||
set(ENABLE_XRANDR_MONITORS OFF CACHE STRING "Enable XRandR monitor feature (requires version 1.5+)")
|
||||
set(ENABLE_XRANDR_MONITORS ON CACHE STRING "Enable XRandR monitor feature (requires version 1.5+)")
|
||||
endif()
|
||||
|
||||
# }}}
|
||||
|
@ -84,6 +84,7 @@ namespace randr_util {
|
||||
return monitors;
|
||||
}
|
||||
|
||||
#if ENABLE_XRANDR_MONITORS
|
||||
if (check_monitor_support()) {
|
||||
for (auto&& mon : conn.get_monitors(root, true).monitors()) {
|
||||
try {
|
||||
@ -94,6 +95,7 @@ namespace randr_util {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
for (auto&& output : conn.get_screen_resources(root).outputs()) {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user