View Single Post
Old 10-16-2018, 08:10 AM   #51
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 2,780
Default

Quote:
Originally Posted by juliansader View Post
For the time being, this function will only work on Windows. I submitted a FR for a cross-platform version.
Why not add that code directly into the extension in the meantime? (For non-mac it'd probably be best to use gdk_window_set_opacity instead of talking directly to Xorg though.)

Code:
// macOS (Objective-C!)
if ([(id)hwnd isKindOfClass:[NSWindow class]])
{
  NSWindow *window = (NSWindow *)hwnd;
}

// Others (swell-generic)
#include <swell/swell-internal.h> // to get the definition of HWND__
GdkWindow *window = hwnd->os_window;
(This will fail badly if the SWELL implementation provided by the application – REAPER – ever changes its inner workings in the future.)

Last edited by cfillion; 10-17-2018 at 12:01 AM.
cfillion is offline   Reply With Quote