* Disable tooltips if using gamescope / Steam Deck.
On a Steam Deck, Prism Launcher's window is scaled to fit the screen.
Whenever a tool tip is shown, it is often display outside of the window,
causing the compositor to scale the view to fit the new bounding box.
This effect is quite jarring, and I don't like it. This patch adds a
small global event filter which swallows up the tool tip events. It is
currently not configurable, although I suppose that could be an option.
Signed-off-by: Mark Deneen <mdeneen@gmail.com>
* Move tooltip filter addition from the Main Window to the Application.
Signed-off-by: Mark Deneen <mdeneen@gmail.com>
* Add license information to new files
Signed-off-by: Mark Deneen <mdeneen@gmail.com>
* Remove other authors, they should not have been added in the first place
Signed-off-by: Mark Deneen <mdeneen@gmail.com>
* Correct the years as well
Signed-off-by: Mark Deneen <mdeneen@gmail.com>
* Update launcher/ui/ToolTipFilter.cpp
Co-authored-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com>
Signed-off-by: Mark Deneen <mdeneen@gmail.com>
* Update launcher/ui/ToolTipFilter.h
Co-authored-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com>
Signed-off-by: Mark Deneen <mdeneen@gmail.com>
---------
Signed-off-by: Mark Deneen <mdeneen@gmail.com>
Co-authored-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com>
fixes#4686 and fixes#4666
Forces jpg and jpeg to go through QPixmap first then to Icon.
The original behaivior used the QIcon internal engine to build the
QPixmap causing some inconsitencies.
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
fixes#4630
reversed the conditions to check for side because somewhere the mod side
is no initilized(easier to check one line than search where it is not
initialized)
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
lwjgl2 optionally requires the xrandr command line utility on linux, but
does not check if the executable actually exists before trying to use
it. We can force it to fall back to the xf86videomode implementation
by checking for the executable ourselves, and force disabling xrandr
with this boolean [1] if it does not exist.
Link: 2df01dd762/src/java/org/lwjgl/opengl/LinuxDisplay.java (L214) [1]
Signed-off-by: Blake Batson <bbatson101@gmail.com>
introduced here https://github.com/PrismLauncher/PrismLauncher/pull/3260fixes#4415
reason: some snapshot have Pre-Release in our meta but when searching in
Modrinth this needs to be translated to -pre and the reverse needed to
be done for filtering after we fetched the version.
Now there are snapshots with -pre in name and that works with Modrinth
but when we translate it back we replace it with Pre-Release so the
easeiest patch is just to double the version(one with -pre one with
Pre-Release)
The correct one would be to complicate the code and identify the
versions that need the transition and only apply this for those.
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Since we've started using ninja's multi-config generator, evaluating
CMAKE_BUILD_TYPE at configure-time is no longer reliable. Thankfully,
CMake offers "generator expressions" that are evaluated during build
system generation, which allows us to continue using these conditional
flags without much headache
Signed-off-by: Seth Flynn <getchoo@tuta.io>