# 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
|
|
501 | 501 | "/ topView resizeToFit. |
502 | 502 | self updateSelection ifFalse:[ |
503 | 503 | topView open. |
| 504 | topView graphicsDevice platformName = 'WIN32' ifTrue:[ |
| 505 | topView graphicsDevice raiseWindowToTopMost: topView id. |
| 506 | ]. |
| 507 | |
504 | 508 | ]. |
505 | 509 | ] ifFalse:[ |
506 | 510 | completionView list:list. |
… |
… |
|
514 | 518 | |
515 | 519 | "Created: / 27-09-2013 / 14:01:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
516 | 520 | "Modified: / 15-05-2014 / 11:30:06 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
| 521 | "Modified: / 05-03-2018 / 19:05:05 / jv" |
517 | 522 | ! |
518 | 523 | |
519 | 524 | updateCompletions: completionResult sequence: sequence |