diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-11-12 10:36:38 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-12 10:39:16 +0000 |
commit | 6adfbe62f6bb67d7d78c1561e9af5169d7f5bb9a (patch) | |
tree | e5a87af2121b6115892f4cc70165559183b325f3 /vcl/inc | |
parent | 98785dbb95eca5443b38535cba6552e21d4e2c5b (diff) |
Resolves: rhbz#1278885 gtk3 allocated size doesn't match configure-event size
so LibreOffice thinks its window is smaller than what gtk3 has allocated
for it.
For gtk3 (like firefox does) split size and position handling, leave
position/move handling to the configureEvent, but listen to sizeAllocate
and use that for the size handling.
Leave gtk2 as it always was
Change-Id: Ic52d6971595741ed658247b651e9e16c2ef9ed0b
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/unx/gtk/gtkframe.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/inc/unx/gtk/gtkframe.hxx b/vcl/inc/unx/gtk/gtkframe.hxx index df54508d4640..472aae7e33b1 100644 --- a/vcl/inc/unx/gtk/gtkframe.hxx +++ b/vcl/inc/unx/gtk/gtkframe.hxx @@ -239,6 +239,7 @@ class GtkSalFrame : public SalFrame, public X11WindowProvider static void signalStyleSet( GtkWidget*, GtkStyle* pPrevious, gpointer ); #if GTK_CHECK_VERSION(3,0,0) static gboolean signalDraw( GtkWidget*, cairo_t *cr, gpointer ); + static void sizeAllocated(GtkWidget*, GdkRectangle *pAllocation, gpointer frame); #if GTK_CHECK_VERSION(3,14,0) static void gestureSwipe(GtkGestureSwipe* gesture, gdouble velocity_x, gdouble velocity_y, gpointer frame); static void gestureLongPress(GtkGestureLongPress* gesture, gpointer frame); |