Browse Source

use compton to handel compositing (transitions)

sisyphus
Dustin Falgout 9 years ago
parent
commit
0ae79d4b30
  1. 9
      data/Makefile.am
  2. 4
      data/lightdm-webkit2-greeter-start
  3. 2
      data/lightdm-webkit2-greeter.desktop
  4. 9
      src/lightdm-webkit2-greeter-ext.c
  5. 6
      themes/Makefile.am

9
data/Makefile.am

@ -1,9 +1,16 @@
etcdir = /etc/lightdm/
etc_DATA = lightdm-webkit2-greeter.conf
launcherdir = $(bindir)
launcher_DATA = lightdm-webkit2-greeter-start
desktopdir = $(DESKTOP_DIR)
desktop_DATA = lightdm-webkit2-greeter.desktop
EXTRA_DIST = \
$(etc_DATA) \
$(desktop_DATA)
$(desktop_DATA) \
$(launcher_DATA)
DISTCLEANFILES = \
Makefile.in

4
data/lightdm-webkit2-greeter-start

@ -0,0 +1,4 @@
#!/bin/bash
[[ which compton ]] && compton &
lightdm-webkit2-greeter

2
data/lightdm-webkit2-greeter.desktop

@ -1,6 +1,6 @@
[Desktop Entry]
Name=LightDM WebKit2 Greeter
Comment=LightDM Greeter
Exec=lightdm-webkit2-greeter
Exec=lightdm-webkit2-greeter-start
Type=Application
X-Ubuntu-Gettext-Domain=lightdm-webkit2-greeter

9
src/lightdm-webkit2-greeter-ext.c

@ -35,11 +35,9 @@
#include <glib/gi18n.h>
#include <webkit2/webkit-web-extension.h>
#define WEBKIT_DOM_USE_UNSTABLE_API
#include <webkitdom/WebKitDOMDOMWindowUnstable.h>
#include <webkitdom/webkitdom.h>
#include <webkitdom/WebKitDOMCustom.h>
#include <JavaScriptCore/JavaScript.h>
#include <lightdm.h>
G_MODULE_EXPORT void webkit_web_extension_initialize(WebKitWebExtension *extension);
@ -915,7 +913,8 @@ static const JSStaticFunction lightdm_greeter_functions[] = {
{"restart", restart_cb, kJSPropertyAttributeReadOnly},
{"shutdown", shutdown_cb, kJSPropertyAttributeReadOnly},
{"set_language", set_language_cb, kJSPropertyAttributeReadOnly},
{"login", login_cb, kJSPropertyAttributeReadOnly}, {NULL, NULL, 0}};
{"login", login_cb, kJSPropertyAttributeReadOnly},
{NULL, NULL, 0}};
static const JSStaticFunction gettext_functions[] = {
{"gettext", gettext_cb, kJSPropertyAttributeReadOnly},

6
themes/Makefile.am

@ -1,4 +1,8 @@
EXTRA_DIST = antergos
themedir = /usr/share/lightdm-webkit
theme = antergos
EXTRA_DIST = $(theme)
dist-hook:
chmod -R u+w $(distdir)/antergos
rm -rf $(distdir)/antergos/.git

Loading…
Cancel
Save