window: Fix some minor constant type issues

This commit is contained in:
Jasper St. Pierre 2014-08-13 18:14:15 -04:00
parent c3950699bf
commit 7fa15c74b4

View File

@ -7574,7 +7574,7 @@ void
meta_window_set_transient_for (MetaWindow *window,
MetaWindow *parent)
{
if (meta_window_appears_focused (window) && window->transient_for != None)
if (meta_window_appears_focused (window) && window->transient_for != NULL)
meta_window_propagate_focus_appearance (window, FALSE);
/* may now be a dialog */
@ -7619,7 +7619,7 @@ meta_window_set_transient_for (MetaWindow *window,
if (!window->constructing && !window->override_redirect)
meta_window_queue (window, META_QUEUE_MOVE_RESIZE);
if (meta_window_appears_focused (window) && window->transient_for != None)
if (meta_window_appears_focused (window) && window->transient_for != NULL)
meta_window_propagate_focus_appearance (window, TRUE);
}