[gtk/wip/baedert/single-node-window: 15/25] window: Set overflow to HIDDEN



commit 7659d8af3d0b88b6798851acf84780fb27fa7377
Author: Timm Bäder <mail baedert org>
Date:   Wed May 20 09:24:00 2020 +0200

    window: Set overflow to HIDDEN
    
    It really doesn't make sense for the general window to allow drawing
    outside of it.

 gtk/gtkwindow.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 1b7dd7b7b3..743210560d 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -1497,6 +1497,8 @@ gtk_window_init (GtkWindow *window)
 
   widget = GTK_WIDGET (window);
 
+  gtk_widget_set_overflow (widget, GTK_OVERFLOW_HIDDEN);
+
   priv->title = NULL;
   priv->geometry_info = NULL;
   priv->focus_widget = NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]