mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-06 13:54:12 +01:00
- Fixed userdefaults in WINGs not to synchronize on exit a domain that is
marked not to be synchronized. - WMGLOBAL options can now be set in the WindowMaker configuration files to overwrite values in WMGLOBAL. - You can now pass "SystemFont", "BoldSystemFont", "SystemFont-##" or "BoldSystemFont-##", with ## being the font size to any font creating function to create a font with the (bold) system font font specification. - Replaced AA with Anitialiased in WINGs font creation function names - Added WMCreateFontWithFlags(), WMHasAntialiasingSupport() and WMIsAntialiasingEnabled() - Created a separate font cacahe for antialiased fonts - Added test at startup if Xft supports rendering antialiased fonts (in case the application was compiled with Xft support, but is run on an X server without support for xft rendering (RENDER extension missing). If no Xft support antialiasing will be disabled even if it is enabled in the configuration file. - Finished the Info Panel to work with antialiased fonts. - Code cleanup in dialog.c. Remade part of Info Panel drawing the Window Maker logo. - Fixed technical style drawing of window resizing.
This commit is contained in:
@@ -481,12 +481,12 @@ void
|
||||
W_MoveView(W_View *view, int x, int y)
|
||||
{
|
||||
assert(view->flags.root==0);
|
||||
//TODO move this after the test pos==oldpos
|
||||
|
||||
if (view->delegate && view->delegate->willMove) {
|
||||
(*view->delegate->willMove)(view->delegate, view, &x, &y);
|
||||
}
|
||||
|
||||
if (view->pos.x == x && view->pos.y == y)
|
||||
if (view->pos.x == x && view->pos.y == y)
|
||||
return;
|
||||
|
||||
if (view->flags.realized) {
|
||||
@@ -504,8 +504,8 @@ W_MoveView(W_View *view, int x, int y)
|
||||
void
|
||||
W_ResizeView(W_View *view, unsigned int width, unsigned int height)
|
||||
{
|
||||
int shrinked;
|
||||
// TODO move this after the test size==oldsize
|
||||
/*int shrinked;*/
|
||||
|
||||
if (view->delegate && view->delegate->willResize) {
|
||||
(*view->delegate->willResize)(view->delegate, view, &width, &height);
|
||||
}
|
||||
@@ -515,9 +515,9 @@ W_ResizeView(W_View *view, unsigned int width, unsigned int height)
|
||||
|
||||
if (view->size.width == width && view->size.height == height)
|
||||
return;
|
||||
|
||||
shrinked = width < view->size.width || height < view->size.height;
|
||||
|
||||
|
||||
/*shrinked = width < view->size.width || height < view->size.height;*/
|
||||
|
||||
if (view->flags.realized) {
|
||||
XResizeWindow(view->screen->display, view->window, width, height);
|
||||
}
|
||||
@@ -528,6 +528,7 @@ W_ResizeView(W_View *view, unsigned int width, unsigned int height)
|
||||
(*view->delegate->didResize)(view->delegate, view);
|
||||
}
|
||||
|
||||
/* // TODO. replace in WINGs code, with the didResize delegate */
|
||||
if (view->flags.notifySizeChanged)
|
||||
WMPostNotificationName(WMViewSizeDidChangeNotification, view, NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user