development is progress, isn't it?skei wrote:be warned, it is "in progress"
I can't find your X event loop in the source, could you give me a pointer were it is?
Moderators: MattKingUSA, khz
development is progress, isn't it?skei wrote:be warned, it is "in progress"
looks really nice!tramp wrote:This is a example of Xputty:
hehe, yeah..tramp wrote:development is progress, isn't it?skei wrote:be warned, it is "in progress"
there's actually two..tramp wrote:I can't find your X event loop in the source, could you give me a pointer were it is?
i just tried to print out the void* parent argument to on_openEditor (the xid for the parent window you should reparent your editor to)..tramp wrote:Most likely is that the host didn't shot down the interface, but only hide it. Then, on the next run, your UI started with undefined behave because events get lost in the mean time.
Yes, so it must be something different then that.skei wrote:the fact that they differ each time i close, and then reopen the editor, indicates that the host is not just hiding it, but actually destroying it, and recreating it again.. isn't it?
Code: Select all
cairo_device_t* device = cairo_device_reference(cairo_surface_get_device(MCairoSurface));
cairo_device_finish(device);
cairo_device_destroy(device);
yes, that's the plan..SpotlightKid wrote:Would it be possible to include one or two example plugins in your repository?
Ah, okay, that is indeed not necessary when you use the plain xlib back-end.skei wrote:another update in case anybody is interested..
i got the cairo stuff working now.. i think..
found some mailing list posts about this, which suggested adding these lines before shutting down the editor
and that seemed to fix my problems!! hooray!Code: Select all
cairo_device_t* device = cairo_device_reference(cairo_surface_get_device(MCairoSurface)); cairo_device_finish(device); cairo_device_destroy(device);
now i can open and close the editor as much as i want
time to do a bunch of testing to be sure, and then clean up the code..
btw, the 'simplistic' part of the thread title isn't really correct anymore, and 'vst3' can be replaced with 'ladspa, dssi, lv2, vst2, vst3, and standalone executable' ..
source code: https://github.com/skei/kode9
- tor-helge
yeah, i was surprised myself.. in older versions of the gui stuff, i never needed to do anything similar to this.. but i tried things almost in "desperation".. and then, bam, it worked!tramp wrote:Ah, okay, that is indeed not necessary when you use the plain xlib back-end.
All the best. Hope things went out nicely for you.skei wrote:i'm having some major surgery in a few days (removing internal organs, etc), and i expect to be away from the computer for a month or two, while i'm healing.. so i will probably not be able to continue working on the framework until the start of next year or something.. but we'll see..