WarpToWindow SDL window

Hi,

I have encountered an unusual feature with WarpToWindow using an FvwmEvent and running these test SDL apps from an xterm.

https://docs.rs/crate/beryllium/0.13.0/source/examples/renderer_window.rs

https://github.com/aminosbh/basic-c-sdl-project

There are no error messages from fvwm. The app window just does not appear until a mouse click or keyboard ‘enter’, ‘space’,‘esc’. Once the window renders everything is as expected.

This is the adjustment to default /usr/share/fvwm3/default-config/config

DestroyFunc StartFunction
AddToFunc   StartFunction
+ I Test (Init) InitBackground
+ I Module FvwmButtons RightPanel
+ I Module FvwmEvent EventNewDesk
+ I Module FvwmEvent EventNewWindow

DestroyModuleConfig EventNewWindow:*
*EventNewWindow: Cmd 
*EventNewWindow: add_window "WarpToWindow"

Running debian:
Linux sweetpea 5.10.0-25-amd64 #1 SMP Debian 5.10.191-1 (2023-08-16) x86_64 GNU/Linux

Fvwm debian package:
fvwm3_1.0.6a+ds-1_amd64.deb

This also occurs in fvwm 2.6.8.

Thanks Daren.

This is a classic problem of the window context not known for the command you’re trying to run – that is “WarpToWindow”.

I would suggest instead, something like:

Style WhateverYourSDLWindowIsCalled InitialMapCommand WarpToWindow 50 50

No need for FvwmEvent here.

1 Like