Skip to content

Commit

Permalink
feat: X11 window move, resize, raise and lower calls
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceh121 committed Apr 24, 2024
1 parent 0a33062 commit c368fe6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Features
* [#1578](https://github.com/java-native-access/jna/pull/1578): Add support for FreeBSD aarch64 - [@alexdupre](https://github.com/alexdupre).
* [#1593](https://github.com/java-native-access/jna/pull/1593): Add support for DragonFly BSD x86-64 - [@liweitianux](https://github.com/liweitianux).
* [#1595](https://github.com/java-native-access/jna/pull/1595): Add `IsProcessorFeaturePresent` to `c.s.j.p.win32.Kernel32` - [@dbwiddis](https://github.com/dbwiddis).
* [#1602](https://github.com/java-native-access/jna/pull/1602): Add `XMoveWindow`, `XResizeWindow`, `XMoveResizeWindow`, `XRaiseWindow`, `XLowerWindow` X11 calls - [@vinceh121](https://github.com/vinceh121).

Bug Fixes
---------
Expand Down
6 changes: 6 additions & 0 deletions contrib/platform/src/com/sun/jna/platform/unix/X11.java
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,12 @@ int XGetGeometry(Display display, Drawable d, WindowByReference w, IntByReferenc
boolean XTranslateCoordinates(Display display, Window src_w, Window dest_w, int src_x, int src_y,
IntByReference dest_x_return, IntByReference dest_y_return, WindowByReference child_return);

int XMoveWindow(Display display, Window w, int x, int y);
int XResizeWindow(Display display, Window w, int width, int height);
int XMoveResizeWindow(Display display, Window w, int x, int y, int width, int height);
int XRaiseWindow(Display display, Window w);
int XLowerWindow(Display display, Window w);

/*****************************************************************
* RESERVED RESOURCE AND CONSTANT DEFINITIONS
*****************************************************************/
Expand Down

0 comments on commit c368fe6

Please sign in to comment.