Merge lp:~sojkam1-fel/stellarium/screen-number into lp:stellarium

Proposed by Michal Sojka
Status: Merged
Merged at revision: 7417
Proposed branch: lp:~sojkam1-fel/stellarium/screen-number
Merge into: lp:stellarium
Diff against target: 20 lines (+4/-4)
1 file modified
src/StelMainView.cpp (+4/-4)
To merge this branch: bzr merge lp:~sojkam1-fel/stellarium/screen-number
Reviewer Review Type Date Requested Status
Alexander Wolf Approve
Review via email: mp+249776@code.launchpad.net

Description of the change

Another attempt - hopefully without conflicts.

To post a comment you must log in.
Revision history for this message
Alexander Wolf (alexwolf) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/StelMainView.cpp'
2--- src/StelMainView.cpp 2015-02-13 16:15:28 +0000
3+++ src/StelMainView.cpp 2015-02-15 16:14:23 +0000
4@@ -480,12 +480,12 @@
5
6 if (fullscreen)
7 {
8+ move(screenGeom.x(), screenGeom.y());
9 // The fullscreen window appears on screen where is the majority of
10- // the normal window. So we first resize (shrink) the normal window
11- // to screen area.
12+ // the normal window. Therefore we crop the normal window to the
13+ // screen area to ensure that the majority is not on another screen.
14+ setGeometry(geometry() & screenGeom);
15 setFullScreen(true);
16- move(screenGeom.x(), screenGeom.y());
17- resize(screenGeom.width(), screenGeom.height());
18 }
19 else
20 {