On Mon, 8 May 2017 15:29:08 +0100 Stewart Douglas wrote:
SD> On rebuilding wx with gtk3 rather than gtk2, have spotted a change in
SD> behaviour on window positioning.
SD>
SD> Platform: Debian test
SD> gtk2 WX version: git head on 2nd May,
SD> configure --enable-std-string --enable-stl --enable-std_containers
SD> --enable-std_iostreams --enable-mediactrl --with-gtk=2 CXXFLAGS="-std=c++11"
SD>
SD> gtk3 WX version: git head on 6th May
SD> configure --enable-std-string --enable-stl --enable-std_containers
SD> --enable-std_iostreams --enable-mediactrl --with-gtk=3 CXXFLAGS="-std=c++11"
SD>
SD> With the gtk2 version, my main app window is positioned in the centre of
SD> the screen, and child windows are centred too - this includes windows I
SD> have coded and dialog boxes.
SD>
SD> With the gtk3 version, my main app window is position top left of the
SD> screen, and child windows are position top left also, with dialog boxes
SD> being centred on the parent window.
SD>
SD> I'm using wxFormBuilder to create the frames etc, and this is
SD> initialising windows with wxDefaultPosition. Has the meaning of this
SD> changed between the two toolkits ?
I think so, but the simplest way to check it would seem to be to just
build and run the minimal sample (which doesn't have any wxFB-generated
code) using the two toolkits on your system. If you also see the same
difference in behaviour with it, then it must be a GTK+ change.
SD> I've also tried moving my child windows explicitly, either by
SD> specifying an explicit window position in wxFB, or by grabbing the
SD> parent window position, adding an offset to this position and moving
SD> the child window to the new position. Both approaches have no impact in
SD> the gtk3 code.
This looks really bad. What window manager do you use?
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/