[gtk+/client-side-decorations: 43/92] only update mouse cursor to non-arrow if window is resizable
- From: Cody Russell <bratsche src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/client-side-decorations: 43/92] only update mouse cursor to non-arrow if window is resizable
- Date: Fri, 16 Apr 2010 19:30:43 +0000 (UTC)
commit f0c00321710da9b1b8dabe9d17c58f7e9c537b16
Author: Cody Russell <crussell canonical com>
Date: Sat Jul 4 23:31:26 2009 +0100
only update mouse cursor to non-arrow if window is resizable
gtk/gtkwindow.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 7669da8..47b5382 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5738,7 +5738,8 @@ update_cursor_at_position (GtkWidget *widget, gint x, gint y)
if (region == GTK_WINDOW_REGION_TITLE ||
region == GTK_WINDOW_REGION_INNER ||
- (state & GDK_WINDOW_STATE_MAXIMIZED))
+ (state & GDK_WINDOW_STATE_MAXIMIZED) ||
+ !GTK_WINDOW (widget)->allow_grow)
{
cursor_type = GDK_ARROW;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]