mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-24 23:22:30 +01:00
Some bug fixes to 0.50.0 before release
This commit is contained in:
@@ -218,7 +218,7 @@ getSimpleHint(Window win, Atom atom, long *retval)
|
||||
|
||||
assert(atom!=0);
|
||||
|
||||
data = (long*)PropGetCheckProperty(window, atom, atom, 32, 1, NULL);
|
||||
data = (long*)PropGetCheckProperty(win, atom, atom, 32, 1, NULL);
|
||||
|
||||
if (!data)
|
||||
return False;
|
||||
@@ -1424,7 +1424,7 @@ wKWMUpdateClientGeometryRestore(WWindow *wwin)
|
||||
|
||||
|
||||
void
|
||||
wKWMUpdateClientState(WWindow *wwin, WKWMStateFlag flags)
|
||||
wKWMUpdateClientStateHint(WWindow *wwin, WKWMStateFlag flags)
|
||||
{
|
||||
if (flags & KWMIconifiedFlag) {
|
||||
setSimpleHint(wwin->client_win, _XA_KWM_WIN_ICONIFIED,
|
||||
|
||||
@@ -45,7 +45,7 @@ void wKWMInitStuff(WScreen *scr);
|
||||
|
||||
Bool wKWMGetUsableArea(WScreen *scr, WArea *area);
|
||||
|
||||
void wKWMCheckClientHints(WWindow *wwin, long *workspace);
|
||||
void wKWMCheckClientHints(WWindow *wwin, int *workspace);
|
||||
|
||||
Bool wKWMCheckClientHintChange(WWindow *wwin, XPropertyEvent *event);
|
||||
|
||||
@@ -63,7 +63,7 @@ void wKWMUpdateClientGeometryRestore(WWindow *wwin);
|
||||
|
||||
void wKWMUpdateClientWorkspace(WWindow *wwin);
|
||||
|
||||
void wKWMUpdateClientState(WWindow *wwin, WKWMStateFlag flags);
|
||||
void wKWMUpdateClientStateHint(WWindow *wwin, WKWMStateFlag flags);
|
||||
|
||||
Bool wKWMManageableClient(WScreen *scr, Window win, char *title);
|
||||
|
||||
|
||||
@@ -407,8 +407,6 @@ PlaceWindow(WWindow *wwin, int *x_ret, int *y_ret,
|
||||
else
|
||||
extra_height = 24; /* random value */
|
||||
|
||||
//w = ((usableArea.x2-usableArea.x1) - width);
|
||||
//h = ((usableArea.y2-usableArea.y1) - height - extra_height);
|
||||
w = ((usableArea.x2-X_ORIGIN(scr)) - width);
|
||||
h = ((usableArea.y2-Y_ORIGIN(scr)) - height - extra_height);
|
||||
if (w<1) w = 1;
|
||||
|
||||
@@ -975,7 +975,7 @@ wManageWindow(WScreen *scr, Window window)
|
||||
#endif
|
||||
#ifdef KWM_HINTS
|
||||
wKWMUpdateClientWorkspace(wwin);
|
||||
wKWMUpdateClientState(wwin, KWMAllFlags);
|
||||
wKWMUpdateClientStateHint(wwin, KWMAllFlags);
|
||||
#endif
|
||||
|
||||
XUngrabServer(dpy);
|
||||
|
||||
Reference in New Issue
Block a user