]> gitweb.factorcode.org Git - factor.git/commit
ui.backend.gtk, use a separate widget for drawing opengl. Fixes #1487
authorJon Harper <jon.harper87@gmail.com>
Fri, 13 Jan 2017 16:08:46 +0000 (17:08 +0100)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 23 Jan 2017 18:04:43 +0000 (10:04 -0800)
commit14f51e2dd5361a6dec8d135109729b88359d6e95
tree76d2c0794f477527163dbe53b866b2fee84838da
parent134be588cf8593000301dbb08cbf8963b2c7adca
ui.backend.gtk, use a separate widget for drawing opengl. Fixes #1487

Apparently you can't use opengl calls in a configure event signaled from
the window. If you do, on ubuntu 14.04 with unity, each and every frame
will be drawn. Since they are drawn slower than the event are emitted,
it continues to redraw after the resize is done, 'replaying' the resize
motion.
opengl calls from a configure event on the single child of the
window are ok.
Also, now that the window is not used to draw opengl, it doesn't produce
expose events, instead the drawable child must be used.

This also makes moving the window much smoother.
basis/ui/backend/gtk/gtk-docs.factor
basis/ui/backend/gtk/gtk.factor