tsayao
(Thiago Sayão)
November 5, 2024, 10:12pm
1
Is it possible to put a GtkOverlay on top of a XWindow that is GL rendered?
Gtk does not control the window rendering.
The original window is actually a Gtk Window, but it’s passed to GLX as a XID and rendered independently.
Yes, I know it’s not ideal.
Sid
(Sid)
November 6, 2024, 6:39am
2
Hi,
If you can explain what you’re trying to achieve, it would help GTK devs.
tsayao
(Thiago Sayão)
November 6, 2024, 10:31am
3
Sure,
It’s for the PR:
openjdk:master
← mstr2:feature/extended-window
opened 12:47AM - 20 Oct 24 UTC
Implementation of [`EXTENDED` stage style](https://gist.github.com/mstr2/0befc54… 1ee7297b6db2865cc5e4dbd09).
---------
### Progress
- [x] Change must not contain extraneous whitespace
- [ ] Change requires a CSR request matching fixVersion jfx24 to be approved (needs to be created)
- [x] Commit message must refer to an issue
- [ ] Change must be properly reviewed (2 reviews required, with at least 2 [Reviewers](https://openjdk.org/bylaws#reviewer))
### Issue
* [JDK-8313424](https://bugs.openjdk.org/browse/JDK-8313424): JavaFX controls in the title bar (**Enhancement** - P4)
### Reviewing
<details><summary>Using <code>git</code></summary>
Checkout this PR locally: \
`$ git fetch https://git.openjdk.org/jfx.git pull/1605/head:pull/1605` \
`$ git checkout pull/1605`
Update a local copy of the PR: \
`$ git checkout pull/1605` \
`$ git pull https://git.openjdk.org/jfx.git pull/1605/head`
</details>
<details><summary>Using Skara CLI tools</summary>
Checkout this PR locally: \
`$ git pr checkout 1605`
View PR using the GUI difftool: \
`$ git pr show -t 1605`
</details>
<details><summary>Using diff file</summary>
Download this PR as a diff file: \
<a href="https://git.openjdk.org/jfx/pull/1605.diff">https://git.openjdk.org/jfx/pull/1605.diff</a>
</details>
<details><summary>Using Webrev</summary>
[Link to Webrev Comment](https://git.openjdk.org/jfx/pull/1605#issuecomment-2424357745)
</details>
MacOS would draw window controls over the window. I want to mimmick that with a GtkOverlay, and use either the HeaderBar, or copy the button part (since GtkWindowControls are gtk4 only and we use gtk3).
The window is a GtkWindow, but it’s app paintable and rendered with GL directly on the XWindow XID.
system
(system)
Closed
December 6, 2024, 10:32am
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.