[mutter] window: Include window itself in transient loop check
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] window: Include window itself in transient loop check
- Date: Thu, 22 Jun 2017 06:50:48 +0000 (UTC)
commit 5f49bda5917f4a0a0bc966d83fc49e41ac0ca772
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Jun 7 14:12:39 2017 +0200
window: Include window itself in transient loop check
While it doesn't make sense to set a window as transient to
itself, our existing check whether making a window transient
doesn't cover it, so it's still possible to create an infinite
loop.
https://bugzilla.gnome.org/show_bug.cgi?id=783502
src/core/window.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 36ea96f..a6ec04f 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -7508,7 +7508,7 @@ check_transient_for_loop (MetaWindow *window,
{
while (parent)
{
- if (parent->transient_for == window)
+ if (parent == window)
return TRUE;
parent = parent->transient_for;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]