diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2013-10-22 12:40:54 -0700 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-10-22 12:40:54 -0700 |
commit | 10ddd97ecffe16a6a5e7329f0be4f0ba381dd8b2 (patch) | |
tree | c49b95fdfef7dfaf11b2ae6c62ee36878d89e77a /src/compositor-drm.c | |
parent | 2e611264a31294bacdfb6ec0fd9a695599226d2c (diff) | |
download | weston-10ddd97ecffe16a6a5e7329f0be4f0ba381dd8b2.tar.gz |
compositor: Remove redundant and not well-defined focus field
It was never clear what this field really did.
Diffstat (limited to 'src/compositor-drm.c')
-rw-r--r-- | src/compositor-drm.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 2f339462..60b4cbad 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -2364,7 +2364,6 @@ session_notify(struct wl_listener *listener, void *data) if (ec->base.session_active) { weston_log("activating session\n"); - compositor->focus = 1; compositor->state = ec->prev_state; drm_compositor_set_modes(ec); weston_compositor_damage_all(compositor); @@ -2373,7 +2372,6 @@ session_notify(struct wl_listener *listener, void *data) weston_log("deactivating session\n"); udev_input_disable(&ec->input); - compositor->focus = 0; ec->prev_state = compositor->state; weston_compositor_offscreen(compositor); @@ -2672,8 +2670,6 @@ drm_compositor_create(struct wl_display *display, ec->base.destroy = drm_destroy; ec->base.restore = drm_restore; - ec->base.focus = 1; - ec->prev_state = WESTON_COMPOSITOR_ACTIVE; for (key = KEY_F1; key < KEY_F9; key++) |