Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

qTox changes window position on every restart #2349

Open
towlie opened this issue Oct 6, 2015 · 8 comments
Open

qTox changes window position on every restart #2349

towlie opened this issue Oct 6, 2015 · 8 comments
Labels
C-bug The issue contains a bug report

Comments

@towlie
Copy link
Contributor

towlie commented Oct 6, 2015

I saw this on Windows 7 and 10 (x64)
It moves a few pixels to the left and a huge step to the top:
The unwanted behaviour starts at 3. Window size is the same.

  1. New position set:
    0
  2. First restart (nothing changed):
    1
  3. Second restart:
    2
@PKEv
Copy link
Contributor

PKEv commented Oct 6, 2015

@towlie
Copy link
Contributor Author

towlie commented Oct 6, 2015

Ah I see, it always takes the border size when it moves to the left and up. So it seems that qTox is missing special window geometry parameters which are required for windows.

@ghost
Copy link

ghost commented Oct 9, 2015

RE "Windows only?": for me (Cinnamon v2.6.13, 2 monitors), it starts always in the same position. The login window in the primary monitor, at the top-middle; after login in, the user window appears in the second monitor, at the top-left corner.

@zetok zetok removed the OS-windows label Oct 10, 2015
@zetok
Copy link
Contributor

zetok commented Oct 10, 2015

Re: "Windows only?" - apparently not for @agilob; from #2348 (comment):

(…) KDE5. Window is moved a few pixels each restart.

@towlie
Copy link
Contributor Author

towlie commented Oct 10, 2015

I think what @kehugter described is something else. When you start qTox the first time without moving it then qTox will spawn on the upper left of your desktop next time. That happens because qTox only saves the position on move or size change. (And maybe he uses an old version which did not allow saving a new start position? See #2348)

@ghost
Copy link

ghost commented Oct 10, 2015

And maybe he uses an old version which did not allow saving a new start position?

So it seems. Updated again and now the user window remembers the size, but it moves a few pixels up and to the left after every login (no need to restart qTox). The login window is displayed on a fixed position every time:

01

The window properties are shared among profiles. Is that OK?

Also: using a single monitor, the login window is displayed at the centre of the screen. The position/size of a user window previously on the external monitor is reset to the centre of the screen. No issues there.

@towlie
Copy link
Contributor Author

towlie commented Oct 10, 2015

So it is not windows only. If look at http://doc.qt.io/qt-5/application-windows.html#window-geometry then this also makes sense. So we just have to wait until someone will look at this.

@towlie towlie changed the title qTox changes window position on every restart (Windows only?) qTox changes window position on every restart Oct 10, 2015
@towlie
Copy link
Contributor Author

towlie commented Oct 10, 2015

It looks like qTox is ignoring DE borders when it tries to restore the window position.
So it uses this as start point (upper left point):
zoom

But it should use this point:
zoom1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C-bug The issue contains a bug report
Projects
None yet
Development

No branches or pull requests

4 participants