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
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
okan
57ff8d4658
name the group client queue appropriately, like other queues
2014-09-08 21:15:14 +00:00
okan
0fefd96f3e
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
898bea2d90
Now that a group knows its screen, only pass down the group_ctx.
2014-09-08 13:51:29 +00:00
okan
4abab66820
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
bef5d30e83
bring menu bits closer together
2014-09-02 14:08:39 +00:00
okan
1150bfd22b
add explicit paran and drop some empty lines bringing like functions closer
2014-09-01 18:17:32 +00:00
okan
de52ddf635
Merge group_menu into mousefunc_menu_group.
2014-09-01 18:04:58 +00:00
okan
9567454909
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
b7cd8019f2
Purely mechanical; unify 'num', 'no' and 'shortcut'.
2014-08-20 15:15:29 +00:00
okan
92bf6935f5
all mapped clients now should have a group, so simplify some cases
2014-02-07 21:59:56 +00:00
okan
06d9319772
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
d5979e3ab6
Minimize trivial differences between a few kb and mb functions.
2014-01-29 22:30:00 +00:00
okan
42e2d07b2b
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
9a540a7adb
constify and rename some confusing variables around cmdq.
2014-01-20 21:34:32 +00:00
okan
83b0cbf116
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
24e4f6a4b6
bring mousefunc closer to kbfunc
2014-01-02 21:30:20 +00:00
okan
4104232e02
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
5671dd5497
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
okan
baac27374e
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
a6e6db763a
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
d7f3078e8e
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
a287dfc793
like gap, make snapdist per screen
2013-11-27 18:34:34 +00:00
okan
a09ca80c45
simplify/unfold
2013-11-27 14:20:32 +00:00
okan
70cf49457d
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
0cd6dbc0fc
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
c2e750f350
add support for mouse based group {,r}cycle; from Rodrigo Mosconi. not
...
bound by default.
2013-07-08 18:39:20 +00:00
okan
ad88124f83
move kbfunc and mousefunc closer together
2013-07-08 18:19:22 +00:00
okan
537fe7febb
move Cursors into conf.
2013-06-17 17:11:10 +00:00
okan
bd38e60d03
- configure menuwin with the screen, then create the xft drawable using
...
the menu window since that's the only place on which we draw
- elminate the need to change the drawable on every font draw
2013-05-20 20:21:04 +00:00
okan
ce73dfea93
move the 2 small font helper functions to xutil.c
2013-05-19 23:38:20 +00:00
okan
7f75636e2f
- let callers of font_draw figure out (and pass) the color instead of an
...
'active' flag.
- use strlen() inside of font_draw; the only instance where it wasn't
used happened to be ignored on a subsequent draw.
2013-05-14 12:35:56 +00:00
okan
ed8f41814a
get rid of cc->name in the resize box and make dimensions more readable.
2013-05-02 19:33:17 +00:00
okan
5e2856ce65
only redraw the name/size box when the client resizes, not every time
...
there's movement; should slightly help with resize syncs.
2013-05-02 19:30:10 +00:00
okan
f0a6447140
no need for font_{ascent,descent,height} wrappers; limit font_width to
...
just requiring xftfont.
2013-05-02 17:25:15 +00:00
okan
a1a6245df6
plug memleak; always need to menuq_clear even when a selection is made.
2013-04-08 15:43:04 +00:00
okan
a395df4a8f
consistency
2013-04-08 13:02:31 +00:00
okan
07daaf479c
pass the screen workarea, as opposed to viewarea, allowing client
...
snapping to honor gap.
2013-01-02 21:41:14 +00:00
okan
7fa6ca94df
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
1c7a3484bf
create and use menuq_clear() helper; from Tiago Cunha
2012-12-17 14:32:39 +00:00
okan
52982ae188
non-trivial menu drawing rewrite, moving to Xft and solving various
...
font/color drawing issues; from Alexander Polakov
2012-12-17 02:28:45 +00:00
okan
4f78cb6835
sort
2012-11-09 03:52:02 +00:00
okan
1e3fec4362
get rid of the xfree() wrapper around free(); from Tiago Cunha.
2012-11-07 20:34:39 +00:00
okan
ab1deebeda
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
94b92cf7fb
re-use geom struct in client_ctx (saved)geometry.
2012-07-13 17:01:04 +00:00
okan
6ee7c6534f
convert xmax/ymax uses to view geometry.
2012-07-13 15:21:35 +00:00
okan
e52aef56f0
assign and use screen ctx where appropriate and consistently.
2012-07-04 23:42:03 +00:00
okan
6f33ccac59
rename variable to reduce potential for name-space collision.
...
bikesheding and ok oga@.
2011-10-17 18:18:38 +00:00