Faculty of Information Technology
Software Engineering Group

Ticket #176: smallsense_fix_1_of_1_rev_11647b544ea4_Issue__176__fix__disappearing__completon_view_when_pointer_moves_out_of_it.patch

File smallsense_fix_1_of_1_rev_11647b544ea4_Issue__176__fix__disappearing__completon_view_when_pointer_moves_out_of_it.patch, 1.6 KB (added by Jan Vrany, 5 years ago)
  • SmallSense__CompletionController.st

    # HG changeset patch
    # User Jan Vrany <jan.vrany@fit.cvut.cz>
    # Date 1520284669 0
    #      Mon Mar 05 21:17:49 2018 +0000
    # Node ID 11647b544ea41f633d23905b8d66fd8c158771c6
    # Parent  031924a79f90e2289fe3e75823ad7bc8466d8e5a
    Issue #176: fix "disappearing" completon view when pointer moves out of it
    
    When running on Windows with _focus-follow-mouse", then
    Windows shell ("window manager") raises the toher wundow
    do the completion view seems to "diasspear". In fact, it's
    still there but "below" the window containing the editor.
    
    To fix this problem, make the completion view a top-most
    window so it won't get below the editor. Note that this
    is not needed on X11 as window managers correctly stack
    popup windows on top of all others.
    
    https://swing.fit.cvut.cz/projects/stx-jv/ticket/176
    
    diff -r 031924a79f90 -r 11647b544ea4 SmallSense__CompletionController.st
    a b  
    501501"/        topView resizeToFit.
    502502        self updateSelection ifFalse:[
    503503            topView open.
     504            topView graphicsDevice platformName = 'WIN32' ifTrue:[
     505                topView graphicsDevice raiseWindowToTopMost: topView id.
     506            ]. 
     507
    504508        ].
    505509    ] ifFalse:[
    506510        completionView list:list.
     
    514518
    515519    "Created: / 27-09-2013 / 14:01:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
    516520    "Modified: / 15-05-2014 / 11:30:06 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     521    "Modified: / 05-03-2018 / 19:05:05 / jv"
    517522!
    518523
    519524updateCompletions: completionResult sequence: sequence