Skip to content

Commit

Permalink
#2373 the delay is no longer needed now that we use the expose event …
Browse files Browse the repository at this point in the history
…for repaints?

git-svn-id: https://xpra.org/svn/Xpra/trunk@24463 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Nov 20, 2019
1 parent d35cd4b commit fee84b3
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/xpra/client/gl/gl_window_backing_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
FORCE_CLONE = envbool("XPRA_OPENGL_FORCE_CLONE", False)
DRAW_REFRESH = envbool("XPRA_OPENGL_DRAW_REFRESH", True)
FBO_RESIZE = envbool("XPRA_OPENGL_FBO_RESIZE", True)
FBO_RESIZE_DELAY = envint("XPRA_OPENGL_FBO_RESIZE_DELAY", 50)
FBO_RESIZE_DELAY = envint("XPRA_OPENGL_FBO_RESIZE_DELAY", -1)
CONTEXT_REINIT = envbool("XPRA_OPENGL_CONTEXT_REINIT", OSX)

CURSOR_IDLE_TIMEOUT = envint("XPRA_CURSOR_IDLE_TIMEOUT", 6)
Expand Down Expand Up @@ -362,14 +362,15 @@ def resize_fbo(self, oldw, oldh, bw, bh):
#no idea why, but we have to wait a bit to show it:
from gi.repository import GLib
del context
def redraw():
context = self.gl_context()
if not context:
return
with context:
self.pending_fbo_paint = ((0, 0, bw, bh), )
self.do_present_fbo()
GLib.timeout_add(FBO_RESIZE_DELAY, redraw)
if FBO_RESIZE_DELAY>=0:
def redraw():
context = self.gl_context()
if not context:
return
with context:
self.pending_fbo_paint = ((0, 0, bw, bh), )
self.do_present_fbo()
GLib.timeout_add(FBO_RESIZE_DELAY, redraw)

def gl_marker(self, *msg):
log(*msg)
Expand Down

0 comments on commit fee84b3

Please sign in to comment.