Comments (10)
Same problem. This is very annoying.
from goldendict.
Solution seems to be pretty easy though!
change
QRect desktop = QApplication::desktop()->screenGeometry();
in scanpopup.cc to
QRect desktop = QApplication::desktop()->screenGeometry(1);
that's all!
from goldendict.
@sencer, why specifically screen 1? What if user tries to work with GoldenDict on screen 2 or 3 or 4? :) I would say that the 100% correct fix would be to detect the current screen and limit the pop-up to this particular current screen.
from goldendict.
Because screen(1) gives the current screen?
from goldendict.
Looking at the docs:
const QRect QDesktopWidget::screenGeometry(int screen = -1) const
Returns the geometry of the screen with index screen.
The default screen is used if screen is -1.
So it looks like the screen(1) would just return the first screen, it might not be the default one, and it might not be the current one.
from goldendict.
Interesting, since I just compiled goldendict on my ubuntu box with two screens and the scan popup window appears in which ever monitor I am on.
Hence, either qt indexes screens with the active one being the 1st, or there is a handy bug here.
from goldendict.
While currently this works, I guess something including QDesktopWidget::screenNumber would be a better way of doing it. Perhaps just?
QRect desktop = QApplication::desktop()->screenGeometry(QDesktopWidget::screenNumber());
from goldendict.
@sencer, even if this change is trivial we have to test in different platforms: OS X, Windows (XP, Vista, 7, 8) and Linux with different Window Managers.
from goldendict.
Sure.
from goldendict.
Once we are done with 1.5 release, I'll take a closer look. I wanted to install Linux on my main workstation (with two monitors) for quite some time already... :)
from goldendict.
Related Issues (20)
- Question: how can I see all compile options? HOT 2
- Can't import offline dict files HOT 3
- [Winget] Write version into the registry
- Run Python script as `Programs` dictionary return about `UnicodeEncodeError`. HOT 4
- x86_64-linux-gnu-strip: /usr/local/share/applications/org.goldendict.GoldenDict.desktop: file format not recognized HOT 2
- Online dictionary pronunciation problem
- The theme doesn't show some things clearly HOT 1
- [request] keyboard binding for "close all tabs except current" HOT 2
- janky scrolling in qt5 build (compared with qt4)? HOT 1
- [Feature request] Vim keyboard shortcuts HOT 2
- Is GoldenDict introducing a Command+C bug on my mac? HOT 4
- "Page Setup" link in the 'File' menu is not working
- to allow a hierarchy of PoPup HOT 2
- MacOS release HOT 3
- what is this???? search panel is not normal HOT 1
- equivalent packages for building on fedora HOT 1
- [Feature] Can Epub be a supported Dictionary Format? HOT 1
- Hyperlink inbetween dictionaries automatic NOT redirect to the clicked dictionary HOT 1
- Android version has disappeared from Google Play HOT 2
- request: provide server to use with web browser HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goldendict.