Re: FVWM: [fvwm] fltk window origin and fvwm

2014-05-22 Thread Dominik Vogt
On Thu, May 22, 2014 at 09:02:17PM +, szukw...@arcor.de wrote:
> I have written an image viewer that uses FLTK-1.3 .
> 
> On MS-WINDOWS (Win7) the origin of the image window is fixed at
> the current position and the image window height and/or width 
> changes with the width and height of the image.
> 
> On LINUX I use fvwm 2.6.5 .
> 
> With LINUX I have a severe problem: the image window hops around
> like a frog when the image window height and width changes with the
> width and height of the image. I have sent an EMAIL to the list
...

1. Could you make a minimal version of your program that still
exhibits the problem and send me the source code (along with
detailed instruction, if necessary)?

2. Also, please turn on some debug otuput with the following fvwm
command:

  bugopts DebugCRMotionMethod on

and post the output it produces (before trying (3)).

3. Trying the following styles one after another may or may not
help:

Style  MoveByProgramMethod UseGravity
Style  MoveByProgramMethod IgnoreGravity
Style  MoveByProgramMethod AutoDetect

(Actually, AutoDetect is the default and would probably not change
anything.)

4. Finally, if (3) does not fix the problem and recompiling fvwm
is no problem for you, could you please edit the file
fvwm/events.c:  In the function __handle_cr_on_client() there is
some disabled debug output:

  #if 0
fprintf(stderr,
"cre: %d(%d) %d(%d) %d(%d)x%d(%d) fw 0x%08x w 0x%08x "
"ew 0x%08x  '%s'\n",
...
  #endif

(At line 960 in the latest version.).  Could you change the "#if 0"
to "if 1" and recompile and reinstall fvwm?  This produces more
details about what happens when the window is moved or resized.

Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt



FVWM: [fvwm] fltk window origin and fvwm

2014-05-22 Thread szukw000
I have written an image viewer that uses FLTK-1.3 .

On MS-WINDOWS (Win7) the origin of the image window is fixed at
the current position and the image window height and/or width 
changes with the width and height of the image.

On LINUX I use fvwm 2.6.5 .

With LINUX I have a severe problem: the image window hops around
like a frog when the image window height and width changes with the
width and height of the image. I have sent an EMAIL to the list

 https://groups.google.com/forum/#!forum/fltkgeneral

and asked what I can do:

>> This does not fix the window at the (x,y) position and the window
>> hops around like a frog when the width/height of the still image
>> changes.
>
>That's odd.
>Seems to work OK for me (testing on F17 and ubuntu-13.10) -
>what does the resize demo form the test folder do? Does it work?
>
>> The problem is with LINUX.
>>
>> So what can I do turn this frog into an window?
>
>Are there nested windows or some thing like that?
>I guess even if there are multiple widgets in the container,
>it might be worth taking a look at init_sizes() after forcing
>a re-size, in case the widgets are "remembering" their initial
>states...

I have made a test. I have compiled and installed XFCE-4.10 and
found, that the image viewer shows the same stable behaviour as
with MS-WINDOWS: the window origin remains fixed while the width
and/or height of the image viewer changes.

Is it possible to configure FVWM such that the origin of the FLTK
window does not change?

winfried