1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-04-20 07:13:32 +02:00

- Fixed crashing bug in menu.c

- Updated year from 2002 to 2003
This commit is contained in:
dan
2003-01-16 23:30:45 +00:00
parent f3487c1ea2
commit 4153e2fde4
156 changed files with 250 additions and 226 deletions
+2
View File
@@ -40,6 +40,8 @@ Changes since version 0.80.1:
most once for each font in a fontset (eliminates a possible security exploit)
- Added fontpanel callback
- Fixed focus handling for windows that set WM_HINTS.take_focus = False.
- Fixed a problem in the stacking code which could lead to segmentation faults
(Jeff Teunissen <deek@d2dc.net>)
Changes since version 0.80.0:
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* WINGs connect.c: example how to create a network client using WMConnection
*
* Copyright (c) 1999-2002 Dan Pascu
* Copyright (c) 1999-2003 Dan Pascu
*
*/
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* WINGs demo: font lister
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* WINGs server.c: example how to create a network server using WMConnection
*
* Copyright (c) 2001-2002 Dan Pascu
* Copyright (c) 2001-2003 Dan Pascu
*
*/
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* WINGs WMConnection function library
*
* Copyright (c) 1999-2002 Dan Pascu
* Copyright (c) 1999-2003 Dan Pascu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* WINGs WMData function library
*
* Copyright (c) 1999-2002 Dan Pascu
* Copyright (c) 1999-2003 Dan Pascu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker miscelaneous function library
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker miscelaneous function library
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* WINGs WMHost function library
*
* Copyright (c) 1999-2002 Dan Pascu
* Copyright (c) 1999-2003 Dan Pascu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker miscelaneous function library
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 1999-2002 Alfredo K. Kojima
* Copyright (c) 1999-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 1999-2002 Alfredo K. Kojima
* Copyright (c) 1999-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 2000-2002 Alfredo K. Kojima
* Copyright (c) 2000-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -3,7 +3,7 @@
*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* WPrefs - WindowMaker Preferences Program
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
* Copyright (c) 1998 James Thompson
*
* This program is free software; you can redistribute it and/or modify
+1 -1
View File
@@ -2,7 +2,7 @@
*
* WPrefs - WindowMaker Preferences Program
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 2000-2002 Alfredo K. Kojima
* Copyright (c) 2000-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 2000-2002 Alfredo K. Kojima
* Copyright (c) 2000-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 2000-2002 Alfredo K. Kojima
* Copyright (c) 2000-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+2 -7
View File
@@ -2,8 +2,8 @@
*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1998-2002 Dan Pascu
* Copyright (c) 1997-2003 Alfredo K. Kojima
* Copyright (c) 1998-2003 Dan Pascu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -462,19 +462,14 @@ wMaximizeWindow(WWindow *wwin, int directions)
#endif
if (directions & MAX_HORIZONTAL) {
new_width = (usableArea.x2-usableArea.x1)-FRAME_BORDER_WIDTH*2;
new_x = usableArea.x1;
} else {
new_x = wwin->frame_x;
new_width = wwin->frame->core->width;
}
if (directions & MAX_VERTICAL) {
new_height = (usableArea.y2-usableArea.y1)-FRAME_BORDER_WIDTH*2;
new_y = usableArea.y1;
if (WFLAGP(wwin, full_maximize)) {
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+2 -2
View File
@@ -2,8 +2,8 @@
*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1998-2002 Dan Pascu
* Copyright (c) 1997-2003 Alfredo K. Kojima
* Copyright (c) 1998-2003 Dan Pascu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+2 -2
View File
@@ -1,8 +1,8 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1998-2002 Dan Pascu
* Copyright (c) 1997-2003 Alfredo K. Kojima
* Copyright (c) 1998-2003 Dan Pascu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* Window Maker window manager
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This code slightly based on fvwm code,
* Copyright (c) Rob Nation and others
+1 -1
View File
@@ -2,7 +2,7 @@
*
* Window Maker window manager
*
* Copyright (c) 2000-2002 Alfredo K. Kojima
* Copyright (c) 2000-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+2 -2
View File
@@ -2,8 +2,8 @@
*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1998-2002 Dan Pascu
* Copyright (c) 1997-2003 Alfredo K. Kojima
* Copyright (c) 1998-2003 Dan Pascu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+4 -4
View File
@@ -2,8 +2,8 @@
*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1998-2002 Dan Pascu
* Copyright (c) 1997-2003 Alfredo K. Kojima
* Copyright (c) 1998-2003 Dan Pascu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -859,8 +859,8 @@ typedef struct {
#define COPYRIGHT_TEXT \
"Copyright \xa9 1997-2002 Alfredo K. Kojima <kojima@windowmaker.org>\n"\
"Copyright \xa9 1998-2002 Dan Pascu <dan@windowmaker.org>"
"Copyright \xa9 1997-2003 Alfredo K. Kojima <kojima@windowmaker.org>\n"\
"Copyright \xa9 1998-2003 Dan Pascu <dan@windowmaker.org>"
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+2 -2
View File
@@ -2,8 +2,8 @@
*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1998-2002 Dan Pascu
* Copyright (c) 1997-2003 Alfredo K. Kojima
* Copyright (c) 1998-2003 Dan Pascu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+2 -2
View File
@@ -2,8 +2,8 @@
*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1998-2002 Dan Pascu
* Copyright (c) 1997-2003 Alfredo K. Kojima
* Copyright (c) 1998-2003 Dan Pascu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* Window Maker window manager
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* Window Maker window manager
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* Window Maker window manager
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* Window Maker window manager
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* Window Maker window manager
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+30 -9
View File
@@ -2,8 +2,8 @@
*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1998-2002 Dan Pascu
* Copyright (c) 1997-2003 Alfredo K. Kojima
* Copyright (c) 1998-2003 Dan Pascu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1949,23 +1949,31 @@ menuMouseDown(WObjDescriptor *desc, XEvent *event)
int old_frame_y = 0;
delay_data d_data = {NULL, NULL, NULL};
/* Doesn't seem to be needed anymore (if delayed selection handler is
* added only if not present). there seem to be no other side effects
* from removing this and it is also possible that it was only added
* to avoid problems with adding the delayed selection timer handler
* multiple times
*/
/*if (menu->flags.inside_handler) {
return;
}*/
menu->flags.inside_handler = 1;
if (!wPreferences.wrap_menus) {
smenu = parentMenu(menu);
old_frame_x = smenu->frame_x;
old_frame_y = smenu->frame_y;
} else if (event->xbutton.window == menu->frame->core->window) {
/* This is true if the menu was launched with right click on root window */
if (!d_data.magic) {
delayed_select = 1;
d_data.delayed_select = &delayed_select;
d_data.menu = menu;
d_data.magic = WMAddTimerHandler(wPreferences.dblclick_time,
delaySelection, &d_data);
}
if (menu->flags.inside_handler) {
return;
}
menu->flags.inside_handler = 1;
wRaiseFrame(menu->frame->core);
@@ -2102,8 +2110,8 @@ menuMouseDown(WObjDescriptor *desc, XEvent *event)
if (menu != smenu) {
if (d_data.magic) {
WMDeleteTimerHandler(d_data.magic);
}
d_data.magic = NULL;
}
} else if (moved_to_submenu) {
/* while we are moving, postpone the selection */
if (d_data.magic) {
@@ -2118,12 +2126,13 @@ menuMouseDown(WObjDescriptor *desc, XEvent *event)
prevy = ev.xmotion.y_root;
break;
} else {
if (d_data.magic)
if (d_data.magic) {
WMDeleteTimerHandler(d_data.magic);
d_data.magic = NULL;
}
}
}
}
prevx = ev.xmotion.x_root;
prevy = ev.xmotion.y_root;
if (menu!=smenu) {
@@ -2180,8 +2189,10 @@ menuMouseDown(WObjDescriptor *desc, XEvent *event)
WMDeleteTimerHandler(menu->timer);
menu->timer = NULL;
}
if (d_data.magic!=NULL)
if (d_data.magic!=NULL) {
WMDeleteTimerHandler(d_data.magic);
d_data.magic = NULL;
}
if (menu && menu->selected_entry>=0) {
entry = menu->entries[menu->selected_entry];
@@ -2236,6 +2247,16 @@ menuMouseDown(WObjDescriptor *desc, XEvent *event)
wMenuMove(parentMenu(desc->parent), old_frame_x, old_frame_y, True);
byebye:
/* Just to be sure in case we skip the 2 above because of a goto byebye */
if (menu && menu->timer) {
WMDeleteTimerHandler(menu->timer);
menu->timer = NULL;
}
if (d_data.magic!=NULL) {
WMDeleteTimerHandler(d_data.magic);
d_data.magic = NULL;
}
((WMenu*)desc->parent)->flags.inside_handler = 0;
#ifdef VIRTUAL_DESKTOP
if (wPreferences.vedge_thickness) {
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* Window Maker window manager
*
* Copyright (c) 2000-2002 Alfredo K. Kojima
* Copyright (c) 2000-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* Window Maker window manager
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* Window Maker window manager
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -3,7 +3,7 @@
*
* Window Maker window manager
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -3,7 +3,7 @@
*
* Window Maker window manager
*
* Copyright (c) 1998-2002 Alfredo K. Kojima
* Copyright (c) 1998-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+2 -2
View File
@@ -2,8 +2,8 @@
*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1998-2002 Dan Pascu
* Copyright (c) 1997-2003 Alfredo K. Kojima
* Copyright (c) 1998-2003 Dan Pascu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* Window Maker window manager
*
* Copyright (c) 2000-2002 Alfredo K. Kojima
* Copyright (c) 2000-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+2 -2
View File
@@ -1,7 +1,7 @@
/* session.c - session state handling and R6 style session management
*
* Copyright (c) 1998-2002 Dan Pascu
* Copyright (c) 1998-2002 Alfredo Kojima
* Copyright (c) 1998-2003 Dan Pascu
* Copyright (c) 1998-2003 Alfredo Kojima
*
* Window Maker window manager
*
+1 -1
View File
@@ -1,6 +1,6 @@
/* session.h
*
* Copyright (c) 1999-2002 Alfredo K. Kojima
* Copyright (c) 1999-2003 Alfredo K. Kojima
*
* Window Maker window manager
*
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+9 -3
View File
@@ -1,8 +1,8 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1998-2002 Dan Pascu
* Copyright (c) 1997-2003 Alfredo K. Kojima
* Copyright (c) 1998-2003 Dan Pascu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -211,7 +211,9 @@ wRaiseFrame(WCoreWindow *frame)
frame->stacking->above = NULL;
frame->stacking->under = WMGetFromBag(scr->stacking_list, level);
if (frame->stacking->under) {
frame->stacking->under->stacking->above = frame;
}
WMSetInBag(scr->stacking_list, level, frame);
/* raise transients under us from bottom to top
@@ -325,7 +327,7 @@ wLowerFrame(WCoreWindow *frame)
wlist = WMGetFromBag(scr->stacking_list, level);
/* look for place to put this window */
{
if (wlist) {
WCoreWindow *owner = frame->stacking->child_of;
if (owner != wlist) {
@@ -340,10 +342,14 @@ wLowerFrame(WCoreWindow *frame)
}
/* insert under the place found */
frame->stacking->above = wlist;
if (wlist) {
frame->stacking->under = wlist->stacking->under;
if (wlist->stacking->under)
wlist->stacking->under->stacking->above = frame;
wlist->stacking->under = frame;
} else {
frame->stacking->under = NULL;
}
if (frame->stacking->above == NULL) {
WMBagIterator iter;
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+2 -2
View File
@@ -1,8 +1,8 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1998-2002 Dan Pascu
* Copyright (c) 1997-2003 Alfredo K. Kojima
* Copyright (c) 1998-2003 Dan Pascu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+2 -2
View File
@@ -1,8 +1,8 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1998-2002 Dan Pascu
* Copyright (c) 1997-2003 Alfredo K. Kojima
* Copyright (c) 1998-2003 Dan Pascu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -2,7 +2,7 @@
* Window Maker window manager
*
* Copyright (c) 1997 Shige Abe
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2002 Alfredo K. Kojima
* Copyright (c) 1997-2003 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

Some files were not shown because too many files have changed in this diff Show More