Fix grabbing code when DRM is enabled and X11 is disabled (#1956)

This commit is contained in:
James Le Cuirot 2023-12-31 20:57:45 +00:00 committed by GitHub
parent d97f724e3b
commit 64be0aa67a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,9 +51,6 @@ namespace platf::x11 {
xdisplay_t
make_display();
#else
// It's never something different from nullptr
util::safe_ptr<_XDisplay, std::default_delete<_XDisplay>>;
class cursor_t {
public:
static std::optional<cursor_t>
@ -65,7 +62,7 @@ namespace platf::x11 {
blend(img_t &, int, int) {}
};
xdisplay_t
void *
make_display() { return nullptr; }
#endif
} // namespace platf::x11