[Development] Conditionally use xcb (or Xlib) in tst_qwindow.cpp?

2017-01-25 Thread Thomas Søndergaard
Hi, I can see there is code in tests that depending on e.g. Q_OS_WIN32 and Q_OS_UNIX conditionally includes, for the platform, universally available headers like . I would like to add a unit test that requires checking state on the native window behind QWindow. Doing this on windows with

[Development] Why doesn't xcb platform plugin use _NET_WM_STATE_HIDDEN?

2017-01-23 Thread Thomas Søndergaard
Why doesn't the XCB platform plugin use _NET_WM_STATE_HIDDEN? There are a number of bugs related to it QTBUG-31117, QTBUG-39376, QTBUG-34430 and the commit that address them (commit 382b7afbe253) uses the old WM_STATE. I am looking at this because I'm trying to fix QTBUG-57882 which is about the

Re: [Development] QWidget::setWindowState(Qt::WindowStates) vs QWindow::setWindowState(Qt::WindowState)

2017-01-19 Thread Thomas Søndergaard
Hi Bo On Thu, 19 Jan 2017 at 09.25, Bo Thorsen wrote: > Hej Thomas > > [...] > You ask for the best way to proceed: As usual with issues like this, you > > should enter a bug in the bug tracker. > I did, QTBUG-57882. See original post. Thomas

Re: [Development] QWidget::setWindowState(Qt::WindowStates) vs QWindow::setWindowState(Qt::WindowState)

2017-01-18 Thread Thomas Søndergaard
with these changes and implementing them in the xcb and windows platform plugins, but early feedback is always great, so I avoid wasting time. Thanks for making Qt Thomas On 17 January 2017 at 21:37, Thomas Søndergaard < thomas.sonderga...@karoshealth.com> wrote: > Hi, > &

[Development] QWidget::setWindowState(Qt::WindowStates) vs QWindow::setWindowState(Qt::WindowState)

2017-01-17 Thread Thomas Søndergaard
Hi, I'm looking at the Qt code with intention to fix it so this code QWidget widget; widget.setWindowState(Qt::WindowMaximized); widget.showMinized(); will show the window iconified and when the user (or program) unminimize the window it pops up maximized. This is currently not