mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
- API change in WINGs for WMDraw*String().
WMDrawString() and WMDrawImageString() now take WMColor instead of GC as arguments. WMDrawImageString() receives 2 colors (text & background). This is to allow easy extension for Xft/Xrender and hide X low level details - Added alpha channel to WMColor. 2 new functions also: WMCreateRGBAColor() and WMSetColorAlpha() - Miscelaneous code cleanups in wtext.c - Removed obsoleted acconfig.h and implemented its functionality using AC_DEFINE and AC_DEFINE_UNQUOTED as autoconf 2.5x recommends. This will definitely enforce the need to use autoconf 2.5x
This commit is contained in:
@@ -474,24 +474,20 @@ wWindowSetupInitialAttributes(WWindow *wwin, int *level, int *workspace)
|
||||
*/
|
||||
if (wwin->user_flags.no_appicon && wwin->defined_user_flags.no_appicon)
|
||||
wwin->user_flags.emulate_appicon = 0;
|
||||
/*//WSETUFLAG(wwin, emulate_appicon, 0);*/
|
||||
|
||||
if (wwin->main_window!=None) {
|
||||
WApplication *wapp = wApplicationOf(wwin->main_window);
|
||||
if (wapp && !wapp->flags.emulated)
|
||||
wwin->user_flags.emulate_appicon = 0;
|
||||
/*//WSETUFLAG(wwin, emulate_appicon, 0);*/
|
||||
}
|
||||
|
||||
if (wwin->transient_for!=None
|
||||
&& wwin->transient_for!=wwin->screen_ptr->root_win)
|
||||
wwin->user_flags.emulate_appicon = 0;
|
||||
/*//WSETUFLAG(wwin, emulate_appicon, 0);*/
|
||||
|
||||
if (wwin->user_flags.sunken && wwin->defined_user_flags.sunken
|
||||
&& wwin->user_flags.floating && wwin->defined_user_flags.floating)
|
||||
wwin->user_flags.sunken = 0;
|
||||
/*//WSETUFLAG(wwin, sunken, 0);*/
|
||||
|
||||
WSETUFLAG(wwin, no_shadeable, WFLAGP(wwin, no_titlebar));
|
||||
|
||||
@@ -1159,7 +1155,6 @@ wManageWindow(WScreen *scr, Window window)
|
||||
scr->window_title_texture,
|
||||
scr->resizebar_texture,
|
||||
scr->window_title_pixel,
|
||||
&scr->window_title_gc,
|
||||
&scr->title_font);
|
||||
|
||||
wwin->frame->flags.is_client_window_frame = 1;
|
||||
@@ -1519,7 +1514,6 @@ wManageInternalWindow(WScreen *scr, Window window, Window owner,
|
||||
scr->window_title_texture,
|
||||
scr->resizebar_texture,
|
||||
scr->window_title_pixel,
|
||||
&scr->window_title_gc,
|
||||
&scr->title_font);
|
||||
|
||||
XSaveContext(dpy, window, wWinContext, (XPointer)&wwin->client_descriptor);
|
||||
|
||||
Reference in New Issue
Block a user