lwjgl3 icon indicating copy to clipboard operation
lwjgl3 copied to clipboard

Where is XReparentWindow(long display, long window, long parent_window) ?

Open DeafMan1983 opened this issue 3 years ago • 1 comments

Version

3.3.1

Platform

Linux x64, Windows x64

JDK

OpenJDK 11.x

Module

LWGL3 and SWT

Bug description

Hello I want have XReparentWindow it is X11 for Linux and FreeBSD

It mens parent of window example

I want put code like this:

// If you use Linux then you need set
long gtk_win = GTK3.gtk_widget_get_window(comp.handle);
long gdk_win = GDK.gdk_window_get_width(gtk_win);
long x11_win = GDK.gdk_x11_window_get_xid(gdk_win);
long x11_display = GDK.gdk_x11_display_get_xdisplay(GDK.gdk_display_get_default());
X11.Functions.XReparentWindow(x11_display, glfwGetX11Window(window), x11_win);

But my Eclipse shows error underline: image

Check @Ali-RS He tried to embed GLFW3 inside SWT, AWT or Swing See #742

It works like SDL2 too For WIndows is ok with OS.SetParent, OS.SetWindowPos I know far. Example: image

But for Linux doesn't have XReparentWindow in X11.Functions

Please add XReparentWindow() in lwjgl's X11.Functions

Thank you!

Stacktrace or crash log output

Invalid because XReparentWIndow doesn't exist in Functions

DeafMan1983 avatar May 07 '22 15:05 DeafMan1983

Hey @DeafMan1983,

The X11 bindings are nowhere near complete, only a few functions are included. I'm not sure what you're trying to achieve, or how many more X11 functions you are going to need, but the bindings are defined in X11.kt. You're welcome to submit a PR that defines more functionality.

Spasi avatar Aug 22 '22 18:08 Spasi

Hi sorry for late delay. But I don't care about Kotlin because I don't have experience of Kotlin. Sorry I will look for other windowing system like X11, XCB or DF for lwjgl3

DeafMan1983 avatar Mar 11 '23 17:03 DeafMan1983

You don't need experience with Kotlin and you don't have to "care" about it. This code is only used offline for generating the Java + C bindings, there's no dependency to Kotlin at runtime.

Spasi avatar Mar 11 '23 17:03 Spasi