gtkglwidget: Calculate the viewport size ourselves
authorSebastian Dröge <sebastian@centricular.com>
Mon, 15 Jun 2015 19:29:46 +0000 (21:29 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 15 Jun 2015 19:29:46 +0000 (21:29 +0200)
commitaa37a70efbb46a193a8b9ed90f17ec9fb30eb3ff
tree9176fc2851039fd0ac9045fcfe6d8ca1e9eb7306
parent8b821e0cf350f79927864749d4ce87e3abef888e
gtkglwidget: Calculate the viewport size ourselves

Getting the current viewport and modifying it relatively will produce an
interesting feedback loop during widget resizing. Over a few frames we
will gradually move the viewport a bit until it converged again, adding
unnecessary additional borders at the top and left.
ext/gtk/gtkgstglwidget.c