summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas James Alexander Thurman <tthurman@src.gnome.org>2008-11-23 18:53:55 +0000
committerThomas James Alexander Thurman <tthurman@src.gnome.org>2008-11-23 18:53:55 +0000
commit41b6f0803e339425166d4a085e7dcad9e13e5e5c (patch)
treec984edf4a379e639d6ff1c99c6d1b3b9747b1242 /src
parent68ac59ff6d11b945ad8f10218f3ade890d5bd861 (diff)
downloadmetacity-41b6f0803e339425166d4a085e7dcad9e13e5e5c.tar.gz
remove apparently spurious warnings about operations on window "none"
* src/core/display.c: remove apparently spurious warnings about operations on window "none" svn path=/trunk/; revision=4026
Diffstat (limited to 'src')
-rw-r--r--src/core/display.c7
-rw-r--r--src/core/util.c2
2 files changed, 5 insertions, 4 deletions
diff --git a/src/core/display.c b/src/core/display.c
index 8169541b..daac23f3 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -3264,9 +3264,10 @@ meta_display_begin_grab_op (MetaDisplay *display,
if (display->grab_op != META_GRAB_OP_NONE)
{
- meta_warning ("Attempt to perform window operation %u on window %s when operation %u on %s already in effect\n",
- op, window ? window->desc : "none", display->grab_op,
- display->grab_window ? display->grab_window->desc : "none");
+ if (window)
+ meta_warning ("Attempt to perform window operation %u on window %s when operation %u on %s already in effect\n",
+ op, window->desc, display->grab_op,
+ display->grab_window ? display->grab_window->desc : "none");
return FALSE;
}
diff --git a/src/core/util.c b/src/core/util.c
index ca7df62a..bcfcb7f4 100644
--- a/src/core/util.c
+++ b/src/core/util.c
@@ -23,7 +23,7 @@
*/
#define _GNU_SOURCE
-#define _POSIX_C_SOURCE /* for fdopen() */
+#define _POSIX_C_SOURCE 200112L /* for fdopen() */
#include <config.h>
#include "util.h"