diff options
-rw-r--r-- | src/virt-viewer-window.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c index 86a0e6d..2153eab 100644 --- a/src/virt-viewer-window.c +++ b/src/virt-viewer-window.c @@ -324,7 +324,7 @@ virt_viewer_window_desktop_resize(VirtViewerDisplay *display G_GNUC_UNUSED, VirtViewerWindow *self) { VirtViewerWindowPrivate *priv = self->priv; - if (priv->auto_resize && priv->window && !priv->fullscreen) + if (priv->auto_resize && !priv->fullscreen) virt_viewer_window_resize(self); } @@ -576,9 +576,6 @@ virt_viewer_window_disable_modifiers(VirtViewerWindow *self) GSList *accels; int i; - if (!priv->window) - return; - if (!priv->accel_enabled) return; @@ -615,9 +612,6 @@ virt_viewer_window_enable_modifiers(VirtViewerWindow *self) GSList *accels; int i; - if (!priv->window) - return; - if (priv->accel_enabled) return; |