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).
okan
2011-06-24 05:58:51 +00:00
d39f5b9183
more nitems usage.
okan
2011-06-24 05:54:30 +00:00
c8ea76a965
re-order sweep draw so that we map into the client window after re-parenting; from Sviatoslav Chagaev.
okan
2011-06-24 05:51:25 +00:00
c2a8363dd9
struct XftFont already has height which we can use directly instead of calculating ourselves, so do so.
okan
2011-06-24 05:45:57 +00:00
f6fcd0eb5d
alter a few function returns and prototypes; found by lint.
okan
2011-06-24 05:40:09 +00:00
69cc58555d
Correct extern declaration and while here, rename a variable to be pedantic.
okan
2011-06-24 05:33:41 +00:00
89d8a14b6d
collapse client and group {r,}cycle defines since they are really the same thing.
okan
2011-06-24 05:30:42 +00:00
9a6a2d3cf3
switch to installing source manuals: * cope with new bsd.man.mk * update imake configuration
naddy
2011-06-23 22:48:59 +00:00
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.
okan
2011-05-07 17:15:37 +00:00
760c6b5522
On map, don't warp to windows that are marked as ignored.
oga
2011-05-06 19:39:44 +00:00
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.
okan
2011-05-05 19:52:52 +00:00
8ed968601e
re-org. ok oga@
okan
2011-05-05 16:40:37 +00:00
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.
okan
2011-05-05 15:32:24 +00:00
2bac9a6be9
cvsimport
Christian Neukirchen
2011-05-03 19:28:18 +02:00
349b3295b8
revert the XSync timing change for client move only; first noticed by brynet.
okan
2011-03-23 07:27:32 +00:00
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.
okan
2011-03-22 13:50:40 +00:00
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.
okan
2011-03-22 11:09:52 +00:00
9c587d9725
fix nousance of always highlighting the first entry even when there is no match (seen in the ctrl-a case)
okan
2011-03-22 11:05:13 +00:00
765479fc86
move the default case to the end.
okan
2011-03-22 11:03:05 +00:00
a50bfb613d
reduce the number of times we sync during a window resize.
okan
2011-03-22 10:59:08 +00:00
2c706e60c7
introduce nitems macro, with the appropriate ifndef.
okan
2011-03-22 10:57:31 +00:00
8f88cd474a
if virt/horz un-maximizing, restore only the un-maximized axis coordinates; allows moving a client and not restoring the maximized axis coordinates.
okan
2011-03-22 10:56:08 +00:00
9b4985439e
(0,0) is also inside in the screen; from Sviatoslav Chagaev.
okan
2011-03-22 10:54:42 +00:00
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.
okan
2011-03-22 10:52:37 +00:00
a12fb346a2
remove XXX and move a configure event out of the event handler functions.
okan
2011-03-22 10:49:46 +00:00
00b502b1da
move the single keycode function directly into the menu code.
okan
2011-03-22 10:47:59 +00:00
e03323d22e
xcb is no longer optional.
matthieu
2011-03-08 20:48:59 +00:00
9eaece0541
cvsimport
Christian Neukirchen
2011-02-18 11:50:01 +00:00
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.
okan
2011-02-13 20:09:57 +00:00
0884d38e3b
we lose track of highstack somewhere, so recompute it before we need it. fixes a crash reported by christian neukirchen. ok okan
tedu
2011-02-13 17:25:20 +00:00
5bc15cdb58
cvsimport
Christian Neukirchen
2010-12-24 23:42:39 +01:00
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@
martynas
2010-12-14 11:08:47 +00:00
111a88129d
Explicitely link libxcb when needed for static arches.
matthieu
2010-11-27 14:25:47 +00:00
10622cf40d
Add protoypes, fixes segfaults on x86
Christian Neukirchen
2010-09-26 14:51:23 +02:00
a64855f9cc
Improve CFLAGS
Christian Neukirchen
2010-09-26 14:51:02 +02:00
e6d9effa8d
Use yacc instead of byacc
Christian Neukirchen
2010-09-26 01:46:05 +02:00
b11c12e99b
Merge branch 'origin' into linux
Christian Neukirchen
2010-09-26 01:43:12 +02:00
1f310d57e2
s/-offset -indent/-offset indent/ for correct indentation, and properly encode \(:a found by mandoc -Tlint
schwarze
2010-09-25 21:58:18 +00:00
ff3df256a1
s/\.Pb/.Pp/ for correct vertical spacing; found by mandoc -Tlint
schwarze
2010-09-25 21:48:08 +00:00
dee6ac5b7d
do not warp to clients marked 'ignore'; from chneukirchen at gmail - thanks. (with the manpage bit from me).
okan
2010-09-25 20:04:55 +00:00
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
okan
2010-09-25 20:02:58 +00:00
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).
okan
2010-07-30 12:28:19 +00:00
aaca5b7e45
fix backwards example (after r1.45 of group.c); noticed by phessler@
okan
2010-07-23 15:13:00 +00:00
2a5e1791d4
fix window name and class to match cwmrc(5); from Holger Mikolon - thanks!
okan
2010-06-28 12:29:04 +00:00
72e6d2d0a9
replace XFetchName() with something more intelligent which attempts to use the appropriate netwm Atom first, as well as deal with utf8.
okan
2010-05-22 22:10:31 +00:00
a292c96977
grab events on the root window *before* we look for existing windows.
oga
2010-04-12 16:17:46 +00:00
b12e6fc5cd
clean up a few xu_* functions to just accept what they need (Window).
okan
2010-04-11 16:51:26 +00:00
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
schwarze
2010-03-20 20:13:27 +00:00
d90ab51111
Add missing functions
Christian Neukirchen
2010-02-21 19:18:12 +01:00
50aff37f50
Import linux.patch
Christian Neukirchen
2010-02-21 19:15:27 +01:00
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.
okan
2010-02-10 01:23:05 +00:00
c4a97053cd
Honour program-specified window position in size hints when placing windows. Makes XMMS windows appear as expected.
stsp
2010-02-02 19:28:46 +00:00
e88bda0df5
- allow per-screen gap; not (yet) user configurable. - teach _NET_WORKAREA about gap.
okan
2010-01-27 03:04:50 +00:00
ccb207a8a8
pull all non-X11 headers from calmwm.h and place them only where they are required.
okan
2009-12-15 04:10:42 +00:00
b27c3c22b5
pull these headers only into files that need them.
okan
2009-12-15 03:34:34 +00:00
2ad2b5f31d
rid ourselves of these functional macros; convert to real functions.
okan
2009-12-15 03:26:22 +00:00
597cb25820
mostly irrelevant now, so remove.
okan
2009-12-15 03:25:22 +00:00
b6b7d273d4
merge the 2 common header files; specific includes to be pulled out as separate commits.
okan
2009-12-15 03:24:36 +00:00
49661d405b
kill _CWM_GRP atom setting. The netwm stuff does us well enough now that it's superfluous.
oga
2009-12-14 16:39:01 +00:00
3b87bdb047
add _NET_WORKAREA. for now we ignore the gap, this'll change soonish.
oga
2009-12-11 18:09:16 +00:00
28e94b2fbc
another int/long fixup that was giving dodgy property values on amd64, shame on me for not reading xlibs (appauling) documentation more closely.
oga
2009-12-11 17:57:38 +00:00
a0ec2515e9
implement support for _NET_WM_DESKTOP properties on windows.
oga
2009-12-11 17:55:42 +00:00
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.
oga
2009-12-11 17:51:42 +00:00
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).
oga
2009-12-10 23:21:26 +00:00
a7c3a7cac3
Implement _NET_CURRENT_DESKTOP, _NET_DESKTOP_VIEWPORT and _NET_DESKTOP_GEOMETRY.
oga
2009-12-10 23:14:58 +00:00
134e777cf0
finish unfucking the screen_ctx handling.
oga
2009-12-10 17:16:51 +00:00
ee7df6a95f
start fixing screen_ctx usage, for it is utterly broken. bring font into screen_ctx and start passing screen_ctx around to in order get rid of Curscreen; fixup per-screen config colors the same way.
okan
2009-12-08 16:52:17 +00:00
aa88d5848e
Implement _NET_NUMBER_OF_DESKTOPS, currently this is statically 9 and unchangable. the group code needs some cleaning up before this will be a bit less hackish.
oga
2009-12-07 23:19:51 +00:00
728d2a40dd
support _NET_CLIENT_LIST.
oga
2009-12-07 22:46:15 +00:00
3c60d854db
Implement _NET_ACTIVE_WINDOW. for now just the informational hint is supported, the client message to change this will be supported when all informational hints are working.
oga
2009-12-07 22:21:59 +00:00
3e309894c1
introduce the beginnings of netwm support, minimally and correctly; allows java to be happy, but additionally stops others from whinning about a non-netwm complaint wm. more to come.
okan
2009-12-07 21:20:52 +00:00
46630531f8
fix off-by-one where a mere click would select the first item inside a menu
okan
2009-12-07 19:48:08 +00:00
ab4d36531c
we already have sc from the passed cc, so just used that instead.
okan
2009-12-07 19:45:36 +00:00
892e1e1c0d
be consistent
okan
2009-12-07 19:44:31 +00:00
afaf69cefc
Corrected grammar in comment.
tobias
2009-11-22 21:38:50 +00:00
85d8697676
With Xinerama enabled, the borders of a maximized window will show up on all adjacent screens. This patch hides the borders while the window is maximized.
oga
2009-09-25 15:57:49 +00:00
4af6a60d84
re-introduce the intention of the change from rev 1.4 in menu.c here instead, by moving the check for '\0' to only the places that it matters. hint and 50% of the diff from oga@, prodded by todd@
okan
2009-09-05 16:06:15 +00:00
7295c51155
unroll the CCTOSC macro; from Thomas Pfaff
okan
2009-08-27 01:38:08 +00:00
b9f8367089
static; ok oga@
okan
2009-08-25 12:05:11 +00:00
0a44f2e5c4
we are not doing access control here, so replace the "check if file is executable" goo with access(2).
okan
2009-08-25 02:02:59 +00:00
1968561fcc
Reduce duplciation of code for checking modifiers in key/mouse bindings. shaves a bunch of bytes.
oga
2009-08-25 01:44:39 +00:00
95f65b8be6
Instead of calling conf_bind*() 50 gazillion times in a row, store an array with all the parameters in and just loop over that to setup the default keybindings - it's so much easier to read.
oga
2009-08-25 01:42:05 +00:00
8fd4ff1c7c
Instead of messing around everytime we do a resize, just clamp the resize increments to a minimum of one, and use it unconditionally.
oga
2009-08-25 01:32:40 +00:00
fcb2684db1
unroll macro; ok oga@
okan
2009-08-25 01:26:09 +00:00
e2b1cb98c1
Add a keybinding to allow horizontal maximisation of a window (CMS-enter).
oga
2009-08-24 23:54:41 +00:00
028a1778db
bring together gathering, calculating and applying of size hints; additionally, respect aspect ratio hints.
okan
2009-08-24 23:49:04 +00:00