[gtk: 1/4] gtk/window: Don't remember size from GdkSurface
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/4] gtk/window: Don't remember size from GdkSurface
- Date: Wed, 5 Aug 2020 16:19:20 +0000 (UTC)
commit cebe469898f82ce7d688e94ab1e4727283a2d014
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Thu Jul 30 17:01:54 2020 +0200
gtk/window: Don't remember size from GdkSurface
If we're maximized, and try to remember the non-maximized size, we'd
still get the maximized size.
gtk/gtkwindow.c | 8 --------
1 file changed, 8 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 984e766be0..58041745d3 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -4078,19 +4078,11 @@ gtk_window_get_remembered_size (GtkWindow *window,
int *width,
int *height)
{
- GtkWindowPrivate *priv = gtk_window_get_instance_private (window);
GtkWindowGeometryInfo *info;
*width = 0;
*height = 0;
- if (priv->surface)
- {
- *width = gdk_surface_get_width (priv->surface);
- *height = gdk_surface_get_height (priv->surface);
- return;
- }
-
info = gtk_window_get_geometry_info (window, FALSE);
if (info)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]