mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-26 00:12:31 +01:00
WPrefs appearance stuff update (shows preview)
This commit is contained in:
@@ -641,8 +641,8 @@ void
|
||||
wClientGetNormalHints(WWindow *wwin, XWindowAttributes *wattribs, Bool geometry,
|
||||
int *x, int *y, unsigned *width, unsigned *height)
|
||||
{
|
||||
int pre_icccm=0;
|
||||
|
||||
int pre_icccm = 0; /* not used */
|
||||
|
||||
/* find a position for the window */
|
||||
if (!wwin->normal_hints)
|
||||
wwin->normal_hints = XAllocSizeHints();
|
||||
@@ -714,8 +714,7 @@ wClientGetNormalHints(WWindow *wwin, XWindowAttributes *wattribs, Bool geometry,
|
||||
wwin->normal_hints->min_width = wwin->normal_hints->max_width;
|
||||
}
|
||||
|
||||
/* pre ICCCM (old) client */
|
||||
if (pre_icccm && !wwin->screen_ptr->flags.startup && geometry) {
|
||||
if (/*pre_icccm && */!wwin->screen_ptr->flags.startup && geometry) {
|
||||
#ifdef DEBUG
|
||||
printf("PRE ICCCM\n");
|
||||
#endif
|
||||
@@ -723,6 +722,7 @@ wClientGetNormalHints(WWindow *wwin, XWindowAttributes *wattribs, Bool geometry,
|
||||
wwin->normal_hints->flags &= ~PPosition;
|
||||
#endif
|
||||
if (wwin->normal_hints->flags & (USPosition|PPosition)) {
|
||||
puts("QWEWQEWQ");
|
||||
*x = wwin->normal_hints->x;
|
||||
*y = wwin->normal_hints->y;
|
||||
}
|
||||
|
||||
@@ -502,9 +502,9 @@ main(int argc, char **argv)
|
||||
sprintf(str, "DISPLAY=%s", DisplayName);
|
||||
putenv(str);
|
||||
|
||||
//#ifdef DEBUG
|
||||
#ifdef DEBUG
|
||||
XSynchronize(dpy, True);
|
||||
//#endif
|
||||
#endif
|
||||
|
||||
wXModifierInitialize();
|
||||
|
||||
|
||||
@@ -816,7 +816,9 @@ wManageWindow(WScreen *scr, Window window)
|
||||
if (win_state && win_state->state->use_geometry) {
|
||||
x = win_state->state->x;
|
||||
y = win_state->state->y;
|
||||
} else if (wwin->transient_for==None && !scr->flags.startup
|
||||
} else if ((wwin->transient_for==None
|
||||
|| wPreferences.window_placement!=WPM_MANUAL)
|
||||
&& !scr->flags.startup
|
||||
&& workspace == scr->current_workspace
|
||||
&& !wwin->flags.miniaturized
|
||||
&& !wwin->flags.maximized
|
||||
@@ -861,7 +863,7 @@ wManageWindow(WScreen *scr, Window window)
|
||||
|
||||
/* setup button images */
|
||||
wWindowUpdateButtonImages(wwin);
|
||||
|
||||
|
||||
/* hide unused buttons */
|
||||
foo = 0;
|
||||
if (WFLAGP(wwin, no_close_button))
|
||||
@@ -917,6 +919,7 @@ wManageWindow(WScreen *scr, Window window)
|
||||
if (gy > 0)
|
||||
y -= wwin->frame->top_width + wwin->frame->bottom_width;
|
||||
}
|
||||
|
||||
/*
|
||||
* wWindowConfigure() will init the client window's size
|
||||
* (wwin->client.{width,height}) and all other geometry
|
||||
|
||||
Reference in New Issue
Block a user