summaryrefslogtreecommitdiff
path: root/gdk/gdkevents.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-07-15 19:52:28 -0400
committerMatthias Clasen <mclasen@redhat.com>2018-07-15 20:23:45 -0400
commit7a1073c3ae89e4cdf35d95afec564d48f776774f (patch)
tree2c3c4eb8f3d942362297923c48e80807211e5e5a /gdk/gdkevents.c
parente2fd33f78a5bcd461139a32957abfeaa45fa3d2e (diff)
downloadgtk+-7a1073c3ae89e4cdf35d95afec564d48f776774f.tar.gz
Revert "gdk: Drop configure events"
This reverts commit a8926c9d873ce968353a2eb1d3930c4f1ac79c94.
Diffstat (limited to 'gdk/gdkevents.c')
-rw-r--r--gdk/gdkevents.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c
index b53c146943..02c61f389a 100644
--- a/gdk/gdkevents.c
+++ b/gdk/gdkevents.c
@@ -817,6 +817,7 @@ gdk_event_get_time (const GdkEvent *event)
return event->pad_axis.time;
case GDK_PAD_GROUP_MODE:
return event->pad_group_mode.time;
+ case GDK_CONFIGURE:
case GDK_FOCUS_CHANGE:
case GDK_NOTHING:
case GDK_DELETE:
@@ -883,6 +884,7 @@ gdk_event_get_state (const GdkEvent *event,
case GDK_LEAVE_NOTIFY:
*state = event->crossing.state;
return TRUE;
+ case GDK_CONFIGURE:
case GDK_FOCUS_CHANGE:
case GDK_PROXIMITY_IN:
case GDK_PROXIMITY_OUT:
@@ -931,6 +933,10 @@ gdk_event_get_coords (const GdkEvent *event,
switch ((guint) event->any.type)
{
+ case GDK_CONFIGURE:
+ x = event->configure.x;
+ y = event->configure.y;
+ break;
case GDK_ENTER_NOTIFY:
case GDK_LEAVE_NOTIFY:
x = event->crossing.x;
@@ -1061,6 +1067,10 @@ gdk_event_set_coords (GdkEvent *event,
switch ((guint) event->any.type)
{
+ case GDK_CONFIGURE:
+ event->configure.x = x;
+ event->configure.y = y;
+ break;
case GDK_ENTER_NOTIFY:
case GDK_LEAVE_NOTIFY:
event->crossing.x = x;