Comment 4 for bug 1575216

Revision history for this message
Gerry Boland (gerboland) wrote :

This is the current behaviour of qtubuntu:

1. webbrowser launches & creates a window
2. Qt creates window on the "primary" screen - which is the first screen it ever saw. This is the phone screen.
3. Oxide reads the current screen, and the scale parameter for it: 2.25 here
4. Once the window is shown, Unity8 places the window on the external screen
5. Webbrowser & oxide get notified their window is *moved* to the external screen
6. Oxide reads the current screen, and the scale parameter for it: 1.0 now

My current suspicion is that the Oxide view isn't resizing when its screen is changed. Testing this is tough for me atm, I'm curious if a patch like

+++ qt/quick/oxide_qquick_contents_view.cc
void ContentsView::screenChanged(QScreen* screen) {
  screenChangedHelper(screen);

  if (!proxy()) {
    return;
  }

  proxy()->screenUpdated();
+ proxy()->wasResized();
}

might have an impact. I hope Chris can try this out soon.