RBERRYPI ---------------- < Пред. | След. > -- < @ > -- < Сообщ. > -- < Эхи > --
 Nп/п : 24 из 100
 От   : Robert Riches                       3:633/10          08 июл 26 17:04:01
 К    : All                                                   08 июл 26 04:17:03
 Тема : Re: odd windowing issue (perl Tk)
----------------------------------------------------------------------------------
                                                                                 
@MSGID: 3:633/10 722fbd41
@REPLY: 3:633/10 a23c7f94
@PID: PyGate 1.5.18
@TID: PyGate/Linux 1.5.18
@NOTE: slrn/1.0.3 (Linux)
@CHRS: ASCII 1
@TZUTC: 0000
@REPLYADDR: spamtrap42@jacob21819.net
@REPLYTO: 3:633/10 UUCP
@RFC-Message-ID:
<slrn114t0o1.j16.spamtrap42@one.localnet>
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)
SEEN-BY: 19/10 50/109 153/757 218/840 840 220/70
221/1 6 360 226/17 100
SEEN-BY: 229/426 240/1120 267/800 301/1 113 812
310/31 335/364 341/66 463/68
SEEN-BY: 633/10 20 280 281 414 416 418 420 422
509 2744 712/848 770/1 3 100
SEEN-BY: 770/340 350 772/210 220 230 5019/40
5020/715 848 1042 4441 12000
SEEN-BY: 5030/49 722 1081 1474 5053/55 5061/133
5075/128
@PATH: 633/10 280 770/1 218/840 221/6 301/1
5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх