Monday, 2015-09-14

*** ColaEuphoria has joined #lv201:03
*** edogawa has joined #lv205:31
*** ColaEuphoria has quit IRC06:34
*** ricardocrudo has joined #lv208:29
*** ventosus has joined #lv208:51
*** ricardocrudo has quit IRC09:27
*** falktx has joined #lv209:28
*** ventosus has quit IRC09:40
*** ricardocrudo has joined #lv209:41
*** Galik has quit IRC10:56
*** ventosus has joined #lv211:11
falktxdrobilla: can you push the latest changes to github mirror?12:08
*** Galik has joined #lv212:23
drobillaThought I had a push hook for that...13:30
drobillafalktx: done13:30
*** NickSB2_ has quit IRC13:53
falktxdrobilla: is there an ingen command to delete all plugins at once?13:57
falktxdrobilla: right now I'm caching the existing plugins and calling delete on each one, isn't there a better way...?13:58
falktxsomething that resets/clears the full state13:58
*** NickSB2_ has joined #lv215:10
*** falktx has quit IRC15:51
*** sigma6 has quit IRC16:06
*** rncbc has joined #lv216:10
*** falktx has joined #lv216:49
rncbcdrobilla: hi17:13
rncbcdrobilla: jfyi. new patch replaces one from yesterday -> http://dev.drobilla.net/ticket/108717:16
*** falktx has quit IRC17:17
*** HarryHaaren has joined #lv217:21
*** falktx has joined #lv217:28
*** ssj71 has joined #lv217:56
ssj71apparently I have committed something egregious...17:57
ssj71rgareus: I have not seen any of my UIs crashing17:58
rgareusssj71: drobilla fixed it in suil.  the instatiate code of a GUI  has a  LV2UI_Widget*   widget;     if your plugin is an X11UI you must set this to the X11 window ID18:00
rgareusssj71: it was previously only malloc()ed in suil  and hence undefined.18:01
rgareusssj71: the host later uses it as valid window-ID  (to pass keyboard shortcut, resize events etc etc).18:01
ssj71ok, so then the resize extension would not be necesssary?18:01
*** HarryHaaren has quit IRC18:02
rgareusssj71: the other way round'.   resize extension if your your plugin to resize.18:03
rgareusssj71: not seeing crashes, but you probably have messages from libxcb: invalid window-ID  in the commandline18:04
ssj71hmm. well I'll try to set the LV2_widget first and then see what happens18:04
rgareusssj71: I have not tested with your plugins, but harry's plugis have tjem18:04
falktxthat thing is useless for x11 windows18:04
falktxthere's ui:parent to set the window ID18:04
ssj71then mine surely do. I copied his verbatim (he's since refactored avtk immensely)18:05
falktxinfamous and harry's plugins don't use the lv2_widget at all18:05
falktxssj71: correct?18:05
rgareusfalktx: that's also the other way 'round   host pases the "parent" to the client   and the client (plugin GUI) add itself to it18:05
ssj71falktx: correct, but I've been told now that that is bad18:05
falktxhmmm18:05
rgareusfalktx: but for a host to pass X11 events to the client you need the X11 window  (id)18:05
falktx..why do we need to keep changing things....!?18:06
rgareusfalktx: Window is just a 32bit int.18:06
rgareusfalktx: it has always been like that18:06
falktxok18:06
rgareusfalktx: that's really X11'8918:06
falktxthen I don't need to do anything18:06
rgareusfalktx: no18:06
rgareusall is fine.18:06
falktxrgareus: is the host expected to do something with the x11 window of the plugin ui?18:06
falktxI just let the plugin do its business18:07
rgareusfalktx: in the X11 warpped in gtk  case  the ID is needed to forward keyboard events  and resize requests18:07
falktxoh yeah, fancy embedding stuff18:07
falktxI just show the plugin window as-is18:07
rgareusfalktx: yes, you're fine there.18:08
rgareusfalktx: if you embedd it, I expect in in QT  you'll have to send X11 events to the X11 plugin (from the QT callback slot,  QT abstracts those for the host)18:09
rgareusthe embedded X11 window will not see the events otherwise18:09
ssj71rgareus: so do I need to remove/change anything or just add returning the x11 id as the lv2_widget?18:10
rgareusssj71: if you can get the X11 Window.      *widget = w;18:10
rgareusssj71: if not, it'd be good practice to at least  zero it.    *widget = NULL;18:11
ssj71a'ight.  I can manage that18:11
falktxrgareus: the host can just zero it before sending it to the plugin18:12
falktxthen check if it was modified or not18:12
falktxsimple18:12
rgareusfalktx: that's what suil does now (since 2 or 3 days)18:12
rgareusfalktx: it didn't do that before.18:12
falktxhahaha18:12
falktxomg18:12
falktxI just wish jalv.qt4/5 to work nicely one day18:13
rgareushttp://lv2plug.in/doc/html/group__ui.html#a8dcbd2307b630c0b77e254cf3cc35913  says  "The UI points this at its main widget"18:14
*** HarryHaaren has joined #lv218:14
falktxI always felt harry's code was a bit weird there18:16
falktxit just ignored that var18:16
falktxspeaking of him...18:16
rgareusfalktx: not quite.  harry's plugin set it to the FLTK Window.  that's "almost" correct  it were if the plugin was a "LV2::fltkUI"18:17
*** NickSB2_ has quit IRC18:19
rgareushe said it's a won't fix and the bright future is openAVtk (pugl based, gets this right)18:19
falktxthen I saw some old code I guess18:19
rgareusfalktx: https://github.com/harryhaaren/openAV-ArtyFX/blob/master/ducka/gui/ducka_ui.cxx#L8918:25
rgareusthe first member https://github.com/harryhaaren/openAV-ArtyFX/blob/master/ducka/gui/ducka_widget.h#L14  is a Fl_Double_Window *window;18:26
rgareushttp://www.fltk.org/documentation.php/doc-1.1/osissues.html18:27
rgareusit should simplit assign     fl_xid()   of that window18:27
rgareusor the private  fl_window;18:28
*** HarryHaaren has quit IRC18:31
*** uncle-j_j has joined #lv218:32
*** HarryHaaren has joined #lv218:45
*** HarryHaaren has quit IRC18:47
*** deva has joined #lv219:03
falktxn one should use fltk for plugins to begin with :)19:23
falktx*n19:23
falktx*no19:23
*** falktx has quit IRC19:26
*** ricardocrudo has quit IRC19:27
*** nicksters has joined #lv219:33
*** deva has quit IRC19:35
ssj71it appears fl_xid is broken in NTK19:40
ssj71is there actually an objective reason not to use fltk for plugins?19:58
*** curlymorphic has joined #lv220:37
*** nicksters has quit IRC20:44
*** nicksters has joined #lv220:44
*** son0p has joined #lv220:45
*** ventosus has left #lv220:53
rgareusssj71: the blocking menu and file-window IIRC20:54
rgareusssj71: and fltk itself is just ugly on X11.  it uses the ancient x11-drawing primitives. not antialiased20:54
rgareusthe objective reason against all major toolkits:  they don't have audio-specific widgets.20:55
ssj71ok. nothing catastrophic21:05
ssj71I do need to figure out how to get fl_xid working though21:05
*** ricardocrudo has joined #lv221:07
*** tytel has joined #lv221:08
*** nicksters has quit IRC21:37
*** nicksters has joined #lv221:39
*** uncle-j_j1 has joined #lv221:41
*** uncle-j_j has quit IRC21:42
ssj71some days I feel like I should just throw my computer over the bridge and start digging ditches or something21:46
ssj71rgareus: so... I've done that now, should I expect any change in behaviour or...21:49
rgareusssj71: can your plugins be resized?  do they accept keyboard entry?21:53
rgareusssj71: if so when swalled in e.g. jalv.gtk or ardour  that should work now21:53
ssj71no keyboard entry21:53
ssj71resizing does the same thing it did before21:53
ssj71the gui doesn't actually change size, just the surrounding window21:54
ssj71this is in ardour 4.221:54
ssj71probably need bleeding edge suil and company right?21:54
rgareusssj71: with new suil (recent git) it now should be centered21:55
*** six6110 has joined #lv221:55
ssj71my guis are resizable, will they resize?21:56
rgareusI checked with  Harry's plugins (they don't since no X11 ID is returned)  but other fixed-sized X11 plugins now are properly centered21:56
rgareusssj71: yes21:56
ssj71WOOT! tiling! :)21:56
ssj71if you want to test the change you can build stuck from the devel branch21:57
ssj71otherwise I'll get back to you when I have time to update suil21:58
rgareustiling?21:58
ssj71daws don't really work with tiling WMs21:58
ssj71or rather, most plugins don't, but mine do21:58
*** ricardocrudo has quit IRC21:58
rgareusaah got you. I thought the plugin display was tiled (cropped and repeated)21:59
ssj71because tiled windows always have various aspect ratios21:59
rgareusssj71: http://dev.drobilla.net/attachment/ticket/1085/commit-d770060.diff adds aspect ratio constraints21:59
rgareusssj71: if your plugin was to report it, they'll be honored21:59
ssj71but thats exactly the point, I want plugins to use any aspect ratio. the infamous plugins do22:00
rgareusin any case that's an example where     XResizeWindow(GDK_WINDOW_XDISPLAY(window), ...     )   is called and window is what your plugin returns22:00
rgareusssj71: in that case, don't set X-Window hints :)22:00
rgareusby default all aspect-ratios work22:00
ssj71http://4.bp.blogspot.com/-DubiPy1ooiI/U-kn1dk7D_I/AAAAAAAAAHQ/kQSoQB6OfrY/s1600/result.png22:01
rgareusbut in some cases it makes sense to allow resizing BUT with constrains  (min, max size, aspect,...)22:01
ssj71agreed.22:01
rgareusssj71: right, you do that yourself.22:01
*** uncle-j_j1 has quit IRC22:02
ssj71casynth fills the window and resizes widgets to the constraining dimension, so it's more sensitive to extremes22:02
ssj71but still, does as its told22:02
ssj71http://3.bp.blogspot.com/-7K3Lq2wgmbQ/VVKNUaS0_UI/AAAAAAAAAL8/rhXEMBQ6I-w/s1600/2015-05-12-172856_2880x1800_scrot.png22:03
* rgareus likes scalable plugin GUIs22:04
*** nicksters has quit IRC22:05
ssj71I'm a big fan. It was more or less the #1 priority in choosing how I implemented guis22:05
ssj71for better or worse22:05
*** edogawa has quit IRC22:33
*** curlymorphic has quit IRC22:44
*** rncbc has quit IRC23:00

Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!