okan
d8747ae702
add 'normal' cursor and shuffle the others we use to make a bit more
...
sense and to be slightly less un-expected. from Alexander Polakov.
re-use 'normal' cursor now instead XC_hand1 for menu selection. i
really wish X had real docs and made sense.
ok on earlier diff with '?' removed (but it's back now) oga@
2011-06-24 06:52:23 +00:00
okan
8f1c583361
New option to raise a client via the mouse (unbound by default);
...
opposing action, lower, already exists and bound. Both keyboard
mappings already exist.
'no opinion either way' oga@
2011-06-24 06:09:26 +00:00
okan
34ba6cdbcc
introduce a new config option to snap to the screen edge. 'snapdist'
...
keyword taken from a diff from Sviatoslav Chagaev to do the same thing,
but implemented in a completely way (based on some very old code from
mk@). default set to 0, so no behavior change.
ok oga@ (who would also like to take it further...)
2011-06-24 06:06:24 +00:00
okan
b230e611be
re-do various bits of {,h,v}max for simplicity and less flag handling.
...
as a bonus, flipping between various combinations of vmax+hmax provides
a more predictable behavior.
commitski oga@
2011-06-24 06:01:47 +00:00
okan
c566b31bd0
replace the non-working check to see if another wm is running with a
...
method that actually works. checking for icccm compliant wm's should
also be done first, but that's another diff (noted by oga).
ok oga@
2011-06-24 05:58:51 +00:00
okan
d39f5b9183
more nitems usage.
...
ok oga@
2011-06-24 05:54:30 +00:00
okan
c8ea76a965
re-order sweep draw so that we map into the client window after
...
re-parenting; from Sviatoslav Chagaev.
ok oga@
2011-06-24 05:51:25 +00:00
okan
c2a8363dd9
struct XftFont already has height which we can use directly instead of
...
calculating ourselves, so do so.
ok oga@
2011-06-24 05:45:57 +00:00
okan
f6fcd0eb5d
alter a few function returns and prototypes; found by lint.
...
ok oga@
2011-06-24 05:40:09 +00:00
okan
69cc58555d
Correct extern declaration and while here, rename a variable to be
...
pedantic.
from Thomas Pfaff.
ok oga@
2011-06-24 05:33:41 +00:00
okan
89d8a14b6d
collapse client and group {r,}cycle defines since they are really
...
the same thing.
ok oga@
2011-06-24 05:30:42 +00:00
naddy
9a6a2d3cf3
switch to installing source manuals:
...
* cope with new bsd.man.mk
* update imake configuration
ports use of imake remains unchanged
2011-06-23 22:48:59 +00:00
okan
64d8bb630a
fix botched client and group cycle defines; noticed by Thomas Pfaff.
...
"no cookie! fix it" - oga@
2011-05-15 17:58:47 +00:00
okan
fa64bc2f32
remove left over XSync; ok oga@
2011-05-13 12:53:19 +00:00
okan
c8cd94882d
tag and comment cleanup; ok oga@
2011-05-11 13:53:51 +00:00
okan
43450c8fd7
introduce a new 'freeze' flag (CMS-f by default) which may be applied to
...
any window, after which all move/resize requests will be ignored,
essentially freezing the window in place.
there's a possibility to merge this with the 'ignore' concept, pending
on how ignore+freeze should behave (really more ewmh stuff), but punting
for now since ponies are on the line.
requested and tested by thib at k2k11 with ponies, unicorns and rainbows.
'save the unicorns' todd@, ok oga@
2011-05-07 17:15:37 +00:00
oga
760c6b5522
On map, don't warp to windows that are marked as ignored.
...
Requested by Christian Neukirchen last august. He provided a patch but the one I
wrote was significantly simpler (1 - 2 + in the whole diff).
makes sense to okan@.
2011-05-06 19:39:44 +00:00
okan
604a5d07a4
bump window resize back to 60hz. instead, we should not need to sync
...
every time we move/resize a window, so remove XSync in both mouse move
and resize events. tested by Brynet as well.
ok oga@
2011-05-05 19:52:52 +00:00
okan
8ed968601e
re-org. ok oga@
2011-05-05 16:40:37 +00:00
okan
c62c0ee9db
make the menu window aware of xinerama info; this makes the menu stay
...
within the current screen, like other cwm window placements and
mutations (vmax/hmax/max) - from Sviatoslav Chagaev.
ok oga@
2011-05-05 15:32:24 +00:00
okan
349b3295b8
revert the XSync timing change for client move only; first noticed by
...
brynet.
sure oga@
2011-03-23 07:27:32 +00:00
okan
5972c7a507
warp the pointer back, iff we don't move the mouse, once we are done
...
with the menu; idea and initial from Sviatoslav Chagaev.
discussion with and ok oga@
2011-03-22 13:50:40 +00:00
okan
e28a7f832e
we should re-focus the client and ungrab the ptr even if we don't have a
...
mouse based match (i.e. in the kbd no match case). update the comment
as well.
ok oga@
2011-03-22 11:09:52 +00:00
okan
9c587d9725
fix nousance of always highlighting the first entry even when there is
...
no match (seen in the ctrl-a case)
ok oga@
2011-03-22 11:05:13 +00:00
okan
765479fc86
move the default case to the end.
...
ok oga@
2011-03-22 11:03:05 +00:00
okan
a50bfb613d
reduce the number of times we sync during a window resize.
...
ok oga@
2011-03-22 10:59:08 +00:00
okan
2c706e60c7
introduce nitems macro, with the appropriate ifndef.
...
ok oga@
2011-03-22 10:57:31 +00:00
okan
8f88cd474a
if virt/horz un-maximizing, restore only the un-maximized axis
...
coordinates; allows moving a client and not restoring the maximized axis
coordinates.
picked from a larger martynas diff from ages ago.
ok oga@
2011-03-22 10:56:08 +00:00
okan
9b4985439e
(0,0) is also inside in the screen; from Sviatoslav Chagaev.
...
ok oga@
2011-03-22 10:54:42 +00:00
okan
3ff303658c
while this piece deals with client argv's in a seemingly inefficient way
...
(noticed by Tim Peniket), since we don't ever do anything with cliarg,
remove the hunk and cliarg completely.
ok oga@
2011-03-22 10:52:37 +00:00
okan
a12fb346a2
remove XXX and move a configure event out of the event handler functions.
...
reminded by a similiar diff from Thomas Pfaff.
ok oga@
2011-03-22 10:49:46 +00:00
okan
00b502b1da
move the single keycode function directly into the menu code.
...
ok oga@
2011-03-22 10:47:59 +00:00
matthieu
e03323d22e
xcb is no longer optional.
2011-03-08 20:48:59 +00:00
okan
64e62989d0
if we are saving the pointer location for a specific client, make sure
...
that if it is not already inbounds, put it in the default location,
which happens to be inbounds.
behavior noticed by Thomas Pfaff while maximizing and un-maximizing a
window, leaving the pointer behind and causing client_cycle() to be a
bit lost.
ok oga@
2011-02-13 20:09:57 +00:00
tedu
0884d38e3b
we lose track of highstack somewhere, so recompute it before we need it.
...
fixes a crash reported by christian neukirchen. ok okan
2011-02-13 17:25:20 +00:00
martynas
cd23316a72
in MotionNotify geom.x, geom.y calculations take into account bwidth.
...
fixes the annoying bug where windows would go +bwidth pixels right,
+bwidth pixels down. ok okan@
2010-12-14 11:08:47 +00:00
matthieu
111a88129d
Explicitely link libxcb when needed for static arches.
2010-11-27 14:25:47 +00:00
schwarze
1f310d57e2
s/-offset -indent/-offset indent/ for correct indentation,
...
and properly encode \(:a
found by mandoc -Tlint
2010-09-25 21:58:18 +00:00
schwarze
ff3df256a1
s/\.Pb/.Pp/ for correct vertical spacing; found by mandoc -Tlint
2010-09-25 21:48:08 +00:00
okan
dee6ac5b7d
do not warp to clients marked 'ignore'; from chneukirchen at gmail - thanks.
...
(with the manpage bit from me).
ok oga@
2010-09-25 20:04:55 +00:00
okan
2d66003e4b
picked a henning diff from src - original log:
...
fix linecount bug with comments spanning multiple lines
problem reported with the obvious fix for bgpd by Sebastian Benoit
<benoit-lists at fb12.de>, also PR 6432
ok oga@
2010-09-25 20:02:58 +00:00
okan
917bce4b8d
spacing nits
2010-09-25 20:01:27 +00:00
okan
2440efad06
revert -r1.45 of group.c (log was: fix window name and class to match
...
cwmrc(5)). instead, fix cwmrc(5) to match the old behavior which also
happens to match the example config, of which many have based their
configs; this also nicely matches the output of xprop(1).
clean-up of variable names as a separate commit.
suggested by sthen (and something we should have done initially).
discussed with and ok oga@
2010-07-30 12:28:19 +00:00
okan
aaca5b7e45
fix backwards example (after r1.45 of group.c); noticed by phessler@
...
ok oga@ phessler@
2010-07-23 15:13:00 +00:00
okan
2a5e1791d4
fix window name and class to match cwmrc(5); from Holger Mikolon - thanks!
...
ok oga@
2010-06-28 12:29:04 +00:00
okan
85a53083cb
initialize nitems
...
ok oga@
2010-05-22 22:32:08 +00:00
okan
72e6d2d0a9
replace XFetchName() with something more intelligent which attempts to
...
use the appropriate netwm Atom first, as well as deal with utf8.
slightly different incarnation tested by sthen@ and ajacoutot@ - thanks!
ok oga@
2010-05-22 22:10:31 +00:00
oga
a292c96977
grab events on the root window *before* we look for existing windows.
...
This closes a race we were hitting often where stuff started right
before cwm may not get noticed and not have borders.
ok okan@. Prompted by something todd noticed.
2010-04-12 16:17:46 +00:00
okan
b12e6fc5cd
clean up a few xu_* functions to just accept what they need (Window).
...
ok oga@
2010-04-11 16:51:26 +00:00
schwarze
46c9b5cbae
Fix formatting errors breaking the xenocara mandoc(1) build:
...
* .Bl may only have .It children
* .SH requires an argument
* blank lines are illegal outside literal context
Now "cd /usr/xenocara && make man" succeeds,
but unfortunately, that covers a minority of X11 manuals only.
ok matthieu@
2010-03-20 20:13:27 +00:00