phillbush
33376f5420
Merging icons branch on master branch.
And adjusting the geometry of items.
преди 4 години
phillbush
f8ffe0b2e4
Renaming routine and spliting it into subroutines
Renaming calcmenu() to setupmenu() and shrinking it by calling two
new functions: setupmenusize() and setupmenupos().
преди 4 години
phillbush
207c3312d5
typo
преди 4 години
phillbush
738ed9d5f5
comment
преди 4 години
phillbush
beae67a6a7
Making geom local to main().
I moved all the geometry related code to calcmenu().
The pro is that geom is now a local variable rather than global;
and that all geometry-related code is now in one place.
The con is that it weakens performance a little bit since some
variables, such as the border, have to be reset after the window
creation.
преди 4 години
phillbush
ddb15acfde
Fixing segfault in case of empty input
преди 4 години
phillbush
a5ddd2cd22
Simplifying parsing and data structure building
• Parsing of stdin was simplified by using conventional stdlib functions
rather than parsing the stdin byte-by-byte.
• Splited parsing of textual input and building of internal data
structures into two different functions.
преди 4 години
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.
преди 4 години
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.
преди 4 години
phillbush
ec4ed1ac1e
Fixing calculation of menu position.
The position didn't take into account the menu borders.
Also, freeing allocated menus and items.
преди 4 години
phillbush
cdc4d51fee
removed a goto
преди 4 години
phillbush
c6d9174ec2
Reordering stuff, removing unused variables
преди 4 години
phillbush
257e42cc23
Getting rid of some global variables
They are local now.
преди 4 години
phillbush
0c1a78642c
Separated getmenuitem into two functions
преди 4 години
phillbush
fd530f3f68
Refactored code, changed resources and config.h
преди 4 години
phillbush
2744390027
Removed the -w option (it was too buggy)
преди 4 години
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.
преди 4 години
phillbush
8455c36913
Menu windows are recalculated with -w
Every time a window is opened, its position is recalculated with
recalcmenu().
преди 4 години
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.
преди 4 години
phillbush
c0cff00dc8
Referring to the new changes in the manpage.
преди 4 години
phillbush
d2435fcd5f
Correctly setting WM_CLASS.
преди 4 години
phillbush
465d07dbe9
Fixed order of function calls
You must grab the keyboard after reading the input.
преди 4 години
phillbush
dbeb994054
Added xft support (smooth fonts)
преди 4 години
phillbush
858338d978
xmenu now can be operated by keyboard
преди 4 години
phillbush
f644b8bc22
xmenu now supports x resources
преди 4 години
phillbush
08f165897c
Xmenu now has a man page.
преди 4 години
phillbush
873c080ceb
The README file referred to dwm
преди 4 години
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.
преди 4 години
phillbush
d888f2cae4
improved algorithm that draw menus
преди 4 години
phillbush
f158328539
width is now calculated from the font
преди 4 години
phillbush
2b6968f911
A better triangle
Now the triangle indicating submenus is smaller and better looking.
преди 4 години
phillbush
f15fc33987
using pixmaps
Using pixmaps rather than drawing directly on windows.
преди 4 години
phillbush
09c13122cc
Test
преди 4 години
phillbush
7fbd1c5ed0
Added separators
Now lines without labels in the input generate a menu separator.
преди 4 години
phillbush
a80fee227a
item->y is now relative to menu, not to root
преди 4 години
phillbush
a77326901f
Initial commit
преди 4 години