1 | "{ Encoding: utf8 }" ! |
---|
2 | !DisplayRootView methodsFor:'event handling'! |
---|
3 | |
---|
4 | waitForExpose |
---|
5 | "wait until an expose event arrives (to wait for scroll-finish)" |
---|
6 | |
---|
7 | "/ JV@2016-02-22: On X11, expose for root window may not arrive at all |
---|
8 | "/ causing 3 seconds delay. Worse, this breaks drag'n'drop. |
---|
9 | "/ The reason is that when running under compositing window manager, |
---|
10 | "/ (such as GNOME shell or KWM), window contents ir rendered to an |
---|
11 | "/ off-screen pixmap so expose events are lot less common and may |
---|
12 | "/ not arrive. |
---|
13 | "device isX11Platform"true ifTrue:[ |
---|
14 | ^ self. |
---|
15 | ]. |
---|
16 | super waitForExpose. |
---|
17 | |
---|
18 | "Created: / 22-02-2016 / 14:24:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
---|
19 | "Modified: / 26-04-2016 / 17:34:32 / jv" |
---|
20 | ! ! |
---|
21 | |
---|