diff options
-rw-r--r-- | src/newt/classes/jogamp/newt/driver/bcm/vc/iv/WindowDriver.java | 15 | ||||
-rw-r--r-- | src/newt/classes/jogamp/newt/driver/x11/X11UnderlayTracker.java | 6 |
2 files changed, 12 insertions, 9 deletions
diff --git a/src/newt/classes/jogamp/newt/driver/bcm/vc/iv/WindowDriver.java b/src/newt/classes/jogamp/newt/driver/bcm/vc/iv/WindowDriver.java index 29c1bf13d..c971acfad 100644 --- a/src/newt/classes/jogamp/newt/driver/bcm/vc/iv/WindowDriver.java +++ b/src/newt/classes/jogamp/newt/driver/bcm/vc/iv/WindowDriver.java @@ -63,25 +63,24 @@ public class WindowDriver extends WindowImpl { public WindowDriver() { - /* Try use X11 as input for bcm.vc.iv - * if X11 fail to initialize then - * track using the /dev/event files directly - * using the LinuxMouseTracker - */ + /* Try use X11 as input for bcm.vc.iv + * if X11 fail to initialize then + * track using the /dev/event files directly + * using the LinuxMouseTracker + */ try{ x11UnderlayTracker = X11UnderlayTracker.getSingleton(); mouseTracker = x11UnderlayTracker; keyTracker = x11UnderlayTracker; - } catch(ExceptionInInitializerError e){ + } catch(ExceptionInInitializerError e) { linuxMouseTracker = LinuxMouseTracker.getSingleton(); linuxEventDeviceTracker = LinuxEventDeviceTracker.getSingleton(); mouseTracker = linuxMouseTracker; keyTracker = linuxEventDeviceTracker; } - - + layer = -1; nativeWindowHandle = 0; windowHandleClose = 0; diff --git a/src/newt/classes/jogamp/newt/driver/x11/X11UnderlayTracker.java b/src/newt/classes/jogamp/newt/driver/x11/X11UnderlayTracker.java index 3e073a326..db34d9337 100644 --- a/src/newt/classes/jogamp/newt/driver/x11/X11UnderlayTracker.java +++ b/src/newt/classes/jogamp/newt/driver/x11/X11UnderlayTracker.java @@ -202,6 +202,10 @@ public class X11UnderlayTracker implements WindowListener, KeyListener, MouseLis underlayWindow.setTitle(overlayWindow.getTitle()); + if(overlayWindow.isUndecorated()){ + underlayWindow.setUndecorated(true); + } + underlayWindow.addKeyListener(this); underlayWindow.addMouseListener(this); underlayWindow.addWindowListener(this); @@ -247,7 +251,7 @@ public class X11UnderlayTracker implements WindowListener, KeyListener, MouseLis w.setVisible(true); w = NewtFactory.createWindow(caps); - w.setUndecorated(true); + w.setUndecorated(false); w.addWindowListener(X11UnderlayTracker.getSingleton()); w.setTitle("2"); w.setVisible(true); |