From a2d16ca770e90282ee5cb342ad8072e06a0df229 Mon Sep 17 00:00:00 2001 From: Vincent Hyvert Date: Tue, 23 Apr 2024 05:49:54 +0200 Subject: [PATCH] feat: X11 window move, resize, raise and lower calls --- CHANGES.md | 1 + contrib/platform/src/com/sun/jna/platform/unix/X11.java | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 656d6cf335..0d02adc971 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 to `c.s.j.p.unix.X11` - [@vinceh121](https://github.com/vinceh121). Bug Fixes --------- diff --git a/contrib/platform/src/com/sun/jna/platform/unix/X11.java b/contrib/platform/src/com/sun/jna/platform/unix/X11.java index 08627b6405..ce7e8193f4 100644 --- a/contrib/platform/src/com/sun/jna/platform/unix/X11.java +++ b/contrib/platform/src/com/sun/jna/platform/unix/X11.java @@ -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 *****************************************************************/