Re: [PATCH] resizing & redrawing

2002-06-21 Thread Angus Leeming
On Friday 21 June 2002 2:03 pm, John Levon wrote: > On Fri, Jun 21, 2002 at 01:36:40PM +0100, Angus Leeming wrote: > > However, looking at compress_redraw in event.c (starts at line 540) > > suggests to me that the xev dimensions ARE thrown away. Could you have a > > look and tell me I'm wrong ple

Re: [PATCH] resizing & redrawing

2002-06-21 Thread John Levon
On Fri, Jun 21, 2002 at 01:36:40PM +0100, Angus Leeming wrote: > However, looking at compress_redraw in event.c (starts at line 540) suggests > to me that the xev dimensions ARE thrown away. Could you have a look and tell > me I'm wrong please ;-) You're wrong. I think. The compress_redraw is

Re: [PATCH] resizing & redrawing

2002-06-21 Thread Angus Leeming
On Friday 21 June 2002 1:27 pm, John Levon wrote: > On Fri, Jun 21, 2002 at 01:06:48PM +0100, Angus Leeming wrote: > > > But we get an FL_DRAW: what parts of the pixmap should we copy into the > > > real lyx window ? We don't know from this point, so we have to copy the > > > whole thing :/ > > >

Re: [PATCH] resizing & redrawing

2002-06-21 Thread John Levon
On Fri, Jun 21, 2002 at 01:06:48PM +0100, Angus Leeming wrote: > > But we get an FL_DRAW: what parts of the pixmap should we copy into the > > real lyx window ? We don't know from this point, so we have to copy the > > whole thing :/ > > But we do know if xev contains this info and (if my xforms

Re: [PATCH] resizing & redrawing

2002-06-21 Thread Angus Leeming
On Friday 21 June 2002 12:32 pm, John Levon wrote: > > So, it looks to me that your patch + my xforms patch will allow us to > > redraw only a part of the window, with the XScreen::draw proviso above. > > But we get an FL_DRAW: what parts of the pixmap should we copy into the > real lyx window ? W

Re: [PATCH] resizing & redrawing

2002-06-21 Thread John Levon
On Fri, Jun 21, 2002 at 12:13:28PM +0100, Angus Leeming wrote: > > That's what the patch I sent does (should do) > > Maybe ;-) But I'm confused by XScreen::draw: > > XCopyArea (fl_get_display(), > owner_.getWin(), // owner_.getPixmap(), >

Re: [PATCH] resizing & redrawing

2002-06-21 Thread Angus Leeming
On Friday 21 June 2002 11:55 am, John Levon wrote: > On Fri, Jun 21, 2002 at 10:04:32AM +0100, Angus Leeming wrote: > > So, the next step is to make the screen modify the work area pixmap (hide > > the work area window) and emit an expose call. > > That's what the patch I sent does (should do) Ma

Re: [PATCH] resizing & redrawing

2002-06-21 Thread John Levon
On Fri, Jun 21, 2002 at 10:04:32AM +0100, Angus Leeming wrote: > So, the next step is to make the screen modify the work area pixmap (hide the > work area window) and emit an expose call. That's what the patch I sent does (should do) > Now does the associated XEvent * > xev have info about wh

Re: [PATCH] resizing & redrawing

2002-06-21 Thread Angus Leeming
On Thursday 20 June 2002 7:07 pm, John Levon wrote: > On Thu, Jun 20, 2002 at 06:20:09PM +0100, Angus Leeming wrote: > > > Well I've only browsed your xforms email, but we need a sub-region not > > > the entire workarea object, unless you fancy copying a massive pixmap > > > on every cursor blink

Re: [PATCH] resizing & redrawing

2002-06-20 Thread John Levon
On Thu, Jun 20, 2002 at 06:20:09PM +0100, Angus Leeming wrote: > > Well I've only browsed your xforms email, but we need a sub-region not > > the entire workarea object, unless you fancy copying a massive pixmap on > > every cursor blink (didn't think so). > > That's what we do now. See the cod

Re: [PATCH] resizing & redrawing

2002-06-20 Thread Angus Leeming
On Thursday 20 June 2002 6:13 pm, John Levon wrote: > On Thu, Jun 20, 2002 at 05:51:56PM +0100, Angus Leeming wrote: > > because of the loop in objects.c's mark_for_redraw / fl_redraw_form: > > for (ob = form->first; ob; ob = ob->next) > > ob->redraw = 1; > > that is called by fl_h

Re: [PATCH] resizing & redrawing

2002-06-20 Thread John Levon
On Thu, Jun 20, 2002 at 05:51:56PM +0100, Angus Leeming wrote: > because of the loop in objects.c's mark_for_redraw / fl_redraw_form: > for (ob = form->first; ob; ob = ob->next) > ob->redraw = 1; > that is called by fl_handle_forms and flags all objects on the form for > redr

Re: [PATCH] resizing & redrawing

2002-06-20 Thread Angus Leeming
On Thursday 20 June 2002 5:49 pm, John Levon wrote: > On Thu, Jun 20, 2002 at 05:26:16PM +0100, Angus Leeming wrote: > > So that means that the code in XScreen that calls > > XCopyArea (display, cursor_pixmap, owner_.getWin(), ... > > direct is incorrect (which is your comment about the cursor

Re: [PATCH] resizing & redrawing

2002-06-20 Thread John Levon
On Thu, Jun 20, 2002 at 05:26:16PM +0100, Angus Leeming wrote: > So that means that the code in XScreen that calls > XCopyArea (display, cursor_pixmap, owner_.getWin(), ... > direct is incorrect (which is your comment about the cursor being broken)? > > Instead it should call > XCo

Re: [PATCH] resizing & redrawing

2002-06-20 Thread Angus Leeming
On Thursday 20 June 2002 4:36 pm, John Levon wrote: > On Thu, Jun 20, 2002 at 11:33:29AM +0100, Angus Leeming wrote: > > BufferView and lyxfunc no longer resize() themselves. Presumably because > > the resize event is coming from behind the frontends firewall and they > > should be told about it,