--- src/macterm.c.old Sun Jan 23 17:17:16 2005 +++ src/macterm.c Sun Jan 23 16:48:40 2005 @@ -303,6 +303,9 @@ extern void menubar_selection_callback (FRAME_PTR, int); extern void set_frame_menubar (FRAME_PTR, int, int); +/* Make Trans Parency */ +int mac_transparency_alpha; + /* X display function emulation */ void @@ -5282,6 +5285,8 @@ f->win_gravity = NorthWestGravity; x_wm_set_size_hint (f, (long) 0, 0); + SetWindowAlpha (f->output_data.mac->mWP, ((float)mac_transparency_alpha/100)); + SizeWindow (FRAME_MAC_WINDOW (f), pixelwidth, pixelheight, 0); /* Now, strictly speaking, we can't be sure that this is accurate, @@ -9945,6 +9950,11 @@ command, this enables the Mac keyboard to be used to enter non-ASCII characters directly. */); mac_keyboard_text_encoding = kTextEncodingMacRoman; + + DEFVAR_INT ("mac-transparency-alpha", &mac_transparency_alpha, + doc: /* Transparency ratio, can be set integer between 0 to 100. +0 means fully transparent, 100 means non transparent */); + mac_transparency_alpha = 100; } /* arch-tag: f2259165-4454-4c04-a029-a133c8af7b5b