mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 07:50:04 +00:00
paned: Remove MOTION_HINT_MASK
It's not needed anymore. GDK does culling of events for us.
This commit is contained in:
parent
68bc011507
commit
80a23a2f2b
@ -1352,8 +1352,7 @@ gtk_paned_realize (GtkWidget *widget)
|
|||||||
GDK_BUTTON_RELEASE_MASK |
|
GDK_BUTTON_RELEASE_MASK |
|
||||||
GDK_ENTER_NOTIFY_MASK |
|
GDK_ENTER_NOTIFY_MASK |
|
||||||
GDK_LEAVE_NOTIFY_MASK |
|
GDK_LEAVE_NOTIFY_MASK |
|
||||||
GDK_POINTER_MOTION_MASK |
|
GDK_POINTER_MOTION_MASK);
|
||||||
GDK_POINTER_MOTION_HINT_MASK);
|
|
||||||
attributes_mask = GDK_WA_X | GDK_WA_Y;
|
attributes_mask = GDK_WA_X | GDK_WA_Y;
|
||||||
if (gtk_widget_is_sensitive (widget))
|
if (gtk_widget_is_sensitive (widget))
|
||||||
{
|
{
|
||||||
@ -1520,7 +1519,8 @@ is_rtl (GtkPaned *paned)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
update_drag (GtkPaned *paned)
|
update_drag (GtkPaned *paned,
|
||||||
|
GdkEventCrossing *crossing)
|
||||||
{
|
{
|
||||||
GtkPanedPrivate *priv = paned->priv;
|
GtkPanedPrivate *priv = paned->priv;
|
||||||
GtkAllocation allocation;
|
GtkAllocation allocation;
|
||||||
@ -1564,7 +1564,7 @@ gtk_paned_enter (GtkWidget *widget,
|
|||||||
GtkPanedPrivate *priv = paned->priv;
|
GtkPanedPrivate *priv = paned->priv;
|
||||||
|
|
||||||
if (priv->in_drag)
|
if (priv->in_drag)
|
||||||
update_drag (paned);
|
update_drag (paned, event);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
priv->handle_prelit = TRUE;
|
priv->handle_prelit = TRUE;
|
||||||
@ -1633,8 +1633,7 @@ gtk_paned_button_press (GtkWidget *widget,
|
|||||||
if (gdk_device_grab (event->device,
|
if (gdk_device_grab (event->device,
|
||||||
priv->handle,
|
priv->handle,
|
||||||
GDK_OWNERSHIP_WINDOW, FALSE,
|
GDK_OWNERSHIP_WINDOW, FALSE,
|
||||||
GDK_POINTER_MOTION_HINT_MASK
|
GDK_BUTTON1_MOTION_MASK
|
||||||
| GDK_BUTTON1_MOTION_MASK
|
|
||||||
| GDK_BUTTON_RELEASE_MASK
|
| GDK_BUTTON_RELEASE_MASK
|
||||||
| GDK_ENTER_NOTIFY_MASK
|
| GDK_ENTER_NOTIFY_MASK
|
||||||
| GDK_LEAVE_NOTIFY_MASK,
|
| GDK_LEAVE_NOTIFY_MASK,
|
||||||
|
Loading…
Reference in New Issue
Block a user