[haiku-bugs] Re: [Haiku] #8188: Make Workspaces Auto-raise behave like LaunchBox Auto-raise

  • From: "devine" <trac@xxxxxxxxxxxx>
  • Date: Wed, 07 Dec 2011 10:33:51 -0000

#8188: Make Workspaces Auto-raise behave like LaunchBox Auto-raise
---------------------------------------+-----------------------------------
   Reporter:  devine                   |      Owner:  axeld
       Type:  enhancement              |     Status:  new
   Priority:  normal                   |  Milestone:  R1
  Component:  Applications/Workspaces  |    Version:  R1/Development
 Resolution:                           |   Keywords:  workspaces, auto-
 Blocked By:                           |  raise
Has a Patch:  1                        |   Blocking:
                                       |   Platform:  All
---------------------------------------+-----------------------------------

Comment (by devine):

 It certainly does work, perfectly.

 I agree about the if/else statements - I'd better stick with my usual
 style ;)

 I should have guessed there should have been a way to get the border size.
 However I'm sort-of flying blind without the documentation. I'll poke into
 the code if your suggestion isn't quite right.
 kScreenBorderOffset is used elsewhere in the application to describe the
 width of window frame * 2.

 I can move the windowFrame.Contains(where) to the top as that does make
 sense, however the logic I have there is correct. I am extending the
 Window frame out to meet the screen frame -- the mouse also has to be at
 the edge of the screen for the auto-raise to be triggered. Therefore they
 all contained in the same place (note that two BRects of the *same size*
 contain eachother).

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8188#comment:6>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: