mirror of
https://github.com/correl/mage.git
synced 2024-11-29 03:00:12 +00:00
Fix for the "Modal Window bug under Linux (e.g. X value announcement) by Nidhoegger.
This commit is contained in:
parent
e29d179326
commit
589b63c5b1
1 changed files with 6 additions and 7 deletions
|
@ -39,7 +39,6 @@ import java.awt.Component;
|
|||
import java.awt.EventQueue;
|
||||
import java.awt.KeyboardFocusManager;
|
||||
import java.awt.MenuComponent;
|
||||
import java.awt.TrayIcon;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.beans.PropertyVetoException;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
|
@ -119,10 +118,11 @@ public class MageDialog extends javax.swing.JInternalFrame {
|
|||
Object source = event.getSource();
|
||||
boolean dispatch = true;
|
||||
|
||||
if (event.getSource() != null && event.getSource() instanceof TrayIcon) {
|
||||
return;
|
||||
}
|
||||
|
||||
// LINUX: Workaround fix for announce X Value Bug that closes modal windows under linux before values can be entered
|
||||
// https://github.com/magefree/mage/issues/584
|
||||
// if (event.getSource() != null && event.getSource() instanceof TrayIcon) {
|
||||
// return;
|
||||
// }
|
||||
if (event instanceof MouseEvent && event.getSource() instanceof Component) {
|
||||
MouseEvent e = (MouseEvent) event;
|
||||
MouseEvent m = SwingUtilities.convertMouseEvent((Component) e.getSource(), e, this);
|
||||
|
@ -226,7 +226,6 @@ public class MageDialog extends javax.swing.JInternalFrame {
|
|||
pack();
|
||||
}// </editor-fold>//GEN-END:initComponents
|
||||
|
||||
|
||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||
// End of variables declaration//GEN-END:variables
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue