equal
deleted
inserted
replaced
179 public final void initiateDrop(int xRoot, int yRoot, |
179 public final void initiateDrop(int xRoot, int yRoot, |
180 int sourceAction, int sourceActions, |
180 int sourceAction, int sourceActions, |
181 long time) { |
181 long time) { |
182 XWindowAttributes wattr = new XWindowAttributes(); |
182 XWindowAttributes wattr = new XWindowAttributes(); |
183 try { |
183 try { |
184 XToolkit.WITH_XERROR_HANDLER(XToolkit.IgnoreBadWindowHandler); |
184 XToolkit.WITH_XERROR_HANDLER(XErrorHandler.IgnoreBadWindowHandler.getInstance()); |
185 int status = XlibWrapper.XGetWindowAttributes(XToolkit.getDisplay(), |
185 int status = XlibWrapper.XGetWindowAttributes(XToolkit.getDisplay(), |
186 targetWindow, wattr.pData); |
186 targetWindow, wattr.pData); |
187 |
187 |
188 XToolkit.RESTORE_XERROR_HANDLER(); |
188 XToolkit.RESTORE_XERROR_HANDLER(); |
189 |
189 |
196 targetWindowMask = wattr.get_your_event_mask(); |
196 targetWindowMask = wattr.get_your_event_mask(); |
197 } finally { |
197 } finally { |
198 wattr.dispose(); |
198 wattr.dispose(); |
199 } |
199 } |
200 |
200 |
201 XToolkit.WITH_XERROR_HANDLER(XToolkit.IgnoreBadWindowHandler); |
201 XToolkit.WITH_XERROR_HANDLER(XErrorHandler.IgnoreBadWindowHandler.getInstance()); |
202 XlibWrapper.XSelectInput(XToolkit.getDisplay(), targetWindow, |
202 XlibWrapper.XSelectInput(XToolkit.getDisplay(), targetWindow, |
203 targetWindowMask | |
203 targetWindowMask | |
204 XConstants.StructureNotifyMask); |
204 XConstants.StructureNotifyMask); |
205 |
205 |
206 XToolkit.RESTORE_XERROR_HANDLER(); |
206 XToolkit.RESTORE_XERROR_HANDLER(); |
212 |
212 |
213 sendDropMessage(xRoot, yRoot, sourceAction, sourceActions, time); |
213 sendDropMessage(xRoot, yRoot, sourceAction, sourceActions, time); |
214 } |
214 } |
215 |
215 |
216 protected final void finalizeDrop() { |
216 protected final void finalizeDrop() { |
217 XToolkit.WITH_XERROR_HANDLER(XToolkit.IgnoreBadWindowHandler); |
217 XToolkit.WITH_XERROR_HANDLER(XErrorHandler.IgnoreBadWindowHandler.getInstance()); |
218 XlibWrapper.XSelectInput(XToolkit.getDisplay(), targetWindow, |
218 XlibWrapper.XSelectInput(XToolkit.getDisplay(), targetWindow, |
219 targetWindowMask); |
219 targetWindowMask); |
220 XToolkit.RESTORE_XERROR_HANDLER(); |
220 XToolkit.RESTORE_XERROR_HANDLER(); |
221 } |
221 } |
222 |
222 |