WarpToWindow SDL window


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



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:

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