-
-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* This file is part of Xpra. | ||
* Copyright (C) 2022 Antoine Martin <antoine@xpra.org> | ||
* Xpra is released under the terms of the GNU GPL v2, or, at your option, any | ||
* later version. See the file COPYING for details. | ||
*/ | ||
|
||
#include <stdint.h> | ||
#include "evdi_lib.h" | ||
|
||
void evdi_connect_compat(evdi_handle handle, const unsigned char *edid, | ||
const unsigned int edid_length, | ||
const uint32_t pixel_area_limit, | ||
const uint32_t pixel_per_second_limit) { | ||
#if LIBEVDI_VERSION_MAJOR>1 || LIBEVDI_VERSION_MINOR>11 | ||
return evdi_connect(handle, edid, edid_length, pixel_area_limit, pixel_per_second_limit); | ||
#else | ||
return evdi_connect(handle, edid, edid_length, pixel_per_second_limit); | ||
#endif | ||
} | ||
|
||
void evdi_enable_cursor_events_compat(evdi_handle handle, int enable) { | ||
#if LIBEVDI_VERSION_MAJOR>1 || LIBEVDI_VERSION_MINOR>9 || (LIBEVDI_VERSION_MINOR==9 && LIBEVDI_VERSION_PATCH>0) | ||
evdi_enable_cursor_events(handle, enable); | ||
#else | ||
//cannot be disabled with older API versions! | ||
if (enable) { | ||
evdi_enable_cursor_events(handle); | ||
} | ||
#endif | ||
} |