dabc05034f
try to clarify xprop(1) output, with respect to WM_CLASS, without going overboard; suggested idea by jmc
okan
2012-11-01 01:10:47 +00:00
620af2e52d
no longer a reason to carry conf_path in struct conf, so dice.
okan
2012-10-31 22:06:24 +00:00
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.
okan
2012-10-31 19:30:19 +00:00
c256052308
on reload, run each client through conf_client to pick up potential ignore and bwidth changes; also add a hack for existing maximized windows so they don't inherit a new bwidth.
okan
2012-10-29 19:46:03 +00:00
56358be755
clarify autogroup option; based on diffs from kspillner@acm.org with feedback from jmc
okan
2012-10-28 20:13:02 +00:00
742bcec522
comment what this whole bit does, not just part of it.
okan
2012-10-23 16:13:59 +00:00
710347df1b
add a height to struct menu and use it in the most obvious of places.
okan
2012-10-23 16:08:59 +00:00
637c52abf8
treat menu width the same as the height is treated when deciding its max size and location; partially from a diff from Alexander Polakov.
okan
2012-10-23 15:50:15 +00:00
c21d56e5a1
Stop drawing when menu doesn't fit inside the screen; picked from a larger diff from Alexander Polakov.
okan
2012-10-23 15:32:38 +00:00
871fdf5671
revert previous for now until a way to test more than a few encodings is found
okan
2012-09-12 15:09:33 +00:00
637edf38d5
be explicit in which key masks we allow during keypress and buttonpress events; from Alexander Polakov - makes non-us layout reliable.
okan
2012-09-10 13:28:04 +00:00
3a45879d76
replace with xu_getprop wrapper used everywhere else.
okan
2012-09-09 20:52:57 +00:00
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.
okan
2012-09-09 19:47:47 +00:00
013497c79c
Further simplify Xinerama init and re-init on XRR events.
okan
2012-07-18 21:53:22 +00:00
3f956098d9
unify various max routines to match client placement and partially menu ones when calculating screen dimensions.
okan
2012-07-16 01:53:14 +00:00
57af364a21
check value
okan
2012-07-16 01:42:00 +00:00
e42d1c7f01
move the HasXinerama check into screen_find_xinerama and simplify logic; moves closer to logic in menu code.
okan
2012-07-16 01:36:30 +00:00
cc08aef0df
introduce screen "view" area and "work" area (gap applied) to simplify various blocks that require understanding the screen geometry.
okan
2012-07-13 14:18:04 +00:00
2450e309ea
fix atom for setting WM_STATE.
okan
2012-07-08 02:55:01 +00:00
6faef40c55
fix atom for retrieving WM_STATE between re-exec's.
okan
2012-07-08 02:50:41 +00:00
c8a17ef536
remove a redundant assignment and another one up.
okan
2012-07-08 01:00:24 +00:00
cb893d0aa9
querying for Xinerama should be done per display, not per screen, so move chuck to display init; allows some shuffling to occur limiting screen_init_xinerama()'s scope while keeping order intact.
okan
2012-07-06 14:18:00 +00:00
315f25f7ab
Add a couple examples of keybindings using keysyms, as discussed with okan@ and sthen@.
dcoppa
2012-07-06 08:41:29 +00:00
1124ee5cc1
the display's width and height are updated after an XRandR event so we don't need to pass down the new values to screen_update_geometry(); so just read the width/height values directly for both uses of screen_update_geometry(). prep for further changes in this area.
okan
2012-07-05 17:35:13 +00:00
287a5b2aad
assign and use screen ctx where appropriate and consistently.
okan
2012-07-04 23:42:03 +00:00
3681b26914
use the screen ctx since we already have it assigned.
okan
2012-07-04 18:07:12 +00:00
8c7964468f
fix missing atom (WM_PROTOCOLS) wrt new style handing; without this, the window manager didn't know if a client supported CLIENT_PROTO_DELETE and thus used a hammer, XKillClient.
okan
2012-07-04 18:00:13 +00:00
f98e123bfc
re-implement atom handing; makes for a normalized and more consistent separation between cwm and ewmh. seen by a few.
okan
2012-07-03 13:49:03 +00:00
8f587e6c80
cvsimport
Christian Neukirchen
2012-05-20 15:27:16 +02:00
956c47dbeb
get rid of more stray lines/spaces
okan
2012-05-16 21:57:21 +00:00
490ef6a7df
instead of using the menu window for _NET_SUPPORTING_WM_CHECK, create a dummy one to use instead; allows us to not have to wait for menu_init(), so re-shuffle _NET_SUPPORTED slightly.
okan
2012-05-16 01:17:14 +00:00
ac82403a51
cycle through other common cycling modifiers; based on a diff from Alexander Polakov.
okan
2012-05-16 01:09:17 +00:00
dd5bfdb064
convert from deprecated XKeycodeToKeysym to XkbKeycodeToKeysym
okan
2012-05-16 01:04:36 +00:00
57766d8606
altpersist->cycling to be more clear that this is for cycling mod persistence; based on a diff from Alexander Polakov, in preparation for looping through other potential cycling modifiers.
okan
2012-05-13 15:17:13 +00:00
fb4936d0f7
knf, some from a diff from Tiago Cunha.
okan
2012-05-13 15:15:54 +00:00
63b59e44c1
wrap long lines; from Tiago Cunha.
okan
2012-05-10 00:39:47 +00:00
1d8839e8ad
fix section order: move AUTHORS below HISTORY; from Tiago Cunha
okan
2012-05-09 18:37:39 +00:00
fd9b83a232
check if we're in the group already, else multiple calls to group_movetogroup() on one client will still increment nhidden if the group is hidden.
okan
2011-12-29 20:48:38 +00:00
96ebac8b04
fix pkg-config packages
Christian Neukirchen
2011-12-12 16:17:39 +01:00
ba3dfcf7bd
move client to group (movetogroup) and hide client only if group is already hidden (suggested behavior from Alexander Polakov).
okan
2011-09-19 07:23:03 +00:00
22f366830e
fix spelling I keep getting wrong for some unknown reason; found by and diff from Alexander Polakov.
okan
2011-09-13 09:17:30 +00:00
796b32123d
add WM_TRANSIENT_FOR event support: moves dialogs, toolbars and such to the group of the main application window; based on a diff from Alexander Polakov with CLIENT_IGNORE flag suggestion from oga@.
okan
2011-09-13 08:41:57 +00:00
b96caa16e6
repair groupcycle (broke after cycle-in-group support added more flags); found by and fix from Thomas Pfaff.
okan
2011-09-13 08:37:49 +00:00
82d31aec1d
allow configurable menu font color; from Alexander Polakov with a tweak from me.
okan
2011-09-08 12:35:33 +00:00
a262f8e80c
allow menufg/menubg to be configurable; from Alexander Polakov.
okan
2011-09-08 12:07:03 +00:00
840323558d
reinit menu on reload; from Alexander Polakov. needed for catching upcoming menu config changes.
okan
2011-09-08 12:00:49 +00:00
d85b3adc0c
restore a comment and add another for clarity.
okan
2011-09-05 07:37:55 +00:00
44d8b1d3ac
Make flavours of maximisation additive.
oga
2011-09-04 16:59:31 +00:00
b852a73a60
split off window hints from geometry so we don't need to carry them all around when dealing with {,h,v}max. same idea from oga.
okan
2011-09-03 09:42:33 +00:00
325129c6ba
simplify color initialization.
okan
2011-09-03 09:25:39 +00:00
142a36a0c0
Add {r,}cycleingroup to cycle through clients belonging to the same group as the active client (as opposed to all unhidden clients); from Alexander Polakov, with a tiny tweak requested by oga.
okan
2011-09-03 09:20:58 +00:00
b51f8e6a99
"defaultfont" is unclear (and confusing while reading code) when it also applies to the user supplied font, so rename.
okan
2011-09-03 09:17:16 +00:00
a4683b55f8
zap unused macro. ok oga@
okan
2011-08-29 09:10:49 +00:00
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.
okan
2011-08-29 09:09:45 +00:00
be3b8a0748
A while ago I wrote some code to not warp to ignored windows on map (rev 1.52), not realising that the previous (less efficient) fix had already been commited (rev 1.50).
oga
2011-08-22 16:34:34 +00:00
2dc8df110c
revert r1.11 of parse.y and create logic in conf_setup instead to deal with the various scenarios of when to attempt a parse of the config, load defaults, and when to warn and/or exit. triggered by bogus warning first noticed by sobrado@.
okan
2011-08-22 16:18:05 +00:00
513c35dca9
cvsimport
Christian Neukirchen
2011-08-04 20:53:37 +02:00
912dd46a7e
Re-draw borders after reloading, not before; from Alexander Polakov.
okan
2011-07-26 08:51:24 +00:00
30dbdf4178
use the menu border; from Alexander Polakov, but with the existing define.
okan
2011-07-25 15:41:05 +00:00
f51f3cb9c2
We are inconsistent when it comes to function returns, so just go all the way with the cwm specific parts.
okan
2011-07-25 15:10:24 +00:00
69ac0624cc
Clarify defines and make them not look like non-local ones; started by a small diff from Thomas Pfaff.
okan
2011-07-23 13:09:11 +00:00
c585dfbf32
correct spelling; from Alexander Polakov.
okan
2011-07-14 11:39:53 +00:00
3db2d84fa8
UTF8-ify, from Alexander Polakov, but without setlocale(), after feedback from stsp@ - thanks!
okan
2011-06-27 12:46:54 +00:00
bcf90f5f34
warn if we can't parse the config file on start, just like we do on reload.
okan
2011-06-25 13:37:05 +00:00
0573d184f7
Since cwm(1) uses the same parser as others in src, document how comments and line extensions work. Taken from sthen@'s recent commit in src.
okan
2011-06-25 13:12:56 +00:00
d8747ae702
add 'normal' cursor and shuffle the others we use to make a bit more sense and to be slightly less un-expected. from Alexander Polakov. re-use 'normal' cursor now instead XC_hand1 for menu selection. i really wish X had real docs and made sense.
okan
2011-06-24 06:52:23 +00:00
8f1c583361
New option to raise a client via the mouse (unbound by default); opposing action, lower, already exists and bound. Both keyboard mappings already exist.
okan
2011-06-24 06:09:26 +00:00
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.
okan
2011-06-24 06:06:24 +00:00
b230e611be
re-do various bits of {,h,v}max for simplicity and less flag handling. as a bonus, flipping between various combinations of vmax+hmax provides a more predictable behavior.
okan
2011-06-24 06:01:47 +00:00