Tue Oct 5 22:34:52 PDT 1999

(Mandrake)

added an option to never display tooltips if you're over the "root window" or
desktop.  very annoying if you use sloppyfocus extensively.

access it by using the rightmouse menu -> tooltip settings
uncheck the 2nd item.


SVN revision: 680
This commit is contained in:
Mandrake 1999-10-06 02:23:25 +00:00
parent 8640e4365e
commit 1e9bc87417
7 changed files with 70 additions and 25 deletions

View File

@ -3102,3 +3102,14 @@ Tue Oct 5 23:59:22 EST 1999
Give help on the command line more easily. iirc --help
is recommended by the GNU coding standards.
-------------------------------------------------------------------------------
Tue Oct 5 22:34:52 PDT 1999
(Mandrake)
added an option to never display tooltips if you're over the "root window" or
desktop. very annoying if you use sloppyfocus extensively.
access it by using the rightmouse menu -> tooltip settings
uncheck the 2nd item.

View File

@ -1208,6 +1208,7 @@ typedef struct _emode
char clickalways;
char keybinds_changed;
char firsttime;
char showroottooltip;
}
EMode;

View File

@ -127,6 +127,7 @@
#define CONTROL_GROUP_MIRROR 1365
#define CONTROL_KDESUPPORT 1366
#define CONTROL_CLICK_ALWAYS 1367
#define CONTROL_SHOWROOTTOOLTIP 1368
#define ICLASS_NAME 350
#define ICLASS_NORMAL 351

View File

@ -690,6 +690,9 @@ Config_Control(FILE * ConfigFile)
case CONTROL_KDESUPPORT:
mode.kde_support = i2;
break;
case CONTROL_SHOWROOTTOOLTIP:
mode.showroottooltip = i2;
break;
case CONTROL_CLICK_ALWAYS:
mode.clickalways = i2;
break;
@ -3669,6 +3672,7 @@ SaveUserControlConfig(FILE * autosavefile)
fprintf(autosavefile, "1365 %i\n", (int)mode.group_config.mirror);
fprintf(autosavefile, "1366 %i\n", (int)mode.kde_support);
fprintf(autosavefile, "1367 %i\n", (int)mode.clickalways);
fprintf(autosavefile, "1368 %i\n", (int)mode.showroottooltip);
fprintf(autosavefile, "1000\n");
fprintf(autosavefile, "1001 0\n");
if (mode.keybinds_changed)

View File

@ -58,7 +58,7 @@ static Time last_time = 0;
static int last_button = 0;
static int pgd_x = 0, pgd_y = 0;
static void
static void
ToolTipTimeout(int val, void *data)
{
int x, y, dum;
@ -88,15 +88,32 @@ ToolTipTimeout(int val, void *data)
LIST_TYPE_TOOLTIP);
if (ac->tooltipstring)
ShowToolTip(ttip, ac->tooltipstring, ac, x, y);
{
if (mode.showroottooltip)
{
ShowToolTip(ttip, ac->tooltipstring, ac, x, y);
}
else
{
int i;
int show = 1;
for (i = 0; i < mode.numdesktops; i++)
{
if (win == desks.desk[i].win)
show = 0;
}
if (show)
ShowToolTip(ttip, ac->tooltipstring, ac, x, y);
}
}
data = NULL;
val = 0;
EDBUG_RETURN_;
}
void
void
HandleClientMessage(XEvent * ev)
{
EWin *ewin;
@ -215,7 +232,7 @@ HandleClientMessage(XEvent * ev)
}
void
void
HandleFocusWindowIn(Window win)
{
EWin *ewin;
@ -257,7 +274,7 @@ HandleFocusWindowIn(Window win)
EDBUG_RETURN_;
}
void
void
HandleFocusWindow(Window win)
{
EWin *found_ewin;
@ -291,7 +308,7 @@ HandleFocusWindow(Window win)
EDBUG_RETURN_;
}
void
void
HandleChildShapeChange(XEvent * ev)
{
Window win;
@ -311,7 +328,7 @@ HandleChildShapeChange(XEvent * ev)
EDBUG_RETURN_;
}
void
void
HandleMotion(XEvent * ev)
{
int dx, dy;
@ -942,7 +959,7 @@ HandleMotion(XEvent * ev)
EDBUG_RETURN_;
}
void
void
HandleDestroy(XEvent * ev)
{
Window win;
@ -1022,7 +1039,7 @@ HandleDestroy(XEvent * ev)
EDBUG_RETURN_;
}
void
void
HandleProperty(XEvent * ev)
{
Window win;
@ -1108,7 +1125,7 @@ HandleProperty(XEvent * ev)
EDBUG_RETURN_;
}
void
void
HandleCirculate(XEvent * ev)
{
Window win;
@ -1134,7 +1151,7 @@ HandleCirculate(XEvent * ev)
EDBUG_RETURN_;
}
void
void
HandleReparent(XEvent * ev)
{
Window par;
@ -1191,7 +1208,7 @@ HandleReparent(XEvent * ev)
EDBUG_RETURN_;
}
void
void
HandleConfigureRequest(XEvent * ev)
{
Window win, winrel;
@ -1288,7 +1305,7 @@ HandleConfigureRequest(XEvent * ev)
EDBUG_RETURN_;
}
void
void
HandleResizeRequest(XEvent * ev)
{
Window win;
@ -1321,7 +1338,7 @@ HandleResizeRequest(XEvent * ev)
EDBUG_RETURN_;
}
void
void
HandleUnmap(XEvent * ev)
{
Window win;
@ -1401,7 +1418,7 @@ HandleUnmap(XEvent * ev)
EDBUG_RETURN_;
}
void
void
HandleMapRequest(XEvent * ev)
{
Window win;
@ -1431,7 +1448,7 @@ HandleMapRequest(XEvent * ev)
EDBUG_RETURN_;
}
void
void
HandleExpose(XEvent * ev)
{
Window win;
@ -1523,7 +1540,7 @@ HandleExpose(XEvent * ev)
static int pwin_px, pwin_py;
static int *gwin_px, *gwin_py;
void
void
HandleMouseDown(XEvent * ev)
{
Window win;
@ -1855,7 +1872,7 @@ HandleMouseDown(XEvent * ev)
EDBUG_RETURN_;
}
void
void
HandleMouseUp(XEvent * ev)
{
Window win, win2;
@ -2002,7 +2019,6 @@ HandleMouseUp(XEvent * ev)
clickmenu = 1;
justclicked = 1;
}
if ((m) && (mi->state))
{
mi->state = STATE_HILITED;
@ -2461,7 +2477,7 @@ HandleMouseUp(XEvent * ev)
EDBUG_RETURN_;
}
static void
static void
SubmenuShowTimeout(int val, void *dat)
{
int mx, my;
@ -2495,7 +2511,7 @@ SubmenuShowTimeout(int val, void *dat)
val = 0;
}
void
void
HandleMouseIn(XEvent * ev)
{
Window win;
@ -2651,7 +2667,7 @@ HandleMouseIn(XEvent * ev)
EDBUG_RETURN_;
}
void
void
HandleMouseOut(XEvent * ev)
{
Window win;

View File

@ -1207,6 +1207,7 @@ SettingsAutoRaise(void)
static char tmp_tooltips;
static int tmp_tooltiptime;
static char tmp_roottip;
static void CB_ConfigureTooltips(int val, void *data);
static void
@ -1216,6 +1217,7 @@ CB_ConfigureTooltips(int val, void *data)
{
mode.tooltips = tmp_tooltips;
mode.tiptime = ((double)tmp_tooltiptime) / 100;
mode.showroottooltip = tmp_roottip;
}
autosave();
data = NULL;
@ -1237,6 +1239,7 @@ SettingsTooltips(void)
tmp_tooltips = mode.tooltips;
tmp_tooltiptime = (int)(mode.tiptime * 100);
tmp_roottip = mode.showroottooltip;
d = CreateDialog("CONFIGURE_TOOLTIPS");
DialogSetTitle(d, "Tooltip Settings");
@ -1265,15 +1268,23 @@ SettingsTooltips(void)
DialogItemSetPadding(di, 2, 2, 2, 2);
DialogItemSetFill(di, 1, 0);
DialogItemSetColSpan(di, 2);
DialogItemCheckButtonSetText(di, "Display tooltips");
DialogItemCheckButtonSetText(di, "Display Tooltips");
DialogItemCheckButtonSetState(di, tmp_tooltips);
DialogItemCheckButtonSetPtr(di, &tmp_tooltips);
di = DialogAddItem(table, DITEM_CHECKBUTTON);
DialogItemSetPadding(di, 2, 2, 2, 2);
DialogItemSetFill(di, 1, 0);
DialogItemSetColSpan(di, 2);
DialogItemCheckButtonSetText(di, "Display Root Window Tips");
DialogItemCheckButtonSetState(di, tmp_roottip);
DialogItemCheckButtonSetPtr(di, &tmp_roottip);
di = DialogAddItem(table, DITEM_TEXT);
DialogItemSetPadding(di, 2, 2, 2, 2);
DialogItemSetFill(di, 0, 0);
DialogItemSetAlign(di, 1024, 512);
DialogItemTextSetText(di, "Tooltip delay:\n");
DialogItemSetAlign(di, 0, 512);
DialogItemTextSetText(di, "Tooltip Delay:\n");
di = DialogAddItem(table, DITEM_SLIDER);
DialogItemSetPadding(di, 2, 2, 2, 2);

View File

@ -490,6 +490,7 @@ SetupX()
mode.py = 0;
mode.x = 0;
mode.y = 0;
mode.showroottooltip = 1;
mode.focusmode = FOCUS_SLOPPY;
mode.focuswin = NULL;
mode.realfocuswin = NULL;