Summary: | windows go off screen after disconnection/reconnection of an external screen. | ||
---|---|---|---|
Product: | XQuartz | Reporter: | Pascal Bourguignon <pjb> |
Component: | Other | Assignee: | Jeremy Huddleston Sequoia <jeremyhu> |
Status: | RESOLVED MOVED | QA Contact: | Jeremy Huddleston Sequoia <jeremyhu> |
Severity: | normal | ||
Priority: | medium | ||
Version: | 2.7.9 (xserver-1.17.4) | ||
Hardware: | Other | ||
OS: | Mac OS X (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Pascal Bourguignon
2016-06-23 12:44:32 UTC
Probably unrelated, but it would have been nice if it had worked, I cannot move the window from another terminal apparently for lack of the XTEST extension: $ xdotool windowmove --relative window=0x80000d 0 1000 Warning: XTEST extension unavailable on '(null)'. Some functionality may be disabled; See 'man xdotool' for more info. X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 3 (X_GetWindowAttributes) Resource id in failed request: 0x0 Serial number of failed request: 14 Current serial number in output stream: 15 [pjb@macbook-trustonic :0.0 THP_WB_SDK-v1.0-beta]$ xwinlist 0x80000d "xterm": ("xterm" "XTerm") 1714x958+0+22 +94+1102 $ (In reply to Pascal Bourguignon from comment #1) > Probably unrelated, but it would have been nice if it had worked, I cannot > move the window from another terminal apparently for lack of the XTEST > extension: > > $ xdotool windowmove --relative window=0x80000d 0 1000 > Warning: XTEST extension unavailable on '(null)'. Some functionality may be > disabled; See 'man xdotool' for more info. > X Error of failed request: BadWindow (invalid Window parameter) > Major opcode of failed request: 3 (X_GetWindowAttributes) > Resource id in failed request: 0x0 > Serial number of failed request: 14 > Current serial number in output stream: 15 > [pjb@macbook-trustonic :0.0 THP_WB_SDK-v1.0-beta]$ xwinlist > 0x80000d "xterm": ("xterm" "XTerm") 1714x958+0+22 +94+1102 > $ As mentioned in the man page: defaults write org.macosforge.xquartz.X11 enable_test_extensions -boolean true This option defaults to false and is only accessible through the command line. Enable this option to turn on the DEC-XTRAP, RECORD, and XTEST extensions in the server. I set this default and relaunched XQuartz. Furthermore, I realized that my syntax was bad. However using the windowmove --relative command shows that the Y coordinate is always incremented by 44, in addition to the given relative offset: [pjb@macbook-trustonic :0.0 tmp]$ xwinlist ; for x in 10 -10 20 -20 ; do xdotool windowmove --relative 0x80000d= $x 0 ; xwinlist ; done 0x80000d "xterm": ("xterm" "XTerm") 644x388+0+22 +26+70 0x80000d "xterm": ("xterm" "XTerm") 644x388+0+22 +36+114 0x80000d "xterm": ("xterm" "XTerm") 644x388+0+22 +26+158 0x80000d "xterm": ("xterm" "XTerm") 644x388+0+22 +46+202 0x80000d "xterm": ("xterm" "XTerm") 644x388+0+22 +26+246 [pjb@macbook-trustonic :0.0 tmp]$ xwinlist ; for y in 10 -10 20 -20 ; do xdotool windowmove --relative 0x80000d= 0 $y ; xwinlist ; done 0x80000d "xterm": ("xterm" "XTerm") 644x388+0+22 +26+246 0x80000d "xterm": ("xterm" "XTerm") 644x388+0+22 +26+300 0x80000d "xterm": ("xterm" "XTerm") 644x388+0+22 +26+334 0x80000d "xterm": ("xterm" "XTerm") 644x388+0+22 +26+398 0x80000d "xterm": ("xterm" "XTerm") 644x388+0+22 +26+422 [pjb@macbook-trustonic :0.0 tmp]$ Playing with xdotool windowmove shows that moving it over to the coordinates of the other screen doesn't make the window switch to the other screen. We have to manually move the window over to the other screen to then be able to xdotool windowmove it on the other screen. -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/749. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.