Skip to content

Instantly share code, notes, and snippets.

@t-8ch
Created January 31, 2018 22:10
Show Gist options
  • Save t-8ch/5e59f5a5eff265ad429c779000511f0a to your computer and use it in GitHub Desktop.
Save t-8ch/5e59f5a5eff265ad429c779000511f0a to your computer and use it in GitHub Desktop.
minimal mutter application with window management
#include <meta/main.h>
int main() {
> GMainLoop *loop = g_main_loop_new(NULL, FALSE);
> meta_init();
> g_main_loop_run(loop);
}
CFLAGS=$(shell pkg-config --cflags libmutter-1) -Wl,-rpath,/usr/lib/mutter
LDLIBS=$(shell pkg-config --libs libmutter-1)
all: main
@jameskeane
Copy link

Thank you! This was the last piece I needed to upgrade my system to ubuntu 18.04 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment