Re: REWRITE: window staring on wrong page

2014-12-31 Thread Dominik Vogt
On Wed, Dec 31, 2014 at 12:35:12AM +, Thomas Adam wrote:
> On Tue, Dec 30, 2014 at 11:54:36PM +0100, Dominik Vogt wrote:
> > On Mon, Nov 03, 2014 at 01:20:34AM +0100, Dominik Vogt wrote:
> > > When executing many instances of lyx at the same time with
> > > 
> > >   $ lyx & lyx & lyx  (100 times)
> > > 
> > > I notice several things.
> > > 
> > > 1. Some of the warning messages end up somewhere off the page and
> > >off the desk (the lyx windows that have warnings open refuse to
> > >be closed).
> > 
> > Thomas, did you do something about this issue with your recent
> > patches, or is it possible that the patches have an effect on this?
> > I'll start debugging this if you haven't fixed it.
> 
> You and I couldn't reproduce it.

I *could* reproduce it with the instructions above, but I cannot
anymore with the current code.  Maybe I'll try again with the old
dv/new-parser branch.

> If you're able to, let me know,
> because I followed your instructions before.  I've not knowingly fixed
> this though, so if have any ideas, that'd be grand.  I suspect it might
> have something to do with XRandR, since that's the only larger change,
> but I don't wish for that to be a red-herring in tracking down this
> problem.

Anyway, while I'm at it, I'll spend some more effort to reproduce
it.

Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt



Re: REWRITE: window staring on wrong page

2014-12-30 Thread Thomas Adam
On Tue, Dec 30, 2014 at 11:54:36PM +0100, Dominik Vogt wrote:
> On Mon, Nov 03, 2014 at 01:20:34AM +0100, Dominik Vogt wrote:
> > When executing many instances of lyx at the same time with
> > 
> >   $ lyx & lyx & lyx  (100 times)
> > 
> > I notice several things.
> > 
> > 1. Some of the warning messages end up somewhere off the page and
> >off the desk (the lyx windows that have warnings open refuse to
> >be closed).
> 
> Thomas, did you do something about this issue with your recent
> patches, or is it possible that the patches have an effect on this?
> I'll start debugging this if you haven't fixed it.

You and I couldn't reproduce it.  If you're able to, let me know,
because I followed your instructions before.  I've not knowingly fixed
this though, so if have any ideas, that'd be grand.  I suspect it might
have something to do with XRandR, since that's the only larger change,
but I don't wish for that to be a red-herring in tracking down this
problem.

-- Thomas Adam

-- 
"Deep in my heart I wish I was wrong.  But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)



Re: REWRITE: window staring on wrong page

2014-12-30 Thread Dominik Vogt
On Mon, Nov 03, 2014 at 01:20:34AM +0100, Dominik Vogt wrote:
> When executing many instances of lyx at the same time with
> 
>   $ lyx & lyx & lyx  (100 times)
> 
> I notice several things.
> 
> 1. Some of the warning messages end up somewhere off the page and
>off the desk (the lyx windows that have warnings open refuse to
>be closed).

Thomas, did you do something about this issue with your recent
patches, or is it possible that the patches have an effect on this?
I'll start debugging this if you haven't fixed it.

Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt



Re: REWRITE: window staring on wrong page

2014-11-02 Thread Dominik Vogt
On Sun, Nov 02, 2014 at 11:25:24PM +, Thomas Adam wrote:
> I know for a fact there's oddities in using the pager to switch between
> pages/desks with multiple monitors (and hence RandR), because I've yet
> to fix that part as it's a pain.  Is that something you're using?

No, I've only one monitor, or did you mean something else?

> Are any of the lyx windows sticky in this context?

No, but the window is transient.  More styles that may play a role:

  Style * NoPPosition, NoTransientPPosition
  Style * DecorateTransient
  Style * !RaiseTransient, !LowerTransient, !StackTransientParent
  Style * GrabFocusTransient

> I did just push a
> fix to master to cater for erroneously moving windows between monitors
> when stick was being used.  Not sure if that's a factor here?

I don't think so, and I cannot think of any effect that would tell
the pager one page and then put the window on a different one.  :-/
There might be some weird problems if a map request is generated
during paging - I sometimes get seamonkey windows on a wrong page
when paging is involved, not only with the new code but also with
fvwm.

> Otherwise, I've no idea, and would be keen to reproduce this, since I
> very much doubt this is a one-off, and it sounds like there some
> fundamental problem somewhere with window placement calculations, etc.

Agreed.

When executing many instances of lyx at the same time with

  $ lyx & lyx & lyx  (100 times)

I notice several things.

1. Some of the warning messages end up somewhere off the page and
   off the desk (the lyx windows that have warnings open refuse to
   be closed).
2. With "all movetopage" I can bring the missing windows, but get
   an error message from the parser:

[mvwm][__execute_command_line]: <> No such command 'š4ì'

   I.e. there's still a bug in the new parser code.

3. The icon manager cannot deal with many windows on a single
   page.  When you switch from a page with many windows to a page
   with only a few, it redraws its window after each window is
   unmapped.  That takes several seconds.

Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt



Re: REWRITE: window staring on wrong page

2014-11-02 Thread Thomas Adam
On Sun, Nov 02, 2014 at 11:02:58AM +0100, Dominik Vogt wrote:
> Just had a lyx window pop up on the wrong page with
> 
>   Style LyX* StartsOnPage 1 0, SkipMapping, NoPPosition
>   Style lyx* StartsOnPage 1 0, SkipMapping, NoPPosition
> 
> When started, the page diplayed was either 0 0 or 0 1.  The lyx
> main window appeared on page 1 0, opened the last open document
> and that generated a lyx warning window.  (Actually I don't know
> on thich page that appeared because I did not pay attention.)  Now
> it gets interesting.
> 
>  * Switch to page 1 0
>-> The warning window is not on page 1 0
>-> In the Pager *is* displayed on page 1 0 at +0+0
>  * Not knowing what else to do I switched back to page 0 0
>-> The winding window is now displayed on page 2 0 +0+0 in the
>   pager
>  * Switch to page 2 0
>-> Window becomes visible at +0+0

I know for a fact there's oddities in using the pager to switch between
pages/desks with multiple monitors (and hence RandR), because I've yet
to fix that part as it's a pain.  Is that something you're using?

Are any of the lyx windows sticky in this context?  I did just push a
fix to master to cater for erroneously moving windows between monitors
when stick was being used.  Not sure if that's a factor here?

Otherwise, I've no idea, and would be keen to reproduce this, since I
very much doubt this is a one-off, and it sounds like there some
fundamental problem somewhere with window placement calculations, etc.

-- Thomas Adam

-- 
"Deep in my heart I wish I was wrong.  But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)