[haiku-cdt] Re: Border for resizing

  • From: Stephan Assmus <superstippi@xxxxxx>
  • To: haiku-cdt@xxxxxxxxxxxxx
  • Date: Mon, 23 Nov 2009 23:14:31 +0100

On 2009-11-23 at 20:20:09 [+0100], Ryan Leavengood <leavengood@xxxxxxxxx> 
> On Mon, Nov 23, 2009 at 3:33 AM, Humdinger <humdingerb@xxxxxxxxxxxxxx> 
> wrote:
> >
> > Actually, I'd much rather everyone would agree with the above quote, 
> > and as a first step, the shortcut is implemented. There's already 
> > ticket #4493 for it at
> > http://dev.haiku-os.org/ticket/4493.
> > That would give us the opportunity to try it out, see how it feels, and 
> > if aiming for the narrow borders is difficult.
> I started working on this. The code is not too complicated but there is 
> one pretty major app_server design "flaw"/assumption that makes this more 
> difficult: resizing is always assumed to be done from the lower left. In 
> other words if you Ctrl-Alt left-click on the top or left borders the 
> resizing is still done as if you had clicked the bottom or right border.
> So some more code and potential complication needs to be added to the 
> app_server to account for this. Of course it isn't all bad since it makes 
> the app_server more adaptable for other decorators which might allow for 
> resizing from any border without any keyboard modifiers.
> I'll play with this some more and hopefully I can come up with something 
> that won't make the other developers yell at me ;)

Just combine the MoveTo() and ResizeTo() methods into one SetFrame() 
method. One would need to special case the code path when the frame size 
does not change, since then layouting does not need to be triggered. But 
that's about it.

Best regards,

Other related posts: