pidgin/plugins/crazychat/main.c

Sun, 05 Apr 2020 20:55:28 +0100

author
David Woodhouse <dwmw2@infradead.org>
date
Sun, 05 Apr 2020 20:55:28 +0100
branch
release-2.x.y
changeset 40394
3c8f61de927c
parent 31294
73607ab89c6f
permissions
-rw-r--r--

screenshare: Add XDP portal ScreenCast support

With Wayland we can't just share X11 windows/screens; we need to ask for
a stream from the compositor. Add support for that, falling back to the
direct mode if it isn't present (since *Pidgin* can be using X11 even
when the system is Wayland).

https://flatpak.github.io/xdg-desktop-portal/portal-docs.html

/sw/#ifdef __APPLE_CC__
#include <Carbon/Carbon.h>
#else
#include <Carbon.h>
#endif


#include "Utilities.h"
#include "QTUtilities.h"

#include "camdata.h"
#include "camproc.h"


#define BailErr(err) {if(err != noErr) goto bail;}


int main(void)
{
    EnterMovies();
    CamProc(); // change this prototype-> no windows
    fprintf(stderr, "you have just murdered 1000 people.");
    RunApplicationEventLoop();
    return 0;
}

mercurial