# HG changeset patch
# User Jan Vrany <jan.vrany@fit.cvut.cz>
# Date 1500450152 -7200
# Wed Jul 19 09:42:32 2017 +0200
# Branch jv
# Node ID edb119820fcbc8bc012751266d0f4583ea883dad
# Parent 09e8dae2dfabb6b746a5da8be1756d349eb94191
Issue #154: Set window style using `#beToolWindow`
to indicate that the minirunner window is kind of support tool
rather than some X11 specific code (which does not work on Windows
of course)
See https://swing.fit.cvut.cz/projects/stx-jv/ticket/154
diff -r 09e8dae2dfab -r edb119820fcb Tools__TestRunnerMini.st
a
|
b
|
|
578 | 578 | ! |
579 | 579 | |
580 | 580 | pin |
581 | | | runner screen | |
| 581 | | runner | |
582 | 582 | |
583 | 583 | runner := TestRunnerMini new. |
584 | 584 | runner resultHolder value: resultHolder value copy. |
585 | 585 | |
586 | 586 | runner allButOpen. |
587 | | |
588 | | screen := Screen current. |
589 | | (screen notNil and:[ screen platformName == #X11 ]) ifTrue:[ |
590 | | "/ Use EWMH hint to tell the WM that the window is |
591 | | "/ a sort of floating tool so WM can decorate it according to |
592 | | "/ DE standards. |
593 | | runner window id isNil ifTrue:[ |
594 | | runner window create. |
595 | | ]. |
596 | | screen setWindowType:#'_NET_WM_WINDOW_TYPE_UTILITY' in:runner window id. |
597 | | ]. |
| 587 | runner window beToolWindow. |
598 | 588 | runner open. |
599 | 589 | |
600 | | "Modified: / 23-09-2014 / 12:05:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
| 590 | "Modified: / 19-07-2017 / 08:53:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
601 | 591 | ! |
602 | 592 | |
603 | 593 | run |