Skip to content

Commit

Permalink
fixup! Remove the legacy backends
Browse files Browse the repository at this point in the history
  • Loading branch information
yshui committed Feb 10, 2024
1 parent 1923b78 commit ae3e78e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
6 changes: 0 additions & 6 deletions src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,6 @@ typedef struct session {
/// Nanosecond offset of the first painting.
long paint_tm_offset;

#ifdef CONFIG_VSYNC_DRM
// === DRM VSync related ===
/// File descriptor of DRI device file. Used for DRM VSync.
int drm_fd;
#endif

// === X extension related ===
/// Event base number for X Fixes extension.
int xfixes_event;
Expand Down
5 changes: 0 additions & 5 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ if get_option('regex')
deps += [pcre]
endif

if get_option('vsync_drm')
cflags += ['-DCONFIG_VSYNC_DRM']
deps += [dependency('libdrm', required: true)]
endif

if get_option('opengl')
cflags += ['-DCONFIG_OPENGL', '-DGL_GLEXT_PROTOTYPES']
deps += [
Expand Down
12 changes: 0 additions & 12 deletions src/picom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1983,10 +1983,6 @@ static session_t *session_init(int argc, char **argv, Display *dpy,

.last_msc = 0,

#ifdef CONFIG_VSYNC_DRM
.drm_fd = -1,
#endif

.xfixes_event = 0,
.xfixes_error = 0,
.damage_event = 0,
Expand Down Expand Up @@ -2650,14 +2646,6 @@ static void session_destroy(session_t *ps) {
free(shader);
}

#ifdef CONFIG_VSYNC_DRM
// Close file opened for DRM VSync
if (ps->drm_fd >= 0) {
close(ps->drm_fd);
ps->drm_fd = -1;
}
#endif

// Release overlay window
if (ps->overlay) {
xcb_composite_release_overlay_window(ps->c.c, ps->overlay);
Expand Down

0 comments on commit ae3e78e

Please sign in to comment.