https://bugs.kde.org/show_bug.cgi?id=416716

            Bug ID: 416716
           Summary: Some dialogs are created off screen
           Product: krita
           Version: 4.2.8
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: General
          Assignee: krita-bugs-n...@kde.org
          Reporter: eleanorh...@outlook.com
  Target Milestone: ---

SUMMARY
When launched from the UI, some dialogs are created at the global screen
coordinate 0,0 which on my system is completely off screen, making the dialog
inaccessible.
I have observed this for the "Scale Image to New Size", "Resize Canvas", "Grow
Selection", "Shrink Selection", "Feather Selection", and "Border Selection"
dialogs. Other dialogs I have tried behave as expected.
STEPS TO REPRODUCE
1. Adjust screens (e.g., with xrandr) so that global coordinate 0,0 is off
screen.
2. Launch one of the above dialogs

OBSERVED RESULT
The Krita UI will fade to gray but no dialog will be visible.
xwininfo -root -tree will confirm that the dialog has been created at 0,0

EXPECTED RESULT
The dialog would appear in an accessible part of the screen -- presumably near
the center of the main Krita window

SOFTWARE/OS VERSIONS
Windows: N/A
macOS: N/A
Linux/KDE Plasma: Arch Linux, rolling, 4.19.97-1-lts Kernel
(available in About System)
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.66.0
Qt Version: 5.14.0

ADDITIONAL INFORMATION
wmctrl is able to move the dialog onto the screen and except for its placement
everything else seems to be fine about its behavior. I have been using this
hacky bash script as a work-around:
while IFS= read -r window; do
    wmctrl -r ${window} -e 0,0,733,-1,-1
done <<<"$(xwininfo -tree -root | grep -oP "(?<=\\\").*?Krita.*?(?=\\\")")"

Renaming my $HOME/.config/kritarc file or $HOME/.local/share/krita directory
did not affect the issue

I expect it is possible in xorg to place a screen at an arbitrary offset from
the global coordinates, but I do not know how practical this would be with the
more modern and intelligent screen adjustment tools. My system is in this
(admittedly unusual) state because I have two monitors side-by-side, with the
left screen about 700 pixels lower than the right one.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to