mirror of
https://github.com/brl/mutter.git
synced 2025-02-09 18:04:09 +00:00
frames: Use an early return
To be more consistent with the rest of the code.
This commit is contained in:
parent
015864da09
commit
c8432cc430
@ -554,8 +554,12 @@ meta_frames_unmanage_window (MetaFrames *frames,
|
||||
|
||||
frame = g_hash_table_lookup (frames->frames, &xwindow);
|
||||
|
||||
if (frame)
|
||||
if (!frame)
|
||||
{
|
||||
meta_warning ("Frame 0x%lx not managed, can't unmanage\n", xwindow);
|
||||
return;
|
||||
}
|
||||
|
||||
/* restore the cursor */
|
||||
meta_core_set_screen_cursor (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
|
||||
frame->xwindow,
|
||||
@ -579,9 +583,6 @@ meta_frames_unmanage_window (MetaFrames *frames,
|
||||
|
||||
g_free (frame);
|
||||
}
|
||||
else
|
||||
meta_warning ("Frame 0x%lx not managed, can't unmanage\n", xwindow);
|
||||
}
|
||||
|
||||
static MetaUIFrame*
|
||||
meta_frames_lookup_window (MetaFrames *frames,
|
||||
|
Loading…
x
Reference in New Issue
Block a user