Xorg: Add option to disable transparency (workaround for broken graphics stacks; issues 432, 435, 439)
git-svn-id: http://tint2.googlecode.com/svn/trunk@675 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
committed by
mrovi9000@gmail.com
parent
45cc690167
commit
28d726626d
@@ -125,6 +125,7 @@ void cleanup_server()
|
||||
free(server.monitor);
|
||||
}
|
||||
if (server.gc) XFreeGC(server.dsp, server.gc);
|
||||
server.disable_transparency = 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -408,7 +409,7 @@ void server_init_visual()
|
||||
server.colormap32 = XCreateColormap(server.dsp, server.root_win, visual, AllocNone);
|
||||
}
|
||||
|
||||
if (visual && server.composite_manager != None && snapshot_path == 0) {
|
||||
if (!server.disable_transparency && visual && server.composite_manager != None && snapshot_path == 0) {
|
||||
XSetWindowAttributes attrs;
|
||||
attrs.event_mask = StructureNotifyMask;
|
||||
XChangeWindowAttributes (server.dsp, server.composite_manager, CWEventMask, &attrs);
|
||||
|
||||
Reference in New Issue
Block a user