Skip to content

Commit efaa7ef

Browse files
authored
Merge branch 'yshui:next' into next
2 parents 2986145 + be57747 commit efaa7ef

File tree

8 files changed

+2
-150
lines changed

8 files changed

+2
-150
lines changed

meson_options.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ option('regex', type: 'boolean', value: true, description: 'Enable regex support
44
option('opengl', type: 'boolean', value: true, description: 'Enable features that require opengl (opengl backend, and opengl vsync methods)')
55
option('dbus', type: 'boolean', value: true, description: 'Enable support for D-Bus remote control')
66

7-
option('xrescheck', type: 'boolean', value: false, description: 'Enable X resource leak checker (for debug only)')
8-
97
option('compton', type: 'boolean', value: true, description: 'Install backwards compat with compton')
108

119
option('with_docs', type: 'boolean', value: false, description: 'Build documentation and man pages')

src/backend/gl/glx.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,9 @@ static void glx_release_image(backend_t *base, struct gl_texture *tex) {
179179
void glx_deinit(backend_t *base) {
180180
struct _glx_data *gd = (void *)base;
181181

182-
gl_deinit(&gd->gl);
183-
184182
// Destroy GLX context
185183
if (gd->ctx) {
184+
gl_deinit(&gd->gl);
186185
glXMakeCurrent(base->c->dpy, None, NULL);
187186
glXDestroyContext(base->c->dpy, gd->ctx);
188187
gd->ctx = 0;
@@ -297,7 +296,7 @@ static backend_t *glx_init(session_t *ps, xcb_window_t target) {
297296
}
298297

299298
gd->ctx = glXCreateContextAttribsARB(ps->c.dpy, cfg[i], 0, true, attributes);
300-
free(cfg);
299+
free((void *)cfg);
301300

302301
if (!gd->ctx) {
303302
log_error("Failed to get GLX context.");

src/common.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@
3434
#include <picom/backend.h>
3535
#include <picom/types.h>
3636

37-
// X resource checker
38-
#ifdef DEBUG_XRC
39-
#include "xrescheck.h"
40-
#endif
41-
4237
// FIXME This list of includes should get shorter
4338
#include "backend/driver.h"
4439
#include "config.h"

src/meson.build

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@ if get_option('dbus')
9999
srcs += ['dbus.c', 'rtkit.c']
100100
endif
101101

102-
if get_option('xrescheck')
103-
cflags += ['-DDEBUG_XRC']
104-
srcs += ['xrescheck.c']
105-
endif
106-
107102
if get_option('unittest')
108103
cflags += ['-DUNIT_TEST']
109104
endif

src/picom.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2442,11 +2442,6 @@ static void session_destroy(session_t *ps) {
24422442
ev_io_stop(ps->loop, &ps->xiow);
24432443
destroy_atoms(ps->atoms);
24442444

2445-
#ifdef DEBUG_XRC
2446-
// Report about resource leakage
2447-
xrc_report_xid();
2448-
#endif
2449-
24502445
// Stop libev event handlers
24512446
ev_timer_stop(ps->loop, &ps->unredir_timer);
24522447
ev_timer_stop(ps->loop, &ps->draw_timer);

src/picom.modulemap

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ module common {
6464
module config {
6565
header "config.h"
6666
}
67-
module xrescheck {
68-
header "xrescheck.h"
69-
}
7067
module cache {
7168
header "cache.h"
7269
}

src/xrescheck.c

Lines changed: 0 additions & 65 deletions
This file was deleted.

src/xrescheck.h

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)