[haiku-bugs] Re: [Haiku] #13496: The blue border for File Panel focus does not update correctly

  • From: "looncraz" <trac@xxxxxxxxxxxx>
  • Date: Mon, 15 May 2017 00:31:47 -0000

#13496: The blue border for File Panel focus does not update correctly
----------------------------------+---------------------------------
   Reporter:  owenca              |      Owner:  nobody
       Type:  bug                 |     Status:  new
   Priority:  high                |  Milestone:  R1/beta1
  Component:  Kits/libtracker.so  |    Version:  R1/Development
 Resolution:                      |   Keywords:  Tracker, BFilePanel
 Blocked By:                      |   Blocking:
Has a Patch:  1                   |   Platform:  All
----------------------------------+---------------------------------

Comment (by looncraz):

 Replying to [comment:9 owenca]:

I copied the code from BorderedView::PoseViewFocused() at line 4416 but
 forgot to copy the two lines below it that check for NULL. I will fix it.
 Should I still use dynamic_cast just to be consistent?


 I think that would be the way to go, it's just a minor run time penalty (a
 handful of cycles) in any event.  If someone wants to improve efficiency,
 let them do that separately ;-)


I just tested it a little more, and this is what happens:
* Remove {{{~/config/settings/Tracker/FilePanelSettings}}}.
* Run Pe and open the Save as... panel. The border is fine. See the
 attached screenshot "Save as after FilePanelSettings removed" below.
* Now quit Pe and then run it again. The border in the Save as... panel
 is messed up as shown in the previously attached screenshot "Save as now".

This only occurs in Save file panel. The Open file panel has no problem.

 Very strange.  I will have to run some tests when you post an updated
 patch to wrap my mind around what you're describing.

--
Ticket URL: <https://dev.haiku-os.org/ticket/13496#comment:10>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: