summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2003-07-16 20:36:54 +0000
committerFelipe Heidrich <fheidric>2003-07-16 20:36:54 +0000
commit0a8263feb05610db620bda30fe3dfffc2da5615c (patch)
tree8727fafe202a31ccaf5d83b702dd22371b54c7d4
parent1937a10e0bc79448f14680b49f505016659fc4ac (diff)
downloadeclipse.platform.swt-0a8263feb05610db620bda30fe3dfffc2da5615c.tar.gz
eclipse.platform.swt-0a8263feb05610db620bda30fe3dfffc2da5615c.tar.xz
eclipse.platform.swt-0a8263feb05610db620bda30fe3dfffc2da5615c.zip
39840
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
index 8b329c67ed..f9ca3e6e09 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
@@ -1602,10 +1602,7 @@ int gtk_button_press_event (int widget, int event) {
display.dragging = false;
int result = 0;
if (gdkEvent.button == 3 && gdkEvent.type == OS.GDK_BUTTON_PRESS) {
- int window = OS.GTK_WIDGET_WINDOW (widget);
- int [] origin_x = new int [1], origin_y = new int [1];
- OS.gdk_window_get_origin (window, origin_x, origin_y);
- if (showMenu (origin_x [0] + (int)gdkEvent.x, origin_y [0] + (int)gdkEvent.y)) {
+ if (showMenu ((int)gdkEvent.x_root, (int)gdkEvent.y_root)) {
result = 1;
}
}