[metacity] window: fix copy/paste error



commit 82285db6e6fb8da4390ea35e72df880e529cb761
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Feb 28 14:50:53 2017 +0200

    window: fix copy/paste error
    
    Commit 921042390c38edae54cc48dabc20c336dfd1c613 was supposed to add
    g_return_if_fail() to meta_window_queue() not meta_window_unqueue().

 src/core/window.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index f4f090f..3c6914e 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -1757,9 +1757,6 @@ meta_window_unqueue (MetaWindow *window, guint queuebits)
 {
   gint queuenum;
 
-  /* Easier to debug by checking here rather than in the idle */
-  g_return_if_fail (!window->override_redirect || (queuebits & META_QUEUE_MOVE_RESIZE) == 0);
-
   for (queuenum=0; queuenum<NUMBER_OF_QUEUES; queuenum++)
     {
       if ((queuebits & 1<<queuenum) /* they have asked to unqueue */
@@ -1806,6 +1803,9 @@ meta_window_queue (MetaWindow *window, guint queuebits)
 {
   guint queuenum;
 
+  /* Easier to debug by checking here rather than in the idle */
+  g_return_if_fail (!window->override_redirect || (queuebits & META_QUEUE_MOVE_RESIZE) == 0);
+
   for (queuenum=0; queuenum<NUMBER_OF_QUEUES; queuenum++)
     {
       if (queuebits & 1<<queuenum)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]