Skip to content

Instantly share code, notes, and snippets.

@fmuellner
Created March 6, 2012 16:55
Show Gist options
  • Save fmuellner/1987468 to your computer and use it in GitHub Desktop.
Save fmuellner/1987468 to your computer and use it in GitHub Desktop.
Patch against blender 2.62
From 664c5c0251c88e885087a0657f86db9349694bf6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
Date: Tue, 6 Mar 2012 14:56:55 +0100
Subject: [PATCH] window: Request dark titlebars
---
intern/ghost/intern/GHOST_WindowX11.cpp | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/intern/ghost/intern/GHOST_WindowX11.cpp b/intern/ghost/intern/GHOST_WindowX11.cpp
index 71e3f7b..3d65d2c 100644
--- a/intern/ghost/intern/GHOST_WindowX11.cpp
+++ b/intern/ghost/intern/GHOST_WindowX11.cpp
@@ -292,6 +292,13 @@ GHOST_WindowX11(
CWBorderPixel|CWColormap|CWEventMask,
&xattributes
);
+ XChangeProperty(
+ m_display,
+ m_window,
+ XInternAtom(m_display, "_GTK_THEME_VARIANT", False),
+ XInternAtom(m_display, "UTF8_STRING", False),
+ 8, PropModeReplace, (unsigned char*)"dark", 4
+ );
} else {
Window root_return;
--
1.7.9.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment