From owner-freebsd-emulation@freebsd.org Fri Jun 16 15:10:35 2017 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 02DE1C3116D for ; Fri, 16 Jun 2017 15:10:35 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E313983903 for ; Fri, 16 Jun 2017 15:10:34 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id DF86EC3116C; Fri, 16 Jun 2017 15:10:34 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DECE1C3116A; Fri, 16 Jun 2017 15:10:34 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from mail.in-addr.com (mail.in-addr.com [IPv6:2a01:4f8:191:61e8::2525:2525]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AB29683901; Fri, 16 Jun 2017 15:10:34 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from gjp by mail.in-addr.com with local (Exim 4.89 (FreeBSD)) (envelope-from ) id 1dLstL-000Fju-M6; Fri, 16 Jun 2017 16:10:31 +0100 Date: Fri, 16 Jun 2017 16:10:31 +0100 From: Gary Palmer To: emulation@freebsd.org, freebsd-virtualization@freebsd.org Subject: Re: VBox 5 getting window height wrong Message-ID: <20170616151031.GD74033@in-addr.com> References: <20170614105419.GB74033@in-addr.com> <1497524900.6640.1.camel@fastmail.fm> <20170615150151.GC74033@in-addr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170615150151.GC74033@in-addr.com> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on mail.in-addr.com); SAEximRunCond expanded to false X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2017 15:10:35 -0000 After a bit of digging, I've commented out two lines in src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp that call VBoxGlobal::normalizeGeometry. That stops client windows from becoming midgets. Looking further into the logs it looks like VBox gets told my desktop is 5 pixels high (!) 00:00:00.525738 GUI: UIDesktopWidgetWatchdog::sltHandleHostScreenAvailableGeometryCalculated: Screen 0 work area is actually resized to: 0x599 x 1920x5 and then sends a setGeometry() request with height set to -26. If I get time I'll try and figure out Whisky Tango Foxtrot On Thu, Jun 15, 2017 at 04:01:51PM +0100, Gary Palmer wrote: > > [ add cc of vbox@freebsd.org which is a better list for this I think ] > > Hi, > > Updating to the correct Guest Additions doesn't fix the issue. Whether > GA is installed or not doesn't seem to make much difference to this problem > > I've also changed from QT4 (which I was using) to QT5 with no change > > Thanks, > > Gary > > On Thu, Jun 15, 2017 at 01:08:20PM +0200, Daniel Tihanyi wrote: > > Hi, > > > > Do you have the right version of Guest Additions installed on your > > guests? I also have Windows 10 as a VM in VirtualBox (though it's > > FreeBSD 11), but it works for me without any problems. > > > > Daniel Tihanyi > > > > On Wed, 2017-06-14 at 11:54 +0100, Gary Palmer wrote: > > > Hi, > > > > > > Ever since upgrading from vbox 4 (which had occasional window placement > > > or size issues, but nothing serious), vbox 5 has consistently had a problem > > > where on starting a VM the window height is always reset to a fraction of > > > what it should be. If I size the window properly by hand, and then select > > > View -> Adjust Window Size it goes back to the wrong size again. > > > > > > Anyone else seen this? > > > > > > With Win10 it's worse - unless I maximise the window it keeps getting reset > > > to the wrong height, I think by communication with the additions installed > > > in the client. > > > > > > virtualbox-ose-5.1.22_1 General-purpose full virtualizer for x86 hardware > > > virtualbox-ose-kmod-5.1.22 VirtualBox kernel module for FreeBSD > > > > > > 10.3-RELEASE-p18 > > > > > > Thanks, > > > > > > Gary > > > > > > P.S. Please keep me on CC as I am not subscribed to this list > > > _______________________________________________ > > > freebsd-virtualization@freebsd.org mailing list > > > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > > > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org" > > > _______________________________________________ > freebsd-emulation@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-emulation > To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org" >