diff --git a/src/compton.c b/src/compton.c index 2b312dd..0534eb5 100644 --- a/src/compton.c +++ b/src/compton.c @@ -826,14 +826,6 @@ void configure_root(session_t *ps, int width, int height) { } ps->damage = ps->damage_ring + ps->ndamage - 1; - // Re-redirect screen if required - if (ps->o.reredir_on_root_change && ps->redirected) { - redir_stop(ps); - if (!redir_start(ps)) { - return; - } - } - // Invalidate reg_ignore from the top rc_region_unref(&ps->list->reg_ignore); ps->list->reg_ignore_valid = false; diff --git a/src/config.h b/src/config.h index e36847f..5094b81 100644 --- a/src/config.h +++ b/src/config.h @@ -117,8 +117,6 @@ typedef struct options_t { switch_t redirected_force; /// Whether to stop painting. Controlled through D-Bus. switch_t stoppaint_force; - /// Whether to re-redirect screen on root size change. - bool reredir_on_root_change; /// Whether to reinitialize GLX on root size change. bool glx_reinit_on_root_change; /// Whether to enable D-Bus support. diff --git a/src/options.c b/src/options.c index 3826520..b2ceb7a 100644 --- a/src/options.c +++ b/src/options.c @@ -438,7 +438,6 @@ static const struct option longopts[] = { {"no-name-pixmap", no_argument, NULL, 320}, {"log-level", required_argument, NULL, 321}, {"log-file", required_argument, NULL, 322}, - {"reredir-on-root-change", no_argument, NULL, 731}, {"glx-reinit-on-root-change", no_argument, NULL, 732}, {"experimental-backends", no_argument, NULL, 733}, {"monitor-repaint", no_argument, NULL, 800}, @@ -769,7 +768,6 @@ void get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable, break; } P_CASEBOOL(319, no_x_selection); - P_CASEBOOL(731, reredir_on_root_change); P_CASEBOOL(732, glx_reinit_on_root_change); P_CASEBOOL(733, experimental_backends); P_CASEBOOL(800, monitor_repaint);