From 422ddeddb9657fb4a193dd47cdbec31e7abe0437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 15 Jan 2015 14:15:20 +0100 Subject: [PATCH] window-x11: Remove duplicated condition The outer block already checks for window->frame, so don't repeat it. --- src/x11/window-x11.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/x11/window-x11.c b/src/x11/window-x11.c index 5476f998f..48818b40a 100644 --- a/src/x11/window-x11.c +++ b/src/x11/window-x11.c @@ -756,15 +756,12 @@ meta_window_x11_focus (MetaWindow *window, (window->shaded || !(window->input || window->take_focus))) { - if (window->frame) - { - meta_topic (META_DEBUG_FOCUS, - "Focusing frame of %s\n", window->desc); - meta_display_set_input_focus_window (window->display, - window, - TRUE, - timestamp); - } + meta_topic (META_DEBUG_FOCUS, + "Focusing frame of %s\n", window->desc); + meta_display_set_input_focus_window (window->display, + window, + TRUE, + timestamp); } else {