On 2026-07-08, Mike Scott <
usenet.16@scottsonline.org.uk.invalid> wrote:
Hi all. A bit of an odd problem here.
I've a perl program that opens an X window using Tk. I specify the
geometry 1400x700+0+0.
Running under Mint, it works fine, and opens exactly as expected in the
top left screen corner.
On the Pi (pi4, 11/bullseye), it opens a window with the correct size
but a very odd position:
xwininfo: Window id: 0x1a00013 "Display"
Absolute upper-left X: 1782
Absolute upper-left Y: 30
Relative upper-left X: 2
Relative upper-left Y: 30
Width: 1400
Height: 700
Depth: 24
Visual: 0x21
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x20 (not installed)
Bit Gravity State: NorthWestGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +1782+30 --1262+30 --1262-350 +1782-350
-geometry 1400x700+1780+0
which is well off to the right, with the title bar concealed underneath
the top task bar.
Any thoughts please as to what might be going on?
(I know bulldog isn't the latest but I don't have any pressing need to upgrade. This machine is dedicated to running this one program.
I also see xrandr returns unexpected output about not being able to
fetch the gamma value for the screen, which it calls "default". But
maybe that's a red herring.)
Under some circumstances, the window manager can override the
size or position parameters. Under some other circumstances, the
application can ignore those parameters.
There is a program called devilspie (apparently named after a
song) that can force new (or old) windows to specified sizes and
positions.
--
Robert Riches
spamtrap42@jacob21819.net
(Yes, that is one of my email addresses.)
--- PyGate Linux v1.5.18
* Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)