[gnome-applets/wip/segeiger/windowpicker: 7/15] windowpicker: drop unnecessary checks
- From: Sebastian Geiger <segeiger src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets/wip/segeiger/windowpicker: 7/15] windowpicker: drop unnecessary checks
- Date: Sun, 13 Oct 2019 12:18:31 +0000 (UTC)
commit 6b4a230ec105412e35831826a3806635ef3f6b13
Author: Sebastian Geiger <sbastig gmx net>
Date: Sat Oct 12 15:22:08 2019 +0200
windowpicker: drop unnecessary checks
windowpicker/src/task-item.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/windowpicker/src/task-item.c b/windowpicker/src/task-item.c
index 45ad088a3..5d4b58695 100644
--- a/windowpicker/src/task-item.c
+++ b/windowpicker/src/task-item.c
@@ -528,10 +528,9 @@ static void on_screen_active_window_changed (
WnckWindow *old_window,
TaskItem *item)
{
- g_return_if_fail (TASK_IS_ITEM (item));
WnckWindow *window;
window = item->window;
- g_return_if_fail (WNCK_IS_WINDOW (window));
+
if ((WNCK_IS_WINDOW (old_window) && window == old_window) ||
window == wnck_screen_get_active_window (screen))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]