[mutter] window-x11: Remove duplicated condition
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] window-x11: Remove duplicated condition
- Date: Wed, 21 Jan 2015 14:42:52 +0000 (UTC)
commit 422ddeddb9657fb4a193dd47cdbec31e7abe0437
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Jan 15 14:15:20 2015 +0100
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 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/src/x11/window-x11.c b/src/x11/window-x11.c
index 5476f99..48818b4 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
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]