mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-07 14:24:14 +01:00
added contrib/ directory, updated WPrefs and wmsetbg for smoothed
backgrounds, added GNUstep info panel, added patch for saving menu position state
This commit is contained in:
4
contrib/Makefile.am
Normal file
4
contrib/Makefile.am
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
|
||||
EXTRA_DIST = README single_click.diff
|
||||
|
||||
199
contrib/Makefile.in
Normal file
199
contrib/Makefile.in
Normal file
@@ -0,0 +1,199 @@
|
||||
# Makefile.in generated automatically by automake 1.4 from Makefile.am
|
||||
|
||||
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
|
||||
bindir = @bindir@
|
||||
sbindir = @sbindir@
|
||||
libexecdir = @libexecdir@
|
||||
datadir = @datadir@
|
||||
sysconfdir = @sysconfdir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
localstatedir = @localstatedir@
|
||||
libdir = @libdir@
|
||||
infodir = @infodir@
|
||||
mandir = @mandir@
|
||||
includedir = @includedir@
|
||||
oldincludedir = /usr/include
|
||||
|
||||
DESTDIR =
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
|
||||
top_builddir = ..
|
||||
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
transform = @program_transform_name@
|
||||
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
host_alias = @host_alias@
|
||||
host_triplet = @host@
|
||||
CC = @CC@
|
||||
CPP_PATH = @CPP_PATH@
|
||||
DFLAGS = @DFLAGS@
|
||||
DLLIBS = @DLLIBS@
|
||||
GFXLIBS = @GFXLIBS@
|
||||
HEADER_SEARCH_PATH = @HEADER_SEARCH_PATH@
|
||||
ICONEXT = @ICONEXT@
|
||||
INTLIBS = @INTLIBS@
|
||||
LD = @LD@
|
||||
LIBPL = @LIBPL@
|
||||
LIBRARY_SEARCH_PATH = @LIBRARY_SEARCH_PATH@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LITE = @LITE@
|
||||
LN_S = @LN_S@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MOFILES = @MOFILES@
|
||||
NLSDIR = @NLSDIR@
|
||||
NM = @NM@
|
||||
PACKAGE = @PACKAGE@
|
||||
RANLIB = @RANLIB@
|
||||
VERSION = @VERSION@
|
||||
WPMOFILES = @WPMOFILES@
|
||||
XCFLAGS = @XCFLAGS@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
XLFLAGS = @XLFLAGS@
|
||||
XLIBS = @XLIBS@
|
||||
X_EXTRA_LIBS = @X_EXTRA_LIBS@
|
||||
wprefsdir = @wprefsdir@
|
||||
|
||||
EXTRA_DIST = README single_click.diff
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = ../src/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
DIST_COMMON = README Makefile.am Makefile.in
|
||||
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
TAR = tar
|
||||
GZIP_ENV = --best
|
||||
all: all-redirect
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||
cd $(top_srcdir) && $(AUTOMAKE) --gnu contrib/Makefile
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||
cd $(top_builddir) \
|
||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||
|
||||
tags: TAGS
|
||||
TAGS:
|
||||
|
||||
|
||||
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||
|
||||
subdir = contrib
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
here=`cd $(top_builddir) && pwd`; \
|
||||
top_distdir=`cd $(top_distdir) && pwd`; \
|
||||
distdir=`cd $(distdir) && pwd`; \
|
||||
cd $(top_srcdir) \
|
||||
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu contrib/Makefile
|
||||
@for file in $(DISTFILES); do \
|
||||
d=$(srcdir); \
|
||||
if test -d $$d/$$file; then \
|
||||
cp -pr $$/$$file $(distdir)/$$file; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||
fi; \
|
||||
done
|
||||
info-am:
|
||||
info: info-am
|
||||
dvi-am:
|
||||
dvi: dvi-am
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
installcheck-am:
|
||||
installcheck: installcheck-am
|
||||
install-exec-am:
|
||||
install-exec: install-exec-am
|
||||
|
||||
install-data-am:
|
||||
install-data: install-data-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
install: install-am
|
||||
uninstall-am:
|
||||
uninstall: uninstall-am
|
||||
all-am: Makefile
|
||||
all-redirect: all-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||
installdirs:
|
||||
|
||||
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||
|
||||
maintainer-clean-generic:
|
||||
mostlyclean-am: mostlyclean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
clean-am: clean-generic mostlyclean-am
|
||||
|
||||
clean: clean-am
|
||||
|
||||
distclean-am: distclean-generic clean-am
|
||||
-rm -f libtool
|
||||
|
||||
distclean: distclean-am
|
||||
|
||||
maintainer-clean-am: maintainer-clean-generic distclean-am
|
||||
@echo "This command is intended for maintainers to use;"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
|
||||
.PHONY: tags distdir info-am info dvi-am dvi check check-am \
|
||||
installcheck-am installcheck install-exec-am install-exec \
|
||||
install-data-am install-data install-am install uninstall-am uninstall \
|
||||
all-redirect all-am all installdirs mostlyclean-generic \
|
||||
distclean-generic clean-generic maintainer-clean-generic clean \
|
||||
mostlyclean distclean maintainer-clean
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
4
contrib/README
Normal file
4
contrib/README
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
This directory contains some patches contributed by ppl. Do NOT mail the
|
||||
wmaker developers for any problems with them.
|
||||
|
||||
361
contrib/single_click.diff
Normal file
361
contrib/single_click.diff
Normal file
@@ -0,0 +1,361 @@
|
||||
diff -rc WindowMaker-0.52.0.ori/WPrefs.app/Appearance.c WindowMaker-0.52.0/WPrefs.app/Appearance.c
|
||||
*** WindowMaker-0.52.0.ori/WPrefs.app/Appearance.c Mon Mar 22 12:16:49 1999
|
||||
--- WindowMaker-0.52.0/WPrefs.app/Appearance.c Wed Apr 21 08:24:11 1999
|
||||
***************
|
||||
*** 1286,1315 ****
|
||||
|
||||
setupTextureFor(panel->texLs, "FTitleBack", "(solid, black)",
|
||||
"[Focused]", i);
|
||||
! panel->textureIndex[i] = i++;
|
||||
|
||||
setupTextureFor(panel->texLs, "UTitleBack", "(solid, gray)",
|
||||
"[Unfocused]", i);
|
||||
! panel->textureIndex[i] = i++;
|
||||
|
||||
setupTextureFor(panel->texLs, "PTitleBack", "(solid, \"#616161\")",
|
||||
"[Owner of Focused]", i);
|
||||
! panel->textureIndex[i] = i++;
|
||||
|
||||
setupTextureFor(panel->texLs, "MenuTitleBack", "(solid, black)",
|
||||
"[Menu Title]", i);
|
||||
! panel->textureIndex[i] = i++;
|
||||
|
||||
setupTextureFor(panel->texLs, "MenuTextBack", "(solid, gray)",
|
||||
"[Menu Item]", i);
|
||||
! panel->textureIndex[i] = i++;
|
||||
|
||||
setupTextureFor(panel->texLs, "IconBack", "(solid, gray)", "[Icon]", i);
|
||||
! panel->textureIndex[i] = i++;
|
||||
/*
|
||||
setupTextureFor(panel->texLs, "WorkspaceBack", "(solid, black)",
|
||||
"[Workspace]", i);
|
||||
! panel->textureIndex[i] = i++;
|
||||
*/
|
||||
|
||||
updatePreviewBox(panel, EVERYTHING);
|
||||
--- 1286,1315 ----
|
||||
|
||||
setupTextureFor(panel->texLs, "FTitleBack", "(solid, black)",
|
||||
"[Focused]", i);
|
||||
! panel->textureIndex[i++] = i;
|
||||
|
||||
setupTextureFor(panel->texLs, "UTitleBack", "(solid, gray)",
|
||||
"[Unfocused]", i);
|
||||
! panel->textureIndex[i++] = i;
|
||||
|
||||
setupTextureFor(panel->texLs, "PTitleBack", "(solid, \"#616161\")",
|
||||
"[Owner of Focused]", i);
|
||||
! panel->textureIndex[i++] = i;
|
||||
|
||||
setupTextureFor(panel->texLs, "MenuTitleBack", "(solid, black)",
|
||||
"[Menu Title]", i);
|
||||
! panel->textureIndex[i++] = i;
|
||||
|
||||
setupTextureFor(panel->texLs, "MenuTextBack", "(solid, gray)",
|
||||
"[Menu Item]", i);
|
||||
! panel->textureIndex[i++] = i;
|
||||
|
||||
setupTextureFor(panel->texLs, "IconBack", "(solid, gray)", "[Icon]", i);
|
||||
! panel->textureIndex[i++] = i;
|
||||
/*
|
||||
setupTextureFor(panel->texLs, "WorkspaceBack", "(solid, black)",
|
||||
"[Workspace]", i);
|
||||
! panel->textureIndex[i++] = i;
|
||||
*/
|
||||
|
||||
updatePreviewBox(panel, EVERYTHING);
|
||||
diff -rc WindowMaker-0.52.0.ori/WPrefs.app/Expert.c WindowMaker-0.52.0/WPrefs.app/Expert.c
|
||||
*** WindowMaker-0.52.0.ori/WPrefs.app/Expert.c Thu Mar 18 17:39:22 1999
|
||||
--- WindowMaker-0.52.0/WPrefs.app/Expert.c Thu Apr 15 09:02:54 1999
|
||||
***************
|
||||
*** 31,37 ****
|
||||
|
||||
WMWindow *win;
|
||||
|
||||
! WMButton *swi[5];
|
||||
|
||||
} _Panel;
|
||||
|
||||
--- 31,37 ----
|
||||
|
||||
WMWindow *win;
|
||||
|
||||
! WMButton *swi[6];
|
||||
|
||||
} _Panel;
|
||||
|
||||
***************
|
||||
*** 50,55 ****
|
||||
--- 50,56 ----
|
||||
WMSetButtonSelected(panel->swi[2], GetBoolForKey("SaveSessionOnExit"));
|
||||
WMSetButtonSelected(panel->swi[3], GetBoolForKey("UseSaveUnders"));
|
||||
WMSetButtonSelected(panel->swi[4], GetBoolForKey("DisableBlinking"));
|
||||
+ WMSetButtonSelected(panel->swi[5], GetBoolForKey("SingleClickLaunch"));
|
||||
}
|
||||
|
||||
|
||||
***************
|
||||
*** 63,69 ****
|
||||
WMResizeWidget(panel->frame, FRAME_WIDTH, FRAME_HEIGHT);
|
||||
WMMoveWidget(panel->frame, FRAME_LEFT, FRAME_TOP);
|
||||
|
||||
! for (i=0; i<5; i++) {
|
||||
panel->swi[i] = WMCreateSwitchButton(panel->frame);
|
||||
WMResizeWidget(panel->swi[i], FRAME_WIDTH-40, 25);
|
||||
WMMoveWidget(panel->swi[i], 20, 20+i*25);
|
||||
--- 64,70 ----
|
||||
WMResizeWidget(panel->frame, FRAME_WIDTH, FRAME_HEIGHT);
|
||||
WMMoveWidget(panel->frame, FRAME_LEFT, FRAME_TOP);
|
||||
|
||||
! for (i=0; i<6; i++) {
|
||||
panel->swi[i] = WMCreateSwitchButton(panel->frame);
|
||||
WMResizeWidget(panel->swi[i], FRAME_WIDTH-40, 25);
|
||||
WMMoveWidget(panel->swi[i], 20, 20+i*25);
|
||||
***************
|
||||
*** 74,79 ****
|
||||
--- 75,81 ----
|
||||
WMSetButtonText(panel->swi[2], _("Automatically save session when exiting WindowMaker"));
|
||||
WMSetButtonText(panel->swi[3], _("Use SaveUnder in window frames, icons, menus and other objects"));
|
||||
WMSetButtonText(panel->swi[4], _("Disable cycling color highlighting of icons."));
|
||||
+ WMSetButtonText(panel->swi[5], _("Launch applications and restore windows with a single click"));
|
||||
|
||||
WMRealizeWidget(panel->frame);
|
||||
WMMapSubwidgets(panel->frame);
|
||||
***************
|
||||
*** 94,99 ****
|
||||
--- 96,102 ----
|
||||
SetBoolForKey(WMGetButtonSelected(panel->swi[2]), "SaveSessionOnExit");
|
||||
SetBoolForKey(WMGetButtonSelected(panel->swi[3]), "UseSaveUnders");
|
||||
SetBoolForKey(WMGetButtonSelected(panel->swi[4]), "DisableBlinking");
|
||||
+ SetBoolForKey(WMGetButtonSelected(panel->swi[5]), "SingleClickLaunch");
|
||||
}
|
||||
|
||||
|
||||
diff -rc WindowMaker-0.52.0.ori/src/WindowMaker.h WindowMaker-0.52.0/src/WindowMaker.h
|
||||
*** WindowMaker-0.52.0.ori/src/WindowMaker.h Mon Mar 22 12:16:50 1999
|
||||
--- WindowMaker-0.52.0/src/WindowMaker.h Wed Apr 14 10:35:40 1999
|
||||
***************
|
||||
*** 348,353 ****
|
||||
--- 348,356 ----
|
||||
/* shading animation */
|
||||
char shade_speed;
|
||||
|
||||
+ /* single click to lauch applications */
|
||||
+ char single_click;
|
||||
+
|
||||
int edge_resistance;
|
||||
|
||||
struct {
|
||||
diff -rc WindowMaker-0.52.0.ori/src/appicon.c WindowMaker-0.52.0/src/appicon.c
|
||||
*** WindowMaker-0.52.0.ori/src/appicon.c Thu Apr 1 12:33:57 1999
|
||||
--- WindowMaker-0.52.0/src/appicon.c Wed Apr 14 10:38:03 1999
|
||||
***************
|
||||
*** 710,715 ****
|
||||
--- 710,716 ----
|
||||
int shad_x = 0, shad_y = 0, docking=0, dockable, collapsed = 0;
|
||||
int ix, iy;
|
||||
int clickButton = event->xbutton.button;
|
||||
+ Bool hasMoved;
|
||||
Pixmap ghost = None;
|
||||
|
||||
if (aicon->editing || WCHECK_STATE(WSTATE_MODAL))
|
||||
***************
|
||||
*** 758,763 ****
|
||||
--- 759,765 ----
|
||||
dockable = canBeDocked(icon->owner);
|
||||
|
||||
|
||||
+ hasMoved = False;
|
||||
while (!done) {
|
||||
WMMaskEvent(dpy, PointerMotionMask|ButtonReleaseMask|ButtonPressMask
|
||||
|ButtonMotionMask|ExposureMask, &ev);
|
||||
***************
|
||||
*** 767,772 ****
|
||||
--- 769,775 ----
|
||||
break;
|
||||
|
||||
case MotionNotify:
|
||||
+ hasMoved = True;
|
||||
if (!grabbed) {
|
||||
if (abs(dx-ev.xmotion.x)>=MOVE_THRESHOLD
|
||||
|| abs(dy-ev.xmotion.y)>=MOVE_THRESHOLD) {
|
||||
***************
|
||||
*** 917,922 ****
|
||||
--- 920,928 ----
|
||||
XSetWindowBackground(dpy, scr->dock_shadow, scr->white_pixel);
|
||||
}
|
||||
done = 1;
|
||||
+ if (!hasMoved && wPreferences.single_click) {
|
||||
+ iconDblClick(desc, event);
|
||||
+ }
|
||||
break;
|
||||
}
|
||||
}
|
||||
diff -rc WindowMaker-0.52.0.ori/src/defaults.c WindowMaker-0.52.0/src/defaults.c
|
||||
*** WindowMaker-0.52.0.ori/src/defaults.c Mon Mar 22 12:16:51 1999
|
||||
--- WindowMaker-0.52.0/src/defaults.c Wed Apr 14 10:54:24 1999
|
||||
***************
|
||||
*** 445,450 ****
|
||||
--- 445,453 ----
|
||||
{"DisableBlinking", "NO", NULL,
|
||||
&wPreferences.dont_blink, getBool, NULL
|
||||
},
|
||||
+ {"SingleClickLaunch", "NO", NULL,
|
||||
+ &wPreferences.single_click, getBool, NULL
|
||||
+ },
|
||||
#ifdef WEENDOZE_CYCLE
|
||||
{"WindozeCycling","NO", NULL,
|
||||
&wPreferences.windoze_cycling, getBool, NULL
|
||||
diff -rc WindowMaker-0.52.0.ori/src/dock.c WindowMaker-0.52.0/src/dock.c
|
||||
*** WindowMaker-0.52.0.ori/src/dock.c Mon Mar 22 12:16:51 1999
|
||||
--- WindowMaker-0.52.0/src/dock.c Wed Apr 14 10:37:30 1999
|
||||
***************
|
||||
*** 3484,3490 ****
|
||||
|
||||
|
||||
|
||||
! static void
|
||||
handleIconMove(WDock *dock, WAppIcon *aicon, XEvent *event)
|
||||
{
|
||||
WScreen *scr = dock->screen_ptr;
|
||||
--- 3484,3490 ----
|
||||
|
||||
|
||||
|
||||
! static int
|
||||
handleIconMove(WDock *dock, WAppIcon *aicon, XEvent *event)
|
||||
{
|
||||
WScreen *scr = dock->screen_ptr;
|
||||
***************
|
||||
*** 3499,3507 ****
|
||||
int ix = aicon->xindex, iy = aicon->yindex;
|
||||
int tmp;
|
||||
Pixmap ghost = None;
|
||||
! Bool docked;
|
||||
int superfluous = wPreferences.superfluous; /* we catch it to avoid problems */
|
||||
|
||||
if (wPreferences.flags.noupdates)
|
||||
return;
|
||||
|
||||
--- 3499,3508 ----
|
||||
int ix = aicon->xindex, iy = aicon->yindex;
|
||||
int tmp;
|
||||
Pixmap ghost = None;
|
||||
! Bool docked, hasMoved;
|
||||
int superfluous = wPreferences.superfluous; /* we catch it to avoid problems */
|
||||
|
||||
+ hasMoved = False;
|
||||
if (wPreferences.flags.noupdates)
|
||||
return;
|
||||
|
||||
***************
|
||||
*** 3551,3556 ****
|
||||
--- 3552,3558 ----
|
||||
break;
|
||||
|
||||
case MotionNotify:
|
||||
+ hasMoved = True;
|
||||
if (!grabbed) {
|
||||
if (abs(ofs_x-ev.xmotion.x)>=MOVE_THRESHOLD
|
||||
|| abs(ofs_y-ev.xmotion.y)>=MOVE_THRESHOLD) {
|
||||
***************
|
||||
*** 3690,3696 ****
|
||||
#ifdef DEBUG
|
||||
puts("End icon move");
|
||||
#endif
|
||||
! return;
|
||||
}
|
||||
}
|
||||
}
|
||||
--- 3692,3701 ----
|
||||
#ifdef DEBUG
|
||||
puts("End icon move");
|
||||
#endif
|
||||
! if (!hasMoved) {
|
||||
! return 1;
|
||||
! }
|
||||
! return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
***************
|
||||
*** 3807,3813 ****
|
||||
XUnmapWindow(dpy, scr->clip_balloon);
|
||||
scr->flags.clip_balloon_mapped = 0;
|
||||
}
|
||||
!
|
||||
#ifdef DEBUG
|
||||
puts("handling dock");
|
||||
#endif
|
||||
--- 3812,3818 ----
|
||||
XUnmapWindow(dpy, scr->clip_balloon);
|
||||
scr->flags.clip_balloon_mapped = 0;
|
||||
}
|
||||
!
|
||||
#ifdef DEBUG
|
||||
puts("handling dock");
|
||||
#endif
|
||||
***************
|
||||
*** 3830,3836 ****
|
||||
else
|
||||
handleDockMove(dock, aicon, event);
|
||||
} else
|
||||
! handleIconMove(dock, aicon, event);
|
||||
|
||||
} else if (event->xbutton.button==Button2 && dock->type==WM_CLIP &&
|
||||
aicon->xindex==0 && aicon->yindex==0) {
|
||||
--- 3835,3843 ----
|
||||
else
|
||||
handleDockMove(dock, aicon, event);
|
||||
} else
|
||||
! if (handleIconMove(dock, aicon, event) != 0 &&
|
||||
! wPreferences.single_click)
|
||||
! iconDblClick(desc, event);
|
||||
|
||||
} else if (event->xbutton.button==Button2 && dock->type==WM_CLIP &&
|
||||
aicon->xindex==0 && aicon->yindex==0) {
|
||||
diff -rc WindowMaker-0.52.0.ori/src/icon.c WindowMaker-0.52.0/src/icon.c
|
||||
*** WindowMaker-0.52.0.ori/src/icon.c Thu Mar 18 17:39:39 1999
|
||||
--- WindowMaker-0.52.0/src/icon.c Wed Apr 14 10:37:02 1999
|
||||
***************
|
||||
*** 809,814 ****
|
||||
--- 809,815 ----
|
||||
int dx=event->xbutton.x, dy=event->xbutton.y;
|
||||
int grabbed=0;
|
||||
int clickButton=event->xbutton.button;
|
||||
+ Bool hasMoved;
|
||||
|
||||
if (WCHECK_STATE(WSTATE_MODAL))
|
||||
return;
|
||||
***************
|
||||
*** 851,856 ****
|
||||
--- 852,858 ----
|
||||
wwarning("pointer grab failed for icon move");
|
||||
#endif
|
||||
}
|
||||
+ hasMoved = False;
|
||||
while(1) {
|
||||
WMMaskEvent(dpy, PointerMotionMask|ButtonReleaseMask|ButtonPressMask
|
||||
|ButtonMotionMask|ExposureMask, &ev);
|
||||
***************
|
||||
*** 860,865 ****
|
||||
--- 862,868 ----
|
||||
break;
|
||||
|
||||
case MotionNotify:
|
||||
+ hasMoved = True;
|
||||
if (!grabbed) {
|
||||
if (abs(dx-ev.xmotion.x)>=MOVE_THRESHOLD
|
||||
|| abs(dy-ev.xmotion.y)>=MOVE_THRESHOLD) {
|
||||
***************
|
||||
*** 897,902 ****
|
||||
--- 900,908 ----
|
||||
|
||||
if (wPreferences.auto_arrange_icons)
|
||||
wArrangeIcons(wwin->screen_ptr, True);
|
||||
+ if (!hasMoved && wPreferences.single_click) {
|
||||
+ miniwindowDblClick(desc, event);
|
||||
+ }
|
||||
return;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user