diff options
author | Sven Gothel <[email protected]> | 2010-05-05 15:21:25 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-05-05 15:21:25 +0200 |
commit | e637d918cf49b42101bff232b8f307fcf6428a71 (patch) | |
tree | ffae712ccd4a24c249b2d3e34ab31f27039f4710 /src/newt/classes | |
parent | 43c67c2e8875e3fd6a2e964b4120d6277815fed1 (diff) |
Newt X11: Add focus in/out events; Request focus with mouse click
Diffstat (limited to 'src/newt/classes')
-rwxr-xr-x | src/newt/classes/com/jogamp/newt/impl/x11/X11Window.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/newt/classes/com/jogamp/newt/impl/x11/X11Window.java b/src/newt/classes/com/jogamp/newt/impl/x11/X11Window.java index 2fa41c62a..e81d89a8c 100755 --- a/src/newt/classes/com/jogamp/newt/impl/x11/X11Window.java +++ b/src/newt/classes/com/jogamp/newt/impl/x11/X11Window.java @@ -211,6 +211,17 @@ public class X11Window extends Window { } } + /** + * @param focusGained + */ + private void focusChanged(boolean focusGained) { + if (focusGained) { + sendWindowEvent(WindowEvent.EVENT_WINDOW_GAINED_FOCUS); + } else { + sendWindowEvent(WindowEvent.EVENT_WINDOW_LOST_FOCUS); + } + } + private void windowCreated(long windowHandle) { this.windowHandle = windowHandle; } |