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
Christian Neukirchen
9eaece0541
cvsimport
2011-02-18 11:50:01 +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
Christian Neukirchen
5bc15cdb58
cvsimport
2010-12-24 23:42:39 +01: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
Christian Neukirchen
10622cf40d
Add protoypes, fixes segfaults on x86
2010-09-26 14:51:23 +02:00
Christian Neukirchen
a64855f9cc
Improve CFLAGS
2010-09-26 14:51:02 +02:00
Christian Neukirchen
e6d9effa8d
Use yacc instead of byacc
2010-09-26 01:46:05 +02:00
Christian Neukirchen
b11c12e99b
Merge branch 'origin' into linux
2010-09-26 01:43:12 +02: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
c9a14a8f40
cvsimport
2010-07-30 12:28:19 +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
e0c9657773
cvsimport
2010-05-22 22:32:08 +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
f769df540d
cvsimport
2010-04-12 16:17:46 +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
Christian Neukirchen
d90ab51111
Add missing functions
2010-02-21 19:18:12 +01:00
Christian Neukirchen
50aff37f50
Import linux.patch
...
Patch largely based on cwmbuild.sh from http://tamentis.com/hacks/cwm/
written by Bertrand Janin, updated by Christian Neukirchen.
2010-02-21 19:15:27 +01:00
okan
507480a695
preserve labels after an edit action is aborted; extending the menu
...
struct just for this is the least intrusive approach until the menu code
is reviewed.
inspired by Thomas Pfaff's report on tech@
ok oga@
2010-02-10 01:23:05 +00:00
stsp
c4a97053cd
Honour program-specified window position in size hints when placing windows.
...
Makes XMMS windows appear as expected.
ok okan, oga
2010-02-02 19:28:46 +00:00
okan
e88bda0df5
- allow per-screen gap; not (yet) user configurable.
...
- teach _NET_WORKAREA about gap.
ok oga@
2010-01-27 03:04:50 +00:00
okan
ccb207a8a8
pull all non-X11 headers from calmwm.h and place them only where they
...
are required.
encourged to go all the way by oga@
2009-12-15 04:10:42 +00:00
okan
09a2d7fb98
spacing
2009-12-15 03:38:11 +00:00
okan
b27c3c22b5
pull these headers only into files that need them.
...
ok oga@
2009-12-15 03:34:34 +00:00
okan
2ad2b5f31d
rid ourselves of these functional macros; convert to real functions.
...
ok oga@
2009-12-15 03:26:22 +00:00
okan
597cb25820
mostly irrelevant now, so remove.
...
ok oga@
2009-12-15 03:25:22 +00:00
okan
b6b7d273d4
merge the 2 common header files; specific includes to be pulled out as
...
separate commits.
ok oga@
2009-12-15 03:24:36 +00:00
oga
49661d405b
kill _CWM_GRP atom setting. The netwm stuff does us well enough now that
...
it's superfluous.
ok okan@
2009-12-14 16:39:01 +00:00
oga
3b87bdb047
add _NET_WORKAREA. for now we ignore the gap, this'll change soonish.
...
ok okan@
2009-12-11 18:09:16 +00:00
oga
28e94b2fbc
another int/long fixup that was giving dodgy property values on amd64, shame on
...
me for not reading xlibs (appauling) documentation more closely.
ok okan@
2009-12-11 17:57:38 +00:00
oga
a0ec2515e9
implement support for _NET_WM_DESKTOP properties on windows.
...
it works kinda like _CWM_GRP, which we added to aid restarts a while
ago, but it's standardised and clients are specifically allowed to set
it to request a desktop.
for noe we leave _CWM_GRP support in, but its days are now numbered.
while i'm here fixup an int/long mixup with an earlier diff.
ok okan@
2009-12-11 17:55:42 +00:00
oga
b35cbf81d8
Implement _NET_DESKTOP_NAMES, this one was a bit tricky since thespec
...
says that a pager can change the property at any time (most need a
clientmessage). So deal with property updates.
Needed to shuffle some of the other code around since we can't just use
shortcut_to_name[] everywhere now.
ok okan@
2009-12-11 17:51:42 +00:00
oga
9b04930f24
Implement _NET_VIRTUAL_ROOTS (just clear it, we don't use that technique)
...
and _NET_SHOWING_DESKTOP (we're never doing so right now).
only three informational root-window hints to go.
ok okan@
2009-12-10 23:21:26 +00:00
oga
a7c3a7cac3
Implement _NET_CURRENT_DESKTOP, _NET_DESKTOP_VIEWPORT and
...
_NET_DESKTOP_GEOMETRY.
ok okan@
2009-12-10 23:14:58 +00:00
oga
134e777cf0
finish unfucking the screen_ctx handling.
...
remove screen_current() it was utterly bogus when nscreens > 1.
pass a fake client_ctx in the case where there's no client and the
kbfunc or mousefunc doesn't need a real one, it just contains the
current screen, modify these functions so that they pass down the screen
context to their callees.
make groups per screen, it's the only way it makes sense in this regard.
ok okan@.
2009-12-10 17:16:51 +00:00