1 diff -rc WindowMaker-0.52.0.ori/WPrefs.app/Appearance.c WindowMaker-0.52.0/WPrefs.app/Appearance.c
2 *** WindowMaker-0.52.0.ori/WPrefs.app/Appearance.c Mon Mar 22 12:16:49 1999
3 --- WindowMaker-0.52.0/WPrefs.app/Appearance.c Wed Apr 21 08:24:11 1999
7 setupTextureFor(panel->texLs, "FTitleBack", "(solid, black)",
9 ! panel->textureIndex[i] = i++;
11 setupTextureFor(panel->texLs, "UTitleBack", "(solid, gray)",
13 ! panel->textureIndex[i] = i++;
15 setupTextureFor(panel->texLs, "PTitleBack", "(solid, \"#616161\")",
16 "[Owner of Focused]", i);
17 ! panel->textureIndex[i] = i++;
19 setupTextureFor(panel->texLs, "MenuTitleBack", "(solid, black)",
21 ! panel->textureIndex[i] = i++;
23 setupTextureFor(panel->texLs, "MenuTextBack", "(solid, gray)",
25 ! panel->textureIndex[i] = i++;
27 setupTextureFor(panel->texLs, "IconBack", "(solid, gray)", "[Icon]", i);
28 ! panel->textureIndex[i] = i++;
30 setupTextureFor(panel->texLs, "WorkspaceBack", "(solid, black)",
32 ! panel->textureIndex[i] = i++;
35 updatePreviewBox(panel, EVERYTHING);
38 setupTextureFor(panel->texLs, "FTitleBack", "(solid, black)",
40 ! panel->textureIndex[i++] = i;
42 setupTextureFor(panel->texLs, "UTitleBack", "(solid, gray)",
44 ! panel->textureIndex[i++] = i;
46 setupTextureFor(panel->texLs, "PTitleBack", "(solid, \"#616161\")",
47 "[Owner of Focused]", i);
48 ! panel->textureIndex[i++] = i;
50 setupTextureFor(panel->texLs, "MenuTitleBack", "(solid, black)",
52 ! panel->textureIndex[i++] = i;
54 setupTextureFor(panel->texLs, "MenuTextBack", "(solid, gray)",
56 ! panel->textureIndex[i++] = i;
58 setupTextureFor(panel->texLs, "IconBack", "(solid, gray)", "[Icon]", i);
59 ! panel->textureIndex[i++] = i;
61 setupTextureFor(panel->texLs, "WorkspaceBack", "(solid, black)",
63 ! panel->textureIndex[i++] = i;
66 updatePreviewBox(panel, EVERYTHING);
67 diff -rc WindowMaker-0.52.0.ori/WPrefs.app/Expert.c WindowMaker-0.52.0/WPrefs.app/Expert.c
68 *** WindowMaker-0.52.0.ori/WPrefs.app/Expert.c Thu Mar 18 17:39:22 1999
69 --- WindowMaker-0.52.0/WPrefs.app/Expert.c Thu Apr 15 09:02:54 1999
90 WMSetButtonSelected(panel->swi[2], GetBoolForKey("SaveSessionOnExit"));
91 WMSetButtonSelected(panel->swi[3], GetBoolForKey("UseSaveUnders"));
92 WMSetButtonSelected(panel->swi[4], GetBoolForKey("DisableBlinking"));
93 + WMSetButtonSelected(panel->swi[5], GetBoolForKey("SingleClickLaunch"));
99 WMResizeWidget(panel->frame, FRAME_WIDTH, FRAME_HEIGHT);
100 WMMoveWidget(panel->frame, FRAME_LEFT, FRAME_TOP);
102 ! for (i=0; i<5; i++) {
103 panel->swi[i] = WMCreateSwitchButton(panel->frame);
104 WMResizeWidget(panel->swi[i], FRAME_WIDTH-40, 25);
105 WMMoveWidget(panel->swi[i], 20, 20+i*25);
107 WMResizeWidget(panel->frame, FRAME_WIDTH, FRAME_HEIGHT);
108 WMMoveWidget(panel->frame, FRAME_LEFT, FRAME_TOP);
110 ! for (i=0; i<6; i++) {
111 panel->swi[i] = WMCreateSwitchButton(panel->frame);
112 WMResizeWidget(panel->swi[i], FRAME_WIDTH-40, 25);
113 WMMoveWidget(panel->swi[i], 20, 20+i*25);
117 WMSetButtonText(panel->swi[2], _("Automatically save session when exiting WindowMaker"));
118 WMSetButtonText(panel->swi[3], _("Use SaveUnder in window frames, icons, menus and other objects"));
119 WMSetButtonText(panel->swi[4], _("Disable cycling color highlighting of icons."));
120 + WMSetButtonText(panel->swi[5], _("Launch applications and restore windows with a single click"));
122 WMRealizeWidget(panel->frame);
123 WMMapSubwidgets(panel->frame);
127 SetBoolForKey(WMGetButtonSelected(panel->swi[2]), "SaveSessionOnExit");
128 SetBoolForKey(WMGetButtonSelected(panel->swi[3]), "UseSaveUnders");
129 SetBoolForKey(WMGetButtonSelected(panel->swi[4]), "DisableBlinking");
130 + SetBoolForKey(WMGetButtonSelected(panel->swi[5]), "SingleClickLaunch");
134 diff -rc WindowMaker-0.52.0.ori/src/WindowMaker.h WindowMaker-0.52.0/src/WindowMaker.h
135 *** WindowMaker-0.52.0.ori/src/WindowMaker.h Mon Mar 22 12:16:50 1999
136 --- WindowMaker-0.52.0/src/WindowMaker.h Wed Apr 14 10:35:40 1999
140 /* shading animation */
143 + /* single click to lauch applications */
149 diff -rc WindowMaker-0.52.0.ori/src/appicon.c WindowMaker-0.52.0/src/appicon.c
150 *** WindowMaker-0.52.0.ori/src/appicon.c Thu Apr 1 12:33:57 1999
151 --- WindowMaker-0.52.0/src/appicon.c Wed Apr 14 10:38:03 1999
155 int shad_x = 0, shad_y = 0, docking=0, dockable, collapsed = 0;
157 int clickButton = event->xbutton.button;
161 if (aicon->editing || WCHECK_STATE(WSTATE_MODAL))
165 dockable = canBeDocked(icon->owner);
170 WMMaskEvent(dpy, PointerMotionMask|ButtonReleaseMask|ButtonPressMask
171 |ButtonMotionMask|ExposureMask, &ev);
180 if (abs(dx-ev.xmotion.x)>=MOVE_THRESHOLD
181 || abs(dy-ev.xmotion.y)>=MOVE_THRESHOLD) {
185 XSetWindowBackground(dpy, scr->dock_shadow, scr->white_pixel);
188 + if (!hasMoved && wPreferences.single_click) {
189 + iconDblClick(desc, event);
194 diff -rc WindowMaker-0.52.0.ori/src/defaults.c WindowMaker-0.52.0/src/defaults.c
195 *** WindowMaker-0.52.0.ori/src/defaults.c Mon Mar 22 12:16:51 1999
196 --- WindowMaker-0.52.0/src/defaults.c Wed Apr 14 10:54:24 1999
200 {"DisableBlinking", "NO", NULL,
201 &wPreferences.dont_blink, getBool, NULL
203 + {"SingleClickLaunch", "NO", NULL,
204 + &wPreferences.single_click, getBool, NULL
206 #ifdef WEENDOZE_CYCLE
207 {"WindozeCycling","NO", NULL,
208 &wPreferences.windoze_cycling, getBool, NULL
209 diff -rc WindowMaker-0.52.0.ori/src/dock.c WindowMaker-0.52.0/src/dock.c
210 *** WindowMaker-0.52.0.ori/src/dock.c Mon Mar 22 12:16:51 1999
211 --- WindowMaker-0.52.0/src/dock.c Wed Apr 14 10:37:30 1999
218 handleIconMove(WDock *dock, WAppIcon *aicon, XEvent *event)
220 WScreen *scr = dock->screen_ptr;
226 handleIconMove(WDock *dock, WAppIcon *aicon, XEvent *event)
228 WScreen *scr = dock->screen_ptr;
231 int ix = aicon->xindex, iy = aicon->yindex;
235 int superfluous = wPreferences.superfluous; /* we catch it to avoid problems */
237 if (wPreferences.flags.noupdates)
241 int ix = aicon->xindex, iy = aicon->yindex;
244 ! Bool docked, hasMoved;
245 int superfluous = wPreferences.superfluous; /* we catch it to avoid problems */
248 if (wPreferences.flags.noupdates)
259 if (abs(ofs_x-ev.xmotion.x)>=MOVE_THRESHOLD
260 || abs(ofs_y-ev.xmotion.y)>=MOVE_THRESHOLD) {
264 puts("End icon move");
272 puts("End icon move");
283 XUnmapWindow(dpy, scr->clip_balloon);
284 scr->flags.clip_balloon_mapped = 0;
288 puts("handling dock");
291 XUnmapWindow(dpy, scr->clip_balloon);
292 scr->flags.clip_balloon_mapped = 0;
296 puts("handling dock");
301 handleDockMove(dock, aicon, event);
303 ! handleIconMove(dock, aicon, event);
305 } else if (event->xbutton.button==Button2 && dock->type==WM_CLIP &&
306 aicon->xindex==0 && aicon->yindex==0) {
309 handleDockMove(dock, aicon, event);
311 ! if (handleIconMove(dock, aicon, event) != 0 &&
312 ! wPreferences.single_click)
313 ! iconDblClick(desc, event);
315 } else if (event->xbutton.button==Button2 && dock->type==WM_CLIP &&
316 aicon->xindex==0 && aicon->yindex==0) {
317 diff -rc WindowMaker-0.52.0.ori/src/icon.c WindowMaker-0.52.0/src/icon.c
318 *** WindowMaker-0.52.0.ori/src/icon.c Thu Mar 18 17:39:39 1999
319 --- WindowMaker-0.52.0/src/icon.c Wed Apr 14 10:37:02 1999
323 int dx=event->xbutton.x, dy=event->xbutton.y;
325 int clickButton=event->xbutton.button;
328 if (WCHECK_STATE(WSTATE_MODAL))
333 wwarning("pointer grab failed for icon move");
338 WMMaskEvent(dpy, PointerMotionMask|ButtonReleaseMask|ButtonPressMask
339 |ButtonMotionMask|ExposureMask, &ev);
348 if (abs(dx-ev.xmotion.x)>=MOVE_THRESHOLD
349 || abs(dy-ev.xmotion.y)>=MOVE_THRESHOLD) {
354 if (wPreferences.auto_arrange_icons)
355 wArrangeIcons(wwin->screen_ptr, True);
356 + if (!hasMoved && wPreferences.single_click) {
357 + miniwindowDblClick(desc, event);