Custom Titlebar in Linux/GTK implementation finished, please test! #340
Replies: 3 comments 1 reply
-
|
Hello Mirek, Thanks for outstanding contribution! Backing to the topic. The Wayland version works fine. As I wrote on Discord we are using GTK internals, so there is no reason it shouldn't work. I tested it and it works as expected on Wayland. I tested on UWord and Custom title bar example. The issues, I noticed:
Some improvements for the future
|
Beta Was this translation helpful? Give feedback.
-
Unfortunately I do not see that in kubuntu (wayland nor xwayland) - all seems fine. Please help me to narrow this down... CtrlCore/GtkTop.cpp:42 are good places to put some DDUMPs... If the problem manifests for simple GUI_APP_MAIN { PromptOK("!"); } it should show "bad values" somewhere....
Interestingly, this also works fine in kubuntu (CtrlCore now has the code to disable subtitle which seems to have the right effect). |
Beta Was this translation helpful? Give feedback.
-
|
After refactoring much more code than hoped, I think it should now behave better.... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
After weeks of effort, I have finally got this working:
(The last thing was to prevent dragging titlebar when the mouse is over U++ widget - that took me 50+ hours to figure out by trial / error, ultimately ending with this ugly piece of code:
Anyway, the whole thing is now finally ready for testing, before I merge it, in "custome_titlebar_branch" (master is merged there, so it is really the latest U++ version now...)
I am not yet sure how this will behave in Wayland (probably will not) or XWayland (probably will, plan to test later today).
I have also feeling theide now might be a bit unstable, so perhaps try to run it in debug mode from debugger (that is what I do now...) and send backtrace if possible :)
Other than that, I have run out of "gtk custombar todo" list.
Beta Was this translation helpful? Give feedback.
All reactions