diff options
author | Sven Gothel <[email protected]> | 2015-08-12 03:55:57 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-08-12 03:55:57 +0200 |
commit | 23d8cbd413ac6aca737d7a7d062c8bb6f5ac1ca5 (patch) | |
tree | 91f8c2773410394dad8e2a575dcba4b78d041a5c /src/newt/classes | |
parent | 2c23b1cb343a008621e3fe642c5b8abacca48b1a (diff) |
Bug 1188: Windows: Implement unresizable using appropriate windows styles
- to avoid resizing when toggling resizable (change of window border)
we maintain 'RECT insets' in our WindowUserData struct
and fix the client -> top position late in NewtWindow_setVisiblePosSize(..)
after any style change.
Diffstat (limited to 'src/newt/classes')
-rw-r--r-- | src/newt/classes/jogamp/newt/driver/windows/WindowDriver.java | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/newt/classes/jogamp/newt/driver/windows/WindowDriver.java b/src/newt/classes/jogamp/newt/driver/windows/WindowDriver.java index 2eaedc101..751ce854a 100644 --- a/src/newt/classes/jogamp/newt/driver/windows/WindowDriver.java +++ b/src/newt/classes/jogamp/newt/driver/windows/WindowDriver.java @@ -220,17 +220,6 @@ public class WindowDriver extends WindowImpl { width = posSize[2]; height = posSize[3]; } - if(0 == ( STATE_MASK_UNDECORATED & flags)) { - // client position -> top-level window position - x -= insets.getLeftWidth() ; - y -= insets.getTopHeight() ; - - if(0<width && 0<height) { - // client size -> top-level window size - width += insets.getTotalWidth(); - height += insets.getTotalHeight(); - } - } reconfigureWindow0( getParentWindowHandle(), getWindowHandle(), x, y, width, height, flags); if( 0 != ( CHANGE_MASK_VISIBILITY & flags) ) { |