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

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

 



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
      }
  }



_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list





[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux