MCDE dtsystemsettings: Appearance, the four groups and the fonts (t0099)
The pane is the reference's form now: Appearance (a menu of the palettes with
the chosen palette's eight colours as a strip under it, then "In use:"),
Highlight Color (the eight colours of the active palette, written as
*highlightColor and *selectColor for programs started later), the scroll
bars, the number of recent items, font smoothing -- and the fonts, which
lose their own pane (the "fonts" id still opens Appearance, the entry is
gone from the overview).
What the pane writes is what the session reads:
*<screen>*ColorPalette, *highlightColor, *selectColor _DtAddToResource
Dtwm*mcdeTitleBarDoubleClick: none|minimize then dtwm restarts
~/.dt/recent.conf: applications=N, documents=N, servers=N
~/.config/fontconfig/conf.d/60-mcde-antialias.conf antialias=false
dtwm gained the title-bar double click: a new resource (WmResNames.h,
WmGlobal.h, WmResource.c, default "none") and, in CheckButtonPressBuiltin
(WmCEvent.c), the double-click branch on the title -- F_Minimize or
F_Maximize instead of the move. dtbar's Recent Items and Connect to
Server's history now read their counts from ~/.dt/recent.conf
(ItemsPush/FillRecent, ReadLines/RecentAdd).
Two things the task itself said to drop are dropped, with the reason in the
pane: Motif has no separate arrow buttons at both ends of a scroll bar and no
smooth scrolling (an animation), and a click in a Motif scroll bar pages
while the middle button jumps to the place.
Font smoothing is a fontconfig rule, not *Xft.antialias: measured here, Xft
ignores that X resource (205 grey levels with and without it), while a
<match target="font"> antialias=false rule gives 2. The rule reaches GTK and
Qt as well (one look).
Measured under Xvfb with xdotool:
- "Off" + Apply -> the file is written and an Xft render test in the same
session drops from 205 distinct grey levels to 2; with the size limit 20
the same test (size 12) gives 2, with 4 it gives 205 -- the rule holds
only up to the size.
- the title-bar box + Apply writes Dtwm*mcdeTitleBarDoubleClick: minimize,
dtwm restarts, and a double click on dtpad's title bar leaves its window
"Map State: IsUnMapped" (IsViewable before).
- a palette choice writes *0*ColorPalette: Camouflage.dp (and dtthemesync's
colours), the strip and the Highlight menu follow it.
- Documents=5 with eight entries in ~/.dt/recent shows five in the bar's
Recent Items; Servers=0 leaves the Connect to Server field at "sftp://",
Servers=10 prefills the stored address.
Pictures: docs/screenshots/leopard/System-Preferences-Appearance-mcde.png
(the four groups) and ...-Appearance-fonts-mcde.png (scrolled to the fonts).
make check: test_panes PASS.
Open: a highlight colour reaches programs started later, not the running
ones; "Applications" has no recent list to feed; the dtwm value takes effect
when the window manager restarts (the Apply button does it); the antialias
rule is read at program start; and the fonts list is six rows inside the
scrolled pane.
This commit is contained in:
1 parent
4fb6b871b8
commit
dc8dfd2cc7
10 files changed
+751
-53
No files matched your search
@@ -34,6 +34,8 @@
|
||||
* Included Files:
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "WmGlobal.h"
|
||||
#include "WmICCC.h"
|
||||
|
||||
@@ -1242,11 +1244,30 @@ void CheckButtonPressBuiltin (XButtonEvent *buttonEvent, Context context, Contex
|
||||
/*
|
||||
* Title component:
|
||||
* SELECT_BUTTON or DMANIP_BUTTON Press -
|
||||
* start looking for a move.
|
||||
* start looking for a move; a double click does
|
||||
* what Dtwm*mcdeTitleBarDoubleClick asks (MCDE).
|
||||
*/
|
||||
|
||||
PushGadgetIn (pCD, partContext);
|
||||
|
||||
if (wmGD.clickData.doubleClickContext == F_SUBCONTEXT_W_TITLE &&
|
||||
wmGD.mcdeTitleBarDoubleClick != NULL &&
|
||||
strcmp (wmGD.mcdeTitleBarDoubleClick, "none") != 0)
|
||||
{
|
||||
Boolean maximize = strcmp (wmGD.mcdeTitleBarDoubleClick,
|
||||
"maximize") == 0;
|
||||
|
||||
wmGD.clickData.clickPending = False;
|
||||
wmGD.clickData.doubleClickPending = False;
|
||||
if (maximize)
|
||||
(void) F_Maximize ((String) NULL, pCD,
|
||||
(XEvent *) buttonEvent);
|
||||
else
|
||||
(void) F_Minimize ((String) NULL, pCD,
|
||||
(XEvent *) buttonEvent);
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Fix for 5075 - Check to make sure that MWM_FUNC_MOVE is set in the
|
||||
* clientFunctions. This is necessary because the title
|
||||
|
||||
@@ -2051,6 +2051,7 @@ typedef struct _WmGlobalData
|
||||
int colormapFocusPolicy; /* resource */
|
||||
String configFile; /* resource */
|
||||
String cppCommand; /* resource */
|
||||
String mcdeTitleBarDoubleClick; /* resource: none|minimize|maximize */
|
||||
Boolean deiconifyKeyFocus; /* resource */
|
||||
int doubleClickTime; /* resource */
|
||||
Boolean enableWarp; /* resource */
|
||||
|
||||
@@ -64,6 +64,8 @@
|
||||
#define WmNcolormapFocusPolicy "colormapFocusPolicy"
|
||||
#define WmNconfigFile "configFile"
|
||||
#define WmNcppCommand "cppCommand"
|
||||
/* MCDE: what a double click on a window's title bar does (WmEvent.c) */
|
||||
#define WmNmcdeTitleBarDoubleClick "mcdeTitleBarDoubleClick"
|
||||
#define WmNdeiconifyKeyFocus "deiconifyKeyFocus"
|
||||
#define WmNdoubleClickTime "doubleClickTime"
|
||||
#define WmNenableWarp "enableWarp"
|
||||
@@ -227,6 +229,7 @@
|
||||
#define WmCColormapFocusPolicy "ColormapFocusPolicy"
|
||||
#define WmCConfigFile "ConfigFile"
|
||||
#define WmCCppCommand "CppCommand"
|
||||
#define WmCMcdeTitleBarDoubleClick "McdeTitleBarDoubleClick"
|
||||
#define WmCDeiconifyKeyFocus "DeiconifyKeyFocus"
|
||||
#define WmCDoubleClickTime "DoubleClickTime"
|
||||
#define WmCEnableWarp "EnableWarp"
|
||||
|
||||
@@ -718,6 +718,16 @@ XtResource wmGlobalResources[] =
|
||||
(XtPointer)True
|
||||
},
|
||||
|
||||
{
|
||||
WmNmcdeTitleBarDoubleClick,
|
||||
WmCMcdeTitleBarDoubleClick,
|
||||
XtRString,
|
||||
sizeof (String),
|
||||
XtOffsetOf(WmGlobalData, mcdeTitleBarDoubleClick),
|
||||
XtRImmediate,
|
||||
(XtPointer) "none"
|
||||
},
|
||||
|
||||
{
|
||||
WmNdoubleClickTime,
|
||||
WmCDoubleClickTime,
|
||||
|
||||
Reference in new issue
Block a user