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

Re: [virt-tools-list] [PATCH virt-viewer] win32: maximize when leaving fullscreen the first time



Looks good, ack.

On 04/02/2013 01:54 PM, Marc-André Lureau wrote:
On windows, the client window may end up with a non-visible toolbar,
and overlapping the windows statusbar. To workaround this, let's
maximize the client the first time leaving fullscreen.

https://bugzilla.redhat.com/show_bug.cgi?id=916810
---
  src/virt-viewer-window.c | 6 ++++++
  1 file changed, 6 insertions(+)

diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
index c73de25..a87f994 100644
--- a/src/virt-viewer-window.c
+++ b/src/virt-viewer-window.c
@@ -520,7 +520,13 @@ virt_viewer_window_leave_fullscreen(VirtViewerWindow *self)
                            priv->before_fullscreen.width,
                            priv->before_fullscreen.height);
      } else {
+#ifdef G_OS_WIN32
+	/* win32 window manager isn't smart enough to place
+         * the window so that titlebar would be visible */
+        gtk_window_maximize(GTK_WINDOW(priv->window));
+#else
          virt_viewer_display_queue_resize(priv->display);
+#endif
      }
  }




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