okan
ccd054aba7
keep cmdq sorted
2015-06-30 18:44:29 +00:00
okan
5fede6d784
style and spacing nits
2015-06-30 18:42:50 +00:00
okan
eb3dae29d1
Re-implement XClientMessage handling so that we can feed screen_find and
...
client_find valid resources as needed, relieving the need for
screen_find to ungracefully handle invalid root windows. Removes a long
standing XXX. Should theoretically allow XClientMessage handling on
more than one X screen. Alter callers of screen_find to handle
failures.
2015-06-30 14:01:43 +00:00
okan
89eefd254e
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
b7512d9dd0
move client_find down
2015-06-28 19:54:37 +00:00
okan
a585206d81
replace assert usage
2015-06-28 19:50:46 +00:00
okan
0eb3c16128
region is a _ctx, so name it so
2015-06-26 18:54:25 +00:00
okan
933ce723de
Mechanical change from xinerama to region backed areas.
2015-06-26 17:17:46 +00:00
okan
44693cc984
collect 'gap' applications
2015-06-26 16:11:21 +00:00
okan
9660be8b0b
Replace screen region info gathering with XRandR equivalent of Xinerama
...
queries (currently act on XRandR events anyway). Fall-back mode without
XRandR is still what X provides. This removes -lXinerama.
2015-06-26 15:21:58 +00:00
okan
6aef9ae536
typo in comment; from jsteinha [at] iutbayonne.univ-pau.fr
2015-06-09 13:02:15 +00:00
okan
c049f12cd4
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
fb854e1538
switch to search_print_client() as the print callback since it will now display labels as well
2015-06-08 15:41:27 +00:00
okan
0a2c4b1939
add client label
2015-06-08 15:34:03 +00:00
okan
5a1ff2b250
stash window dimensions
2015-06-08 15:11:29 +00:00
okan
d7a3230790
clean up
2015-06-08 15:08:44 +00:00
okan
a4ce9f9682
even if the menuq is empty, at least show an empty menu instead of just
...
bailing making it look like the binding isn't working.
2015-06-07 19:10:00 +00:00
okan
ee2e58a8b1
use the same geometry struct in menus as everywhere else
2015-06-05 18:43:36 +00:00
okan
055ed363c8
add a flag to indicate a menu list instead of overloading 'prompt'
2015-06-05 15:01:51 +00:00
okan
3f1203de8a
redundant check for 'list'
2015-06-05 14:54:04 +00:00
okan
ee2e92a9e4
a start to cleaning:
...
- no reason for pointer movement and window movement and resizing
sections that just describe default key bindings
- key bindings are for all search and exec dialogs, not just for windows
- adding missing bindings
- normalize and wordsmith
- re-order sections according to mdoc(7)
feedback and ok from jmc@
2015-05-31 23:07:36 +00:00
okan
d6e84c8298
merge kbd and mouse grouptoggle
2015-05-21 00:37:04 +00:00
okan
2c1757a009
fill in mwm defines
2015-05-20 23:54:39 +00:00
kspillner
7cb74619f1
Fix autogroup so name,class doesn't need to be quoted.
...
ok okan@ on an older version of this diff
2015-05-17 04:39:50 +00:00
kspillner
955b6eef83
Make window name and window class separate parameters to conf_autogroup.
...
No functional change, but will be used shortly.
ok okan@
2015-05-17 04:34:01 +00:00
okan
704330faff
plug a leak
2015-03-29 00:21:05 +00:00
okan
32d16969bc
Introduce a xreallocarray and convert a few xcalloc instances that do
...
not require zero'ing.
2015-03-28 23:12:47 +00:00
okan
d42a248920
Reshuffle and slightly simplify menu_complete_path(), removing an
...
allocation, for tab-completion; checked by Alexander Polakov as well.
2015-03-28 22:09:10 +00:00
okan
f345dc8f9a
plug a leak
2015-03-28 21:55:48 +00:00
okan
da47515de4
Simplify key/mb binding moving argtype into flags and dropping another
...
variable; removes the need to zero out struct binding, leaving a simple
malloc.
2015-03-26 21:41:43 +00:00
okan
99ed76e391
simplify error messages; discussed with doug@
2015-02-14 18:24:12 +00:00
okan
8e6050dcaa
calloc -> malloc
2015-01-24 18:16:59 +00:00
okan
6b49aaeac1
use malloc over calloc here
2015-01-23 20:26:36 +00:00
okan
3d638de617
First restore net_wm_state(ewmh), then wm_state(iccc); prevents clients
...
from re-hiding on restart due to flag toggling (note that this is ripe
for re-vamping). Behavior only observed on restarts.
Problem found by, and initial patch from, Henri Kemppainen (thanks!),
though ever so slightly different one applied.
2015-01-23 19:35:11 +00:00
okan
c199720bcc
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
ef55bfa6b2
Catch up with src parse.y changes by jsg@:
...
Don't allow embedded nul characters in strings.
Fixes a pfctl crash with an anchor name containing
an embedded nul found with the afl fuzzer.
pfctl parse.y patch from and ok deraadt@
2015-01-17 02:05:03 +00:00
okan
7832f8c64d
Add gcc format attributes for yyerror(); fix a few yyerror() calls.
...
Adapted from src parse.y changes by doug@. OK doug@
2015-01-16 18:28:08 +00:00
okan
d796bd3619
no need for calloc(1,.. here, malloc is fine since we initialize
2014-10-08 15:31:01 +00:00
okan
72676125b1
make group_init work like other *_init's
2014-10-08 12:48:51 +00:00
okan
c9178afc38
these have nothing to do with 'sticky', but rather group membership; rename.
2014-09-27 19:04:32 +00:00
okan
7832c14ed0
Pass just the group to group_setactive instead of the screen and an
...
index which then needed to be found in a queue.
2014-09-27 18:57:11 +00:00
okan
9cd0504ba3
Update _NET_CURRENT_DESKTOP with the screen's group_active->num.
2014-09-23 14:25:08 +00:00
okan
b9aa350408
Move stuff that doesn't belong in group_init; while here, explicitly
...
initialize hideall and cycling.
2014-09-23 13:45:48 +00:00
okan
c9ebdf69aa
Move motion time check to the top of each MotionNotify block (and
...
eliminate from ButtonRelease); further limits the amount of work done
outside the threshold, notably mousefunc_sweep_calc,
screen_find_xinerama and client_snapcalc.
2014-09-18 13:56:58 +00:00
okan
1d2cb82cf4
these client actions are just toggles; less confusing with better names
2014-09-17 18:41:44 +00:00
okan
9daa5fe3e6
ewmh states _NET_WM_STATE_STICKY should not alter position
2014-09-17 18:09:30 +00:00
okan
05b4f3491a
Use a similarly named check as sticky for hidden check in a group.
2014-09-17 16:32:53 +00:00
okan
49d0fee8b5
don't toggle _WM_STATE_HIDDEN here yet
2014-09-17 16:30:21 +00:00
okan
8ffcf70d79
Implement EWMH _NET_WM_STATE_HIDDEN.
2014-09-17 16:00:44 +00:00
okan
d4ceb9f4e3
Introduce a check to see if a group holds only 'sticky' clients and use
...
this check to decide if a group is virtually empty. Rationale: if a
group contains *only* 'sticky' clients, it should be skipped while
cycling through groups. Apply similar logic to the group menu.
Based on an idea from phessler@, who also tested another version.
2014-09-17 14:31:37 +00:00