phillbush
15dfafdfb1
Saving users memory.
...
When the item->label and item->output are the same, XMenu now only
strdup() the item->label and make item->output equal to item->label.
This saves memory when the user do not write a output specification
in the input.
2020-05-29 22:52:55 -03:00
phillbush
6b5123e793
Updated manpage, removed unused variables, etc.
...
• Updated manual page (removing mention to the removed -w option).
• Removed unused variables (dc.d).
• Freeing item's label and output.
2020-05-29 22:37:55 -03:00
phillbush
ec4ed1ac1e
Fixing calculation of menu position.
...
The position didn't take into account the menu borders.
Also, freeing allocated menus and items.
2020-05-27 21:43:10 -03:00
phillbush
cdc4d51fee
removed a goto
2020-05-27 15:10:53 -03:00
phillbush
c6d9174ec2
Reordering stuff, removing unused variables
2020-05-27 14:34:55 -03:00
phillbush
257e42cc23
Getting rid of some global variables
...
They are local now.
2020-05-27 13:40:11 -03:00
phillbush
0c1a78642c
Separated getmenuitem into two functions
2020-05-27 00:15:10 -03:00
phillbush
fd530f3f68
Refactored code, changed resources and config.h
2020-05-26 18:43:45 -03:00
phillbush
2744390027
Removed the -w option (it was too buggy)
2020-05-23 22:06:21 -03:00
phillbush
21a9aaecb1
Creating windowed branch for -w
...
I will remove the -w (windowed) option from the master branch, for it
raises more problems than solutions, I will maintain it in the windowed
branch.
2020-05-23 20:41:09 -03:00
phillbush
8455c36913
Menu windows are recalculated with -w
...
Every time a window is opened, its position is recalculated with
recalcmenu().
2020-05-19 13:41:11 -03:00
phillbush
85003546a2
Make xmenu wait for another process to ungrab
...
Xmenu didn't wait for another process to ungrab the poiter or keyboard,
ending up in erroneous behavior. Now it waits.
2020-05-19 09:17:06 -03:00
phillbush
c0cff00dc8
Referring to the new changes in the manpage.
2020-05-19 05:56:06 -03:00
phillbush
d2435fcd5f
Correctly setting WM_CLASS.
2020-05-19 05:51:21 -03:00
phillbush
465d07dbe9
Fixed order of function calls
...
You must grab the keyboard after reading the input.
2020-05-18 23:05:14 -03:00
phillbush
dbeb994054
Added xft support (smooth fonts)
2020-05-18 22:27:56 -03:00
phillbush
858338d978
xmenu now can be operated by keyboard
2020-05-17 17:01:46 -03:00
phillbush
f644b8bc22
xmenu now supports x resources
2020-05-17 01:22:21 -03:00
phillbush
08f165897c
Xmenu now has a man page.
2020-05-17 00:08:23 -03:00
phillbush
873c080ceb
The README file referred to dwm
2020-05-16 18:01:14 -03:00
phillbush
d8a7caf2e3
improved algorithm for mapping/unmapping
...
In previous versions, all the previous current visible menus are
unmapped and the new currently visible menus are mapped when the
current visible menu changed. Now, using an algorithm that finds
the lowest common ancestor between current and current_new menus,
only the necessary menus are remapped on the display.
2020-05-16 14:43:07 -03:00
phillbush
d888f2cae4
improved algorithm that draw menus
2020-05-16 02:14:29 -03:00
phillbush
f158328539
width is now calculated from the font
2020-05-16 01:24:43 -03:00
phillbush
2b6968f911
A better triangle
...
Now the triangle indicating submenus is smaller and better looking.
2020-05-16 00:58:32 -03:00
phillbush
f15fc33987
using pixmaps
...
Using pixmaps rather than drawing directly on windows.
2020-05-16 00:43:59 -03:00
phillbush
09c13122cc
Test
2020-05-15 23:08:05 -03:00
phillbush
7fbd1c5ed0
Added separators
...
Now lines without labels in the input generate a menu separator.
2020-05-15 22:51:26 -03:00
phillbush
a80fee227a
item->y is now relative to menu, not to root
2020-05-15 22:25:05 -03:00
phillbush
a77326901f
Initial commit
2020-05-15 19:02:23 -03:00