1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00
Commit Graph

2925 Commits

Author SHA1 Message Date
Iain Patterson
0601e0f002 Style consistency.
Approved style is not to write a single-operation for loop in a single line.
2012-04-11 23:55:47 +01:00
Rodolfo García Peñas (kix)
391a8edb9c Turn wApplication{Activate,Deactivate} into real functions
The functions wApplicationActivate and wApplicationDeactivate are now defined
as functions, not as preprocessor functions.
2012-04-05 12:26:25 +01:00
Rodolfo García Peñas (kix)
517cd6a8be Remove unused functions
These functions are not used:

- wDefaultsDestroyDomain
- PropWriteGNUstepWMAttr
- wSessionSendSaveYourSelf
- wXDNDClearAwareness
- clearWaitingAckState
- wSessionSaveClients
2012-04-04 19:44:40 +01:00
Iain Patterson
ba786015b7 Describe relaunching in the NEWS file. 2012-04-04 14:07:42 +01:00
Iain Patterson
aaf934eb2f Compiler food.
main.c: In function ‘RelaunchWindow’:
main.c:461:1: warning: control reaches end of non-void function
[-Wreturn-type]

Actually we can't reach the end of the function because the three
possible cases are Exit(-1), return False and return True.  Of course if
Exit() were ever changed the above statement might become incorrect.
Some compiler food silences the warning.
2012-04-04 13:02:58 +01:00
Iain Patterson
056a290a7d Also relaunch from appicon with Ctrl + DblClick.
Zoltan Balaton points out that Control + Doubleclick on docked app will
launch a new instance.  For consistency with that behaviour we now allow
Control + Doubleclick on an undocked appicon to invoke the new
relaunching functionality.

We also now restrict doubleclick handling to the left mouse button in
order to avoid relaunching the application twice when the middle button
is used.
2012-04-04 12:15:20 +01:00
Iain Patterson
51c9f2a852 Also allow relaunching from appicon.
Allow relaunching an application with a middle mouse click to its
appicon or the Launch option of its appicon menu.
2012-04-04 12:15:09 +01:00
Iain Patterson
3d01e5c879 Also allow relaunching from the window menu.
Allow relaunching an application from its window menu.
2012-04-04 12:14:46 +01:00
Iain Patterson
8352c9ef60 Allow relaunch with shortcut key.
Use the WindowRelaunchKey shortcut to examine the WM_COMMAND property of
the active application's main window and launch a new instance of the
application using the retrieved command line.
2012-04-04 12:12:12 +01:00
Rodolfo García Peñas (kix)
528d97b597 canReceiveFocus() should check no_focusable first
The function canReceiveFocus should check if the window is no_focusable first.

If the window is not focusable but is miniaturized, the window is shown in the
switchpanel.

How to reproduce the problem:

- Open an application
- Open the window properties, advanced options
- Set that the application can not get the focus and save
- Test the switchpanel (Alt+Tab) the window doesn't appear
- Minimize the window
- Test the switchpanel (Alt+Tab), the window appears
- If the window is selected (restored), and test again the switchpanel, the window doesn't appear!
2012-04-04 11:49:23 +01:00
Christoph Soehngen
42a78ee73f wmgenmenu: Add more apps to our nice menu 2012-04-02 17:52:14 +01:00
Rodolfo García Peñas (kix)
aab9028fc2 Coding-style cleanup
Code style cleanup in multiple files. Tabs, spaces, curly brackets,...
2012-03-30 19:50:10 +01:00
Rodolfo García Peñas (kix)
1a0e665e58 WindowMaker: icon.c comments added
Some comments added to icon.c file.
2012-03-16 09:04:03 +00:00
Rodolfo García Peñas (kix)
1bec2efba0 WindowMaker: icon.c goto removed
The goto "make_icons" in icon.c was removed.
2012-03-16 09:03:11 +00:00
Rodolfo García Peñas (kix)
72f359be44 WindowMaker: New function get_pixmap_icon_from_user_icon
The new function get_pixmap_icon_from_user_icon() splits the
function wIconUpdate().
2012-03-16 08:59:45 +00:00
Rodolfo García Peñas (kix)
cf9f0ec67e WindowMaker: New function get_pixmap_icon_from_wm_hints
The new function get_pixmap_icon_from_wm_hints() splits the
function wIconUpdate().
2012-03-16 08:57:35 +00:00
Rodolfo García Peñas (kix)
3adc058421 WindowMaker: New function get_pixmap_icon_from_icon_win
The new function get_pixmap_icon_from_icon_win() splits the
function wIconUpdate().
2012-03-16 08:55:50 +00:00
Takeo Hashimoto
ebe9a27e8d Japanese translation updated 2012-03-11 02:41:53 +01:00
Rodolfo García Peñas (kix)
6cbdebb84b WindowMaker: New get_wwindow_image_from_x11 function
A new function is created to get the image from the X11 window.

The function updateIconImage is splitted in two blocks, one is moved
to get_wwindow_image_from_x11 with the X11 code, and other is used
to update the Application and Window icons (kept in the same function).
2012-03-08 23:31:32 +01:00
Rodolfo García Peñas (kix)
9079b904d6 Little simplification in makeIcon() 2012-03-08 23:19:05 +01:00
Rodolfo García Peñas (kix)
f550333474 Coding style cleanup in wmspec.c
This commit cleans the source a bit and adds some comments.
2012-03-08 23:18:55 +01:00
Rodolfo García Peñas (kix)
fe3cbb0dc4 Fix technical drawing+opaque resize
Doug Barton reported that using "Technical drawing-like" for "Size display"
under WPrefs "Miscellaneous Ergonomic Preferences" together with opaque
resize would lead to artifacts left on screen when resizing.

This patch fixes it (and it also fixes some minor coding style issues
in the surroundings).
2012-03-05 16:34:34 +01:00
Rodolfo García Peñas (kix)
a3c99bddc8 debian: Small updates in menus etc
The file "clean", which contains "WindowMaker/Defaults/WMRootMenu"
can be removed, because this file was included to be cleaned in
the commit 01907f9983

The Application/* items are moved to the root menu, removing the
"Applications" submenu. The files from /etc/X11/WindowMaker moved
to /etc/GNUstep/Defaults
2012-03-04 16:33:35 +00:00
Rodolfo García Peñas (kix)
4f4ea569a0 Coding style cleanups 2012-03-04 09:08:52 +00:00
Alexey I. Froloff
e819818eeb Options for limiting window/menu title height
(Window|Menu)Title(Min|Max)Height defaults options allow to set
minimum and maximum titlebar height.

For example, to force all titlebars to 24 pixels execute
following commands:

$ wdwrite WindowMaker WindowTitleMinHeight 24
$ wdwrite WindowMaker WindowTitleMaxHeight 24
$ wdwrite WindowMaker MenuTitleMinHeight 24
$ wdwrite WindowMaker MenuTitleMaxHeight 24

Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
2012-02-27 14:19:49 +00:00
Carlos R. Mafra
99aad55425 wmgenmenu: Fix name for FSViewer 2012-02-27 02:11:14 +00:00
Carlos R. Mafra
d3cb286428 Add wmlib folder back
It was removed on 67a8a82670 with the assumption that
nothing was using it. But that was not really the case - FSViewer
used it.

I've just tested it. After a trivial fix regarding the change in
the function definition of WMWritePropListToFile(), FSViewer
compiles and even seems to work (didn't test much though).

So let's not be unfair with FSViewer and put wmlib back. FSViewer
might even be used for educational purposes for people wanting to
write apps using WINGs etc.
2012-02-26 19:43:37 +00:00
Rodolfo García Peñas (kix)
882edc04d2 WindowMaker: Spanish translation updated 2012-02-24 19:32:43 +00:00
Carlos R. Mafra
a68b130a9d Remove commented out code
This code has been born in commented-out state more than 13 years
ago (commit 416e3a82). Remove it.
2012-02-24 19:32:43 +00:00
Rodolfo García Peñas (kix)
f4479dae30 debian: Remove /etc/X11/WindowMaker folder
The path /etc/X11/WindowMaker is not needed now. The files were
deleted or moved to /usr/share/WindowMaker. Some files were the
same in /etc/X11/WindowMaker and /usr/share/WindowMaker.

The configuration file menu.hook is moved to /etc/GNUstep/Defaults

Duplicated:
 - wmmacros
 - appearence.menu (copied & generated).
 - background.menu

Removed:
 - menu.prehook
 - menu.posthook

Moved:
 - menu.hook (generated).
2012-02-24 19:32:43 +00:00
Giuseppe Gatta
a97699c513 Enable toggling of AppIcons bouncing
I have noticed that in WindowMaker 0.95.2 application icons bounce
when some actions are done, like starting a program, etc.

Disabling Superfluous or Animations also disabled the minimizing
animation which I am used to, so doing that didn't do the job.
Everyone has got his or her own tastes, but I did not like the new
behavior and didn't find any way to disable it without affecting other
things.

So I made a patch to fix just that. It adds a new option in WPrefs.app's
Expert Tab called "Do not make AppIcons bounce" which when enabled,
disables any type of bouncing for Application Icons, restoring the
old behavior.

Bouncing stays the new default behavior.
2012-02-23 11:58:57 +00:00
Leandro Vital
e46f2b3e79 wmgenmenu: Add Portuguese translation 2012-02-22 08:11:12 +00:00
Carlos R. Mafra
9e8e4625ab Small update on wmgenmenu list of apps 2012-02-19 14:08:18 +00:00
Carlos R. Mafra
799134f59b Remove wShowGNUstepPanel() etc
The only place where this function is called is from a double click
in the first icon of the dock, and only if there's no program already
associated with it.

This is a bit superfluous and most people have defined the first
icon to call WPrefs instead and end up never seeing that panel.
And since the last commit ("Change behaviour of the GNUstep dockapp"),
this is now also the default behaviour of Window Maker.

Furthermore, the panel itself is not accurate. Window Maker is not part
of the GNUstep project.
2012-02-19 10:05:31 +00:00
Kamil Rytarowski
2075881f2d Change behaviour of the GNUstep dockapp
Make it launch WPrefs instead of displaying GNUstep information.

GNUstep information under a dockbutton is unneeded and it's commonly replaced
by WPrefs. This also is giving one extra space for another dockapp.
2012-02-19 10:04:56 +00:00
Rodolfo García Peñas (kix)
f2585dc1f7 utils: Include the SHEXEC in the wm-oldmenu2new script
The script wm-oldmenu2new can now convert the SHEXEC lines.

Requested-by: Doug Barton <dougb@FreeBSD.org>
2012-02-18 15:56:16 +00:00
Carlos R. Mafra
a568686b39 WINGs: Do not call exit()
WMCreateFont() was calling exit() if it could not create the
font, and was trying too hard not to return NULL.

Just return NULL if the font could not be created instead of exit()ing
and let callers decide what to do upon failure.

Thanks to Christian <chris@computersalat.de> for reporting this.
2012-02-18 00:10:48 +00:00
Rodolfo García Peñas (kix)
0173fe896d debian: Added the debian revision to changelog
Debian revision was forgotten in the last debian commit.
2012-02-17 10:52:17 +00:00
Kamil Rytarowski
7d11577a82 Stop using old /usr/X11R6 directory
...it's replaced in xorg-x11 by standard /usr

Switch from /usr/X11R6 to /usr in all files except debian and FAQ.
2012-02-17 10:50:12 +00:00
Kamil Rytarowski
4f07f5e1dd Cleanup German plmenu entries
Replace hardcoded "/home/mawa" with an universal $(HOME).
2012-02-17 10:50:12 +00:00
Kamil Rytarowski
a4e247d052 'Make install' now installs all man pages:
These ones were not being installed during 'make install':

* get-wings-flags.1
* get-wraster-flags.1
* get-wutil-flags.1
* upgrade-windowmaker-defaults.8
* wdread.1
* WindowMaker.1x
* wmagnify.1x
* wmgenmenu.1
* wmmenugen.1
* WPrefs.1x
2012-02-17 01:09:25 +00:00
Iain Patterson
07a0639c93 Don't shrink icons in switchpanel.
Icons in the switchpanel are constrained to the value of the IconSize
preference but the grid in which they are arranged is fixed at 64 pixels.
If IconSize is less than 64x64 the panel will show smaller icons with a
wide spacing, which looks pretty stupid.

Fix it by forcing the switchpanel to attempt to load images at the size
it's going to use.  The icon it actually gets may of course still be
smaller.
2012-02-16 09:13:01 +00:00
Rodolfo García Peñas (kix)
854ae58305 debian: New debian version 0.95.2
New debian version 0.95.2 changelog file.

This version closes these debian bugs: #69669, #486542, #270877, #283240,
 #48550, #297019, #108432, #72917.
2012-02-14 23:29:57 +00:00
Carlos R. Mafra
87ce0de15f Window Maker 0.95.2 wmaker-0.95.2 2012-02-14 19:25:07 +00:00
Carlos R. Mafra
51a54ba2e2 dock: Make some functions static 2012-02-12 21:35:09 +00:00
Carlos R. Mafra
119507d541 wmgenmenu: Update mrxvt options
The old mrxvt I had in my previous distro is gone. The options
need to be updated.

Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
2012-02-12 20:08:33 +00:00
Rodolfo García Peñas (kix)
b08b182147 menu: remove OpenWorkspaceMenu()
The function OpenWorkspaceMenu() is not used, remove it.

Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
2012-02-12 20:06:40 +00:00
Rodolfo García Peñas (kix)
6368bde7e5 WindowMaker: Add Balloon to the clip
Display a standard Window Maker balloon with the workspace name when the
mouse enters the clip area.

This complements commit 4954d4df23 ("clip: Do not display balloon with
workspace name") because now the balloon which appears on the clip is the
same as in other parts of wmaker.

Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
2012-02-12 20:06:20 +00:00
Carlos R. Mafra
4954d4df23 clip: Do not display balloon with workspace name
When the mouse passes over the clip, wmaker would display a "odd" balloon
text with the workspace name, but the balloon itself was covered by the
clip icon!

So if the workspace name was short enough ("Internet" is, by my testing here)
the user wouldn't see anything, the balloon is completely under the clip icon.

I found this issue because one of my workspaces is called "Beyonder" and I
noticed a small "r" under the clip one day.

Instead of trying to fix this, I just removed the whole thing about displaying
the balloon because it is superfluous and I haven't seen any bug reports about
this yet, so it probably means most people are not even aware of it.

Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
2012-02-12 20:04:13 +00:00
Carlos R. Mafra
558fc5f0d3 dock: Trivial code style cleanups
Just random things I noticed while reading the code...

Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
2012-02-12 20:04:13 +00:00