Bug 422641

Summary: Difficulty Window is not relative to main window
Product: [Applications] ksudoku Reporter: tbohaning
Component: generalAssignee: spmorton
Status: RESOLVED FIXED    
Severity: wishlist CC: aacid, kde-games-bugs-null, spmorton, tbohaning
Priority: VLO    
Version First Reported In: 1.4.200380   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description tbohaning 2020-06-08 16:36:58 UTC
SUMMARY - Difficulty window is not relative to the main window. It's relative to the screen.


STEPS TO REPRODUCE
Drag KSudoku window to right of screen.

When starting a new game a series of windows are presented. First the "Choose your Game" window is presented in the main window. Once the user selects a game, then a "Difficulty Level" window is presented. This window is at a fixed location relative to the screen. It should be presented relative to the KSudoku main window to allow the game to be moved and all of the related windows be nearby.

OBSERVED RESULT
Difficulty window is presented near the left screen border.


EXPECTED RESULT
Window should be presented within the bounds of the main window.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma:
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION
Comment 1 Bug Janitor Service 2025-01-21 01:48:33 UTC
A possibly relevant merge request was started @ https://invent.kde.org/games/ksudoku/-/merge_requests/31
Comment 2 Bug Janitor Service 2025-01-21 03:39:05 UTC
A possibly relevant merge request was started @ https://invent.kde.org/games/ksudoku/-/merge_requests/32
Comment 3 tbohaning 2025-03-04 21:39:12 UTC
Using Version 1.4.24122

Under X11 the problem is resolved. Under Wayland, the pop up window needs to be always on top. It's coming up under the game window.
Comment 4 Albert Astals Cid 2025-03-22 01:11:14 UTC
Git commit 6ea76c3aa2f7ab44609d3e1bf4465f2ca79ca357 by Albert Astals Cid, on behalf of Scott Morton.
Committed on 22/03/2025 at 01:11.
Pushed by aacid into branch 'master'.

Fixes message boxes not relative to main window

M  +61   -108  src/generator/sudokuboard.cpp
M  +9    -7    src/generator/sudokuboard.h
M  +14   -13   src/gui/gamevariants.cpp
M  +8    -4    src/gui/gamevariants.h
M  +7    -7    src/gui/ksudoku.cpp
M  +5    -6    src/gui/serializer.cpp
M  +2    -2    src/gui/serializer.h
M  +6    -1    src/logic/CMakeLists.txt
M  +63   -25   src/logic/puzzle.cpp
M  +6    -2    src/logic/puzzle.h

https://invent.kde.org/games/ksudoku/-/commit/6ea76c3aa2f7ab44609d3e1bf4465f2ca79ca357