miod
85c0adf61c
Add -fno-stack-protector to the two files which already need to be built
...
with -O1 on landisk - they definitely hit worst case logic in what passes for
a compiler we're using.
ok martynas@
2014-04-11 22:58:12 +00:00
matthieu
73bad93705
Apply the ':' symbol to the SunPaste/XF86Paste events translations.
...
This makes shure that shift modifers are taken into account to trigger
the translation. It fixes the 'v' key on Zaurus keyboard, which has
SunPaste at 3rd level and was thus bound to insert-selection() regardless
of the shift level.
2014-03-15 10:39:28 +00:00
okan
877931bf62
Alignment fix; found the hard way on sparc64 by landry@ (and thanks too
...
for fast access to a box!)
ok deraadt@, matthieu@
2014-02-27 00:52:57 +00:00
todd
27e09cc02c
puffy 5.5
2014-02-26 17:39:48 +00:00
matthieu
fcd6bcf1a5
oops Pablo Mendez Hernandez <pablomh@gmail.com> pointed out there
...
is a typo in previous commit.
ok jca@, dcoppa@, deraadt@
2014-02-26 14:21:28 +00:00
matthieu
c2e393c2e2
Support for ed25519 keys. from Tristan Le Guern with tweaks by sthen@
...
Ok deraadt@
2014-02-25 22:16:24 +00:00
matthieu
164e7011dd
Update to xterm 301
2014-02-14 19:40:02 +00:00
okan
875128a0cb
Make sure we cycle through existing client's group membership and set
...
the hidden state on the group; important to know group hidden state
after a re-exec or restart of cwm (as easily seen in group menu).
2014-02-08 02:49:30 +00:00
okan
1a7c8d161a
Replace a few hand rolled loops with like tailq loops.
2014-02-08 02:40:43 +00:00
okan
92bf6935f5
all mapped clients now should have a group, so simplify some cases
2014-02-07 21:59:56 +00:00
okan
60a1b7520a
If _NET_WM_DESKTOP is set to -1 during client creation, place the client into
...
group 0 (nogroup); solves problem initially discovered by oga@nicotinebsd with
tint2. A clientmessage *after* client creation already handles this case.
Go further and assign every client to a group; in non-sticky mode, group 0
(nogroup) and sticky mode, the active group. In both cases, autogroup will
override the group assignment. Removing a group from a client always places
the client back into group 0 (nogroup). Autogroup can also assign a client to
group 0 (nogroup) to keep a client always visible (unless of course one opts to
hide all clients).
2014-02-07 18:09:54 +00:00
okan
b23ca72ab1
Some clients set the urgency flag even if they are the active client;
...
prevent annoying behavior by only setting the cwm urgency flag if the client
is not active; diff from Thomas Adam.
2014-02-06 20:58:46 +00:00
okan
16de3733be
Introduce a region queue and replace screen's XineramaScreenInfo; we
...
still use Xinerama to populate the regions per screen, but will switch
at a more appropriate time.
2014-02-03 21:07:47 +00:00
okan
4c3987dcc1
make this XQueryTree like the other
2014-02-03 20:29:05 +00:00
okan
ea2abae9f3
Move redundant bits from screen_init (while dealing with existing
...
clients) directly into client_init, performing the X roundtrip only
once. With the previous change in maprequest, this moves decision making
into one place for creating new clients.
2014-02-03 20:20:39 +00:00
okan
bb4485df6b
Move redundant window attr fetch from maprequest directly into
...
client_init and perform that X roundtrip only once.
2014-02-02 21:34:05 +00:00
okan
03847f1c2e
No need to store screen colormap and visual; rather just use the X
...
macros in the one place they are needed.
2014-02-02 16:29:04 +00:00
okan
49f2f86dbd
Unlike free(3), XFree(3) can't be passed a NULL pointer.
2014-02-02 16:13:50 +00:00
okan
4ce9b05438
The menu already limits entries with MENU_MAXENTRY, so don't bother
...
holding a command name limit as well.
2014-02-02 15:46:05 +00:00
okan
9062093012
Take menu's bwidth into account for position/size; reported by Thomas Adam.
2014-02-01 19:28:46 +00:00
okan
d413fd6b56
Let the config parser continue parsing even after encountering an error;
...
original idea (with now-outdated patch) from Thomas Adam. Since we now
report where errors exist, this now makes more sense. Expand a bit on
config file parsing in the cwm(1).
Discussed with a few, including sthen; ok sthen.
2014-02-01 00:25:04 +00:00
okan
364a7628cb
re-add lost free from previous
2014-01-30 22:41:16 +00:00
okan
4de6836838
Switch ignoreq to winname struct since it's basically the same thing;
...
removes limit on name matching.
2014-01-30 22:17:22 +00:00
okan
ca2497d48b
use the same autogroupwin variable as everywhere else
2014-01-30 15:43:53 +00:00
okan
9f5aa96cc7
Move cwm_status around to avoid header fu, and remove extraneous signal
...
header from xevents.c; noticed by Christian Neukirchen.
2014-01-30 15:41:11 +00:00
okan
06d9319772
Remove duplicate mouse functions and instead use the kbfunc ones. No
...
user visable changes at this point, but they'll merge at an appropriate
time.
2014-01-30 14:40:21 +00:00
okan
d5979e3ab6
Minimize trivial differences between a few kb and mb functions.
2014-01-29 22:30:00 +00:00
okan
e2d5d73e53
keybinding -> key binding
2014-01-29 21:17:33 +00:00
okan
78ff1f748c
Merge keybinding and mousebinding queues into using the same merged
...
struct, binding; they were essentially the same accept for what was
'pressed', keysym or button.
2014-01-29 21:13:52 +00:00
okan
cd007c0d08
Much like we do for keyboard and mouse bindings, remove duplicates for
...
command name - last match.
2014-01-29 18:43:27 +00:00
okan
2ffb124daa
Check command name/path for truncation and provide user feedback during
...
config parse (and use conf_cmd_add to populate defaults); based on a
discussion with Tiago Cunha. While this looks ugly, there are likely
some other changes here to come.
2014-01-29 18:34:22 +00:00
okan
0590f4c1fc
Check ignore windowname for truncation and provide user feedback during
...
config parse; based on a discussion with Tiago Cunha.
2014-01-28 20:22:21 +00:00
okan
2d6c7c78d8
The EWMH spec states that if the cardinal returned is 0xFFFFFFFF (-1)
...
then the window should appear on all desktops, which in our case is
assigned to group 0. Found to fix stalonetray due to the non-ewmh aware
range checking in group_movetogroup(); from Thomas Adam.
2014-01-28 13:40:40 +00:00
okan
e395fd7bea
Move conf_init/clear into main - no behaviour change; from Tiago Cunha.
2014-01-28 00:42:20 +00:00
okan
beb28798ef
move some init up and shed some blank lines
2014-01-27 15:13:09 +00:00
okan
fad126f1a3
simplify parse_config using assignment; inspired by a very old diff from
...
Tiago Cunha.
2014-01-27 14:49:40 +00:00
okan
d0425acdda
more range checking
2014-01-24 22:38:02 +00:00
okan
66e13c1a60
correct arguments and drop the cast.
...
sanity check by oga@nicotinebsd
2014-01-24 15:08:06 +00:00
okan
9ffdedb82e
no need to quote within warning
2014-01-23 17:13:38 +00:00
okan
40c619037f
If no title is supplied, term uses only the basename for its title.
...
This is useless when searching for windows launched via the ssh command
menu; supply a more useful title: '[ssh] <hostname>'.
Idea from todd@, ok todd@
2014-01-23 16:51:28 +00:00
okan
b740a0a91a
zap whitespace
2014-01-22 22:41:09 +00:00
okan
fa2846fe29
cwm_argv doesn't need to be global any longer
2014-01-22 22:26:05 +00:00
okan
3aff0ea880
start properly releasing X resources during teardown
2014-01-22 22:14:02 +00:00
okan
3b8ad25f38
Somewhat streamline event loop/restart/quit handling; most notable
...
change allows a restart to trigger proper teardown first, even though
teardown is not (yet) complete.
After some discussion with oga@nicotinebsd.org regarding a more
complicated version/idea.
2014-01-22 21:48:27 +00:00
okan
b92e846e56
Sprinkle a few more const; from Tiago Cunha.
2014-01-21 15:42:44 +00:00
okan
69bb069674
Save the ptr position before lowering via kbd, so as to be able to cycle
...
back with the pointer in the right place; matches behaviour when
lowering via the mouse function.
2014-01-20 23:18:47 +00:00
okan
57bbf0fd90
merge KBFLAG_NEEDCLIENT and MOUSEBIND_CTX_*; brings kbfunc and mousefunc
...
bits even closer.
2014-01-20 23:03:51 +00:00
okan
42e2d07b2b
Use argument to pass down flags for mousefunc cyclegroup; removes
...
rcyclegroup wrapper need - now similar to kbfunc.
2014-01-20 22:31:53 +00:00
okan
9a540a7adb
constify and rename some confusing variables around cmdq.
2014-01-20 21:34:32 +00:00
okan
7e2aa0c80b
- remove redundant range check for buttons in conf_bind_mouse.
...
- make conf_bind_kbd return error on non-matches to match what
conf_bind_mouse does.
- rename some variables while here for clarity.
- constify bind and cmd.
from Tiago Cunha.
2014-01-20 19:06:04 +00:00