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
cbc7f76074
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
458dd31b93
ewmh states _NET_WM_STATE_STICKY should not alter position
2014-09-17 18:09:30 +00:00
okan
736d973f46
Use a similarly named check as sticky for hidden check in a group.
2014-09-17 16:32:53 +00:00
okan
74f4a1bad9
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
okan
aac16013d2
name the group client queue appropriately, like other queues
2014-09-08 21:15:14 +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
okan
a7f3f29ea9
Now that a group knows its screen, only pass down the group_ctx.
2014-09-08 13:51:29 +00:00
Christian Neukirchen
9e560bd745
cvsimport
2014-09-07 15:47:44 +00:00
okan
142f52a0aa
Rework group names: stash the group name inside the group_ctx as opposed
...
to having to manage an array outside in screen_ctx for group names and
shortcuts. Simplifies (and moves bits for) reading, and constructing
data for, EWMH's _NET_DESKTOP_NAMES.
2014-09-06 16:08:58 +00:00
okan
87d604f119
bring menu bits closer together
2014-09-02 14:08:39 +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
becc7f260c
Merge group_menu into mousefunc_menu_group.
2014-09-01 18:04:58 +00:00
okan
fe533fdc8e
Fix nogroup regression, where nogroup became an actual group - the
...
symantics between cwm groups and ewmh got in the way. Ensure a client
that wants to be in nogroup stays in nogroup (thus stays in view), even
when (re)reading NET_WM_DESKTOP. Paritially reverts patchset 644
(2014-02-07 13:09 PST) which deals with a NULL cc->group. All to be
revisited when NET_WM_STATE_STICKY hits cwm.
Reported by many; testing and ok phessler.
2014-08-22 19:04:00 +00:00
okan
b31b09dfc2
Purely mechanical; unify 'num', 'no' and 'shortcut'.
2014-08-20 15:15:29 +00:00
okan
8ddc90665e
cvsimport
2014-02-08 02:49:30 +00:00
okan
2a87320bbf
all mapped clients now should have a group, so simplify some cases
2014-02-07 21:59:56 +00:00
okan
24f9bfb3ec
cvsimport
2014-01-30 22:41:16 +00:00
okan
7b5b7cc9e9
Remove duplicate mouse functions and instead use the kbfunc ones. No
...
user visable changes at this point, but they'll merge at an appropriate
time.
2014-01-30 14:40:21 +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
371902b3c9
cvsimport
2014-01-21 15:42:44 +00:00
okan
34f43e3f2d
Use argument to pass down flags for mousefunc cyclegroup; removes
...
rcyclegroup wrapper need - now similar to kbfunc.
2014-01-20 22:31:53 +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
f4c289b9e6
cvsimport
2014-01-03 14:23:50 +00:00
okan
10d4dcb127
bring mousefunc closer to kbfunc
2014-01-02 21:30:20 +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
2951979832
cvsimport
2013-12-08 13:51:38 +00:00
okan
7fad5224d4
If not using sticky mode (the default), clients aren't automagically
...
assigned a group, thus cc->group will be NULL - fix the client group
shortcut in menu lists; crash reported by Christian Neukirchen.
2013-12-08 13:51:38 +00:00
okan
873763f4c6
cvsimport
2013-12-02 20:01:19 +00:00
okan
d1b232fe81
Prepend the group shortcut in the client search menu; from Thomas Adam.
...
Likewise, prepend shortcut in unhide menu.
2013-12-02 19:30:27 +00:00
okan
5e67a12262
like gap, make snapdist per screen
2013-11-27 18:34:34 +00:00
okan
250f98bf15
simplify/unfold
2013-11-27 14:20:32 +00:00
okan
0c99788f66
cvsimport
2013-10-25 19:46:16 +00:00
okan
083a023f2c
I believe we redraw the border in too many cases; likely a leftover from
...
the cc->pwin days - don't redraw on every unhide, resize, and mouse
move/resize Expose event (note, all Expose events trigger a redraw
anyway).
Tested with some finicky X apps I could think of, though I'm sure others
will find more - if so, and they 'lose' the border, please report!
2013-10-19 18:59:22 +00:00
okan
93bfc4a5c1
cvsimport
2013-07-10 14:15:58 +00:00
okan
dd10412804
since the root and event window are the same in the case of a button
...
event on the screen's root window, there's no need to pass down the
entire XButtonEvent event, at least to group_menu(), the only callback
which takes an argument at this point; instead use the already populated
screen.
2013-07-09 01:24:49 +00:00
okan
9bf2498d7e
add support for mouse based group {,r}cycle; from Rodrigo Mosconi. not
...
bound by default.
2013-07-08 18:39:20 +00:00
okan
1f244fe29c
move kbfunc and mousefunc closer together
2013-07-08 18:19:22 +00:00
okan
9a12ca3520
cvsimport
2013-06-20 02:33:57 +00:00
okan
234b8214df
move Cursors into conf.
2013-06-17 17:11:10 +00:00