okan
47a10cc055
Lost fix from r1.112; add comment.
...
Reported (again!) by Peter Kane.
2015-08-28 12:07:28 +00:00
okan
19826222f6
Move client cycle grab/ungrab into a more relevant place; while here,
...
update comments about why we need to grab/ungrab the keyboard.
2015-08-27 18:40:09 +00:00
okan
05478f061e
_NET_WM_STATE_STICKY implies only sticky at the group/desktop level, not
...
position and size; based on discussion with a few.
2015-08-21 16:14:39 +00:00
okan
c96fd247dd
Instead of special casing the 'term' and 'lock' commands, go back to
...
keeping them hidden; showing them has apparently caused confusion/angst.
2015-08-21 16:05:55 +00:00
okan
c0f2d0cc75
cvsimport
2015-07-12 14:31:47 +00:00
okan
0d13b7c220
introduce 'groupsearch' for group menu search; matches on either group
...
number/shortcut and/or name.
2015-07-12 14:31:47 +00:00
okan
02779e64b8
revert previous; seems search_match_text() needs mi->text pre-populated.
...
(only used in one place, application menu searching); re-visit later.
broken application menu searching reported by Peter Kane.
2015-07-03 17:11:16 +00:00
Christian Neukirchen
6716719593
cvsimport
2015-07-01 16:40:15 +02:00
okan
8efaf33cfb
no longer need to pass down format strings after introducing search_print_cmd
2015-06-30 19:02:24 +00:00
okan
5d8027b75d
Introduce a callback for cmd menu printing, special-casing 'lock' and
...
'term'.
2015-06-30 18:54:12 +00:00
okan
9ea5f25347
Shuffle code in kbfunc_ssh so that a missing known_hosts file still
...
allows a (now blank) menu to appear, as opposed to nothing at all.
Behavior reported by Alex Greif.
2015-06-29 14:24:40 +00:00
okan
66bc416217
Mechanical change from xinerama to region backed areas.
2015-06-26 17:17:46 +00:00
okan
4454948f21
cvsimport
2015-06-09 13:02:15 +00:00
okan
654bae4f59
just populating the ctx is enough since the menu uses a callback and ignores anything else
2015-06-08 15:43:13 +00:00
okan
b1c2046efd
merge kbd and mouse grouptoggle
2015-05-21 00:37:04 +00:00
James McDonald
7c4a8f3b51
Fix stat patch to use lstat(2) and fix logic
2015-04-23 21:42:34 +02:00
James McDonald
4cb6e0b17b
Add an additional stat() check if a d_type check fails for kbfunc_exec lookups
...
Some filesystems (eg XFS) don't populate the d_type field of struct
dirent, used by kbfunc_exec to filter paths. This patch does an
additional stat() check for any file that fails the d_type check which
will work correctly on these filesystems.
2015-04-12 19:08:34 +02:00
Alexis Hildebrandt
9cfb9225ed
Use _POSIX_HOST_NAME_MAX
...
to be able to compile under Mac OS X.
2015-02-11 15:11:43 +01:00
Christian Neukirchen
742732a1c8
cvsimport
2015-01-22 11:06:01 +01:00
okan
7936b9b2a7
Switch to limits.h; replace MAXPATHLEN and MAXHOSTNAMELEN with PATH_MAX
...
and HOST_NAME_MAX+1, respectively.
ok doug@
2015-01-19 14:54:16 +00:00
okan
c700f7e19a
cvsimport
2014-09-27 19:04:32 +00:00
okan
e9dbd150ea
these have nothing to do with 'sticky', but rather group membership; rename.
2014-09-27 19:04:32 +00:00
okan
2540b3f4fe
cvsimport
2014-09-18 13:56:58 +00:00
okan
8fd0f43ec2
these client actions are just toggles; less confusing with better names
2014-09-17 18:41:44 +00:00
okan
458dd31b93
ewmh states _NET_WM_STATE_STICKY should not alter position
2014-09-17 18:09:30 +00:00
okan
26b95de019
Remove incorrect cast in kbfunc_exec. In kbfunc_ssh, reverse logic on
...
truncation check so it's obvious.
2014-09-11 16:06:26 +00:00
okan
26ba152692
Remove duplicate client queue (mruq); instead, remove and take the
...
global Clientq and place it inside screen_ctx since every client belongs
to a screen, then use the same per screen clientq to track stacking
order (the sole reason for mruq).
2014-09-08 20:11:22 +00:00
Christian Neukirchen
9e560bd745
cvsimport
2014-09-07 15:47:44 +00:00
okan
f7af0ebd72
Few style nits; extend 'path' to MAXPATHLEN.
2014-09-06 18:50:43 +00:00
okan
5cd4cce3a0
Move termpath and lockpath into cmdq; side effect is that 'lock' and
...
'term' now show up in the application menu.
2014-09-06 16:14:35 +00:00
okan
231abb818a
add explicit paran and drop some empty lines bringing like functions closer
2014-09-01 18:17:32 +00:00
okan
7314a3aefd
Implement _NET_WM_STATE_STICKY, bound to CM-s by default; allows any
...
client to 'stick' to all desktops (ewmh speak) or groups - this
currently has the same affect as setting a client's group to 'nogroup',
with the exception that the client can also be in a group, so when
un-sticking, the client will go back to its original group/desktop.
2014-08-25 12:49:19 +00:00
okan
24f9bfb3ec
cvsimport
2014-01-30 22:41:16 +00:00
okan
fdefcecfa0
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
1fd3fc4997
cvsimport
2014-01-29 22:30:00 +00:00
okan
2be890489b
Minimize trivial differences between a few kb and mb functions.
2014-01-29 22:30:00 +00:00
okan
5fd119daea
cvsimport
2014-01-24 22:38:02 +00:00
okan
79248a385b
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
3d2eec293a
zap whitespace
2014-01-22 22:41:09 +00:00
okan
77aa5ac45b
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
371902b3c9
cvsimport
2014-01-21 15:42:44 +00:00
okan
ac3162439a
Sprinkle a few more const; from Tiago Cunha.
2014-01-21 15:42:44 +00:00
okan
83f9ef884a
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
d91571c567
constify and rename some confusing variables around cmdq.
2014-01-20 21:34:32 +00:00
okan
720b5452aa
Add a function that adds an entry to a menuq, normalizing a common code
...
path; from Tiago Cunha.
2014-01-20 18:58:03 +00:00
okan
86b149ad25
cvsimport
2014-01-03 15:29:06 +00:00
okan
43ccf4eae0
use consistent types
2014-01-03 15:29:06 +00:00
okan
44e2a2505b
cvsimport
2013-12-16 19:02:17 +00:00
okan
19fc7f666b
Implement support for EWMH's _NET_WM_STATE_FULLSCREEN hint.
...
Since we already have a form of 'maximize', we need to differentiate
between 'maximize' and the new 'fullscreen' mode. The 'maximize' mode
will continue to honor gap but now *retains* the border, matching the
'vert/horz maximize' behaviour. The new 'fullscreen' mode supports and
follows the _NET_WM_STATE_FULLSCREEN hint, allowing the client perform
additional window modifications; in this mode, cwm(1) will *ignore* gap,
remove borders and freeze(move/resize) the client. Additionally,
'fullscreen' mode will remember various combinations of previous states.
* default keybinding changes: CM-f 'fullscreen', CM-m 'maximize' (re-map
as desired).
Positive feedback from a few, testing and ok sthen@
2013-12-16 19:02:17 +00:00
okan
75b69c0b04
cvsimport
2013-12-13 22:39:13 +00:00
okan
f98f4615c0
Teach screen_find_xinerama() to apply gap only when told to do so;
...
adjust callers. Needed for an upcoming feature.
2013-12-13 22:39:13 +00:00
okan
5732b65139
Instead of using work area, use the Xinerama area for snap calculations;
...
based on a patch from Thomas Adam with appropriate adjustments for gap.
2013-12-13 21:51:56 +00:00
Christian Neukirchen
0cad4ef6e0
cvsimport
2013-12-13 12:57:57 +00:00
okan
fe177b7c61
Make sure we really take work area gap into account with snap calculations;
...
from Dominik Honnef via Christian Neukirchen.
2013-12-12 21:50:50 +00:00
okan
873763f4c6
cvsimport
2013-12-02 20:01:19 +00:00
okan
5e67a12262
like gap, make snapdist per screen
2013-11-27 18:34:34 +00:00
okan
0c99788f66
cvsimport
2013-10-25 19:46:16 +00:00
okan
a88b8c1363
a few err->errx since we don't have error messages here; from Tiago Cunha
2013-10-17 13:59:10 +00:00
okan
93bfc4a5c1
cvsimport
2013-07-10 14:15:58 +00:00
okan
1f244fe29c
move kbfunc and mousefunc closer together
2013-07-08 18:19:22 +00:00
Christian Neukirchen
5515a365ba
cvsimport
2013-05-29 22:41:51 +02:00
okan
112f616d1d
swap x/y calculations in kbd move/resize to match those in the respective mouse functions
2013-05-11 22:03:17 +00:00
okan
6f185bb03c
cvsimport
2013-04-14 16:13:17 +00:00
okan
28b54db221
consistency
2013-04-08 13:02:31 +00:00
okan
9c6226faa8
cvsimport
2013-01-13 13:55:12 +00:00
okan
3a7596968b
add per-group vert/horiz tiling support; introduces 2 new bind commands,
...
'vtile' and 'htile'; from Alexander Polakov.
2013-01-08 15:16:04 +00:00
okan
104c7d5de3
cvsimport
2013-01-06 01:01:26 +00:00
okan
6d123cd96d
rename {h,v}max functions for consistency; from Jan Stary
2013-01-04 16:30:03 +00:00
okan
c139df129c
pass the screen workarea, as opposed to viewarea, allowing client
...
snapping to honor gap.
2013-01-02 21:41:14 +00:00
okan
2ac65bd288
re-work client_snapcalc() so it takes client and edge dimensions with
...
snapdist; allows for simplier snap calculations.
required for an upcoming diff for honoring gap.
2013-01-02 21:37:21 +00:00
okan
0957fbbee2
make num of groups no longer off-by-one; from Alexander Polakov
...
note that a re-exec of cwm will not rewrite the group number atom of
*existing* clients, so they will remain off-by-one until each client has
its atom updated, or of course a restart of X.
2013-01-01 14:19:56 +00:00
okan
f77166194f
cvsimport
2012-12-19 15:21:34 +00:00
okan
479e9f769c
put a default known_hosts into conf
2012-12-17 23:54:57 +00:00
okan
75f65f399e
pull user home directory via getenv or getpwuid and stash it so we don't
...
need to do this everytime; with Tiago Cunha
2012-12-17 23:03:41 +00:00
okan
3a3e0383b2
create and use menuq_clear() helper; from Tiago Cunha
2012-12-17 14:32:39 +00:00
Christian Neukirchen
b4315a3fda
Use vendored queue.h everywhere
2012-11-26 16:27:22 +01:00
okan
28224ff830
sort
2012-11-09 03:52:02 +00:00
okan
76b0874b4c
get rid of the xfree() wrapper around free(); from Tiago Cunha.
2012-11-07 20:34:39 +00:00
okan
438c0332a1
missing headers; from Thordur Bjornsson.
2012-11-07 14:49:46 +00:00
okan
4b84287d19
tab completion support for menus; from Alexander Polakov.
...
ok sthen@ on an older incarnation
2012-11-07 14:39:44 +00:00
okan
4fb420514d
replace 'reload' with 'restart', which merely re-exec's cwm using the
...
existing argv; same idea with respect to argv saving as Alexander
Polakov. reload support was half-complete and is getting in the way.
agreed to by many
2012-10-31 19:30:19 +00:00
okan
86524e21dd
extend client_resize so that it can know when to reset max flags and
...
bwidth; this allows a client to be resized from a max state, which now
gets treated like a non-max'd client. based on a diff that does part of
this in a different way from Alexander Polakov.
2012-09-09 19:47:47 +00:00
okan
0e8815dfb0
re-use geom struct in client_ctx (saved)geometry.
2012-07-13 17:01:04 +00:00
okan
186a78ff1e
convert xmax/ymax uses to view geometry.
2012-07-13 15:21:35 +00:00
okan
287a5b2aad
assign and use screen ctx where appropriate and consistently.
2012-07-04 23:42:03 +00:00
okan
3681b26914
use the screen ctx since we already have it assigned.
2012-07-04 18:07:12 +00:00
okan
0dcf7efb8e
restore mouse move via the keyboard, noticed by todd@. while the check
...
for cc was wrong due to the fact that cc->sc is always filled in during
the event, we don't even need it - just operate on the focused screen's
root window regardless.
ok todd@ oga@
2011-08-29 09:09:45 +00:00
okan
f51f3cb9c2
We are inconsistent when it comes to function returns, so just go all
...
the way with the cwm specific parts.
ok oga@
2011-07-25 15:10:24 +00:00
okan
69ac0624cc
Clarify defines and make them not look like non-local ones; started by a
...
small diff from Thomas Pfaff.
ok oga@
2011-07-23 13:09:11 +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
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
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
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
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
b27c3c22b5
pull these headers only into files that need them.
...
ok oga@
2009-12-15 03:34:34 +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
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
okan
ab4d36531c
we already have sc from the passed cc, so just used that instead.
...
ok oga@
2009-12-07 19:45:36 +00:00
okan
892e1e1c0d
be consistent
...
ok oga@
2009-12-07 19:44:31 +00:00