Commit message (Collapse) | Author | Lines | ||
---|---|---|---|---|
2020-03-18 | Unrelated style fixes, consistency changes and sorting, appropriate ↵ | okan | -10/+10 | |
dosage/removal of wrappers, simplification of name queue, client cycle joins other kb/mb bound functions. | ||||
2020-03-18 | Map ('5') and allow mod5mask (altgr) as a modifier. | okan | -2/+2 | |
From Artturi Alm (though changed from 'm' to '5') | ||||
2019-04-29 | Handle _NET_WM_NAME changes. | tim | -2/+3 | |
This fixes the problem where cwm's window menu wouldn't show Firefox's current window title if it contains non-ASCII characters. OK okan@ | ||||
2019-03-11 | Check the atom type on propertynotify before iterating. | okan | -4/+6 | |
2019-03-10 | use screen_find() for xrandr crtc changes | okan | -12/+9 | |
2019-03-10 | Find the managed screen from the parent window for client_current(). | okan | -5/+9 | |
2019-03-08 | Similar to keypress event, fetch the screen from the event root window in the | okan | -7/+5 | |
buttonpress handler; bail if we don't manage the screen. Allows us to find the current client based on the screen/event root. | ||||
2019-03-08 | extend verbose logging for key/button events | okan | -5/+8 | |
2019-03-08 | [keypress event] turns out we've been checking the wrong window for a matching | okan | -7/+8 | |
client thus always falling back to client_current(); while the current client is problaby right in most cases, use event's subwindow (not window) to find the client. Bail early if this event came to us from a screen we don't manage. This is result of us grabing all keybindings off the root window instead of selectively. | ||||
2019-03-08 | add parans for readibility | okan | -5/+5 | |
2019-03-07 | Teach client_current() to use a screen to find the current client instead of | okan | -6/+6 | |
iterating over all (fallback if no screen provided for now). Initially convert trivial uses of client_current(). | ||||
2019-03-06 | same thing as screen_find() | okan | -8/+4 | |
2019-02-28 | Move the group index (desktop number) check to the only 2 callers that require | okan | -3/+7 | |
checking due to ewmh. | ||||
2019-02-22 | Rename internal functions to delinate between client remove, delete and xproto | okan | -4/+4 | |
delete; 'window-close' is now the proper action, but 'window-delete' as an alias will remain until more interesting changes require breaking configs. | ||||
2018-11-13 | Allow 'transientfor' clients to inherit group and bwidth either during init or | okan | -1/+4 | |
via property notify events. Previously only the flags were set but nothing was in the path to apply said flags and/or bwidth. Required slight of re-orgnaization of client_init. | ||||
2018-02-04 | Slightly expand and expose verbose debugging. | okan | -15/+15 | |
2018-02-02 | add debugging for x events | okan | -1/+29 | |
2017-12-29 | As done for buttonrelease, work specific un-cycling and un-highlighting actions | okan | -2/+13 | |
into the keyrelease event, only performing what's actually needed for each; should result in much fewer events against keyreleases. No intended behaviour change. Additionally, like we do for group membership, grab the keyboard only when required for cycling. | ||||
2017-12-29 | Merge group_toggle_membership_leave into the buttonrelease event and only do | okan | -3/+5 | |
border work for a group/ungroup action. | ||||
2017-12-29 | add helper function client_show to bring together like actions for unhide/raise | okan | -5/+2 | |
2017-12-27 | Use poll and XNextEvent to replace XNextEvent blocking inside the x11 event | okan | -6/+8 | |
handler. | ||||
2017-05-09 | drop obsolete comment | okan | -2/+1 | |
2017-05-09 | Alter callbacks to take a struct instead of a growing number of arguments; | okan | -7/+9 | |
greatly simplifies upcoming work. | ||||
2016-10-18 | Refactor callbacks to take a void * so as to not try and generalize into | okan | -20/+32 | |
client_ctx in keypress and buttonpress event handlers; pass appropriate *ctx's based on context. While here, limit some globals, replace defines with appropriate variables and fix some naming. | ||||
2016-10-06 | Add an argument to the callbacks to pass the xevent context, button or | okan | -3/+3 | |
key press. This allows to remove a few hacks to duplicate functions only for behaviour changes; now differing behaviours are pushed down to the callback. Also will allow for previously unavailable actions to be bind-able down the road. | ||||
2016-10-04 | When removing xrandr regions, ensure clients are within the bounds of | okan | -1/+2 | |
the screen; adapted from an ancient diff from Sviatoslav Chagaev. Things in this area will likely change, but put this in so it works now and serves as a reminder. | ||||
2016-10-03 | client_ptrwarp should not deal with unhiding or raising clients (non ptr | okan | -1/+5 | |
requests); most callers do this already - deal with the few that do not. client_ptrwarp becomes a simple wrapper (setpos) but it will be expanded. | ||||
2016-09-16 | During init, query screen for _NET_ACTIVE_WINDOW and set that client as | okan | -2/+2 | |
active; while we already look at what's under the pointer, use this information first, then look under the pointer (saving that round-trip). This restores the active state to a client after restart even if the pointer is not above it (and of course the pointer is not above another client). | ||||
2016-09-14 | Fix-up a few simple uses of client_current(): check CLIENT_ACTIVE flag | okan | -4/+7 | |
instead of relying on curcc. | ||||
2015-11-10 | Start cleaning up name vs function differences; replace magic numbers. | okan | -3/+3 | |
2015-08-27 | Add consistent checks against NULL. | okan | -4/+4 | |
2015-07-01 | style | okan | -2/+2 | |
2015-06-30 | Re-implement XClientMessage handling so that we can feed screen_find and | okan | -39/+43 | |
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-01-19 | Switch to limits.h; replace MAXPATHLEN and MAXHOSTNAMELEN with PATH_MAX | okan | -2/+3 | |
and HOST_NAME_MAX+1, respectively. ok doug@ | ||||
2014-09-27 | these have nothing to do with 'sticky', but rather group membership; rename. | okan | -2/+2 | |
2014-09-15 | use similiar style for client flags | okan | -2/+2 | |
2014-09-07 | screen_fromroot -> screen_find | okan | -5/+5 | |
2014-09-06 | Rework group names: stash the group name inside the group_ctx as opposed | okan | -2/+2 | |
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-02-03 | Move redundant bits from screen_init (while dealing with existing | okan | -2/+2 | |
clients) directly into client_init, performing the X roundtrip only once. With the previous change in maprequest, this moves decision making into one place for creating new clients. | ||||
2014-02-02 | Move redundant window attr fetch from maprequest directly into | okan | -7/+4 | |
client_init and perform that X roundtrip only once. | ||||
2014-01-30 | Move cwm_status around to avoid header fu, and remove extraneous signal | okan | -2/+1 | |
header from xevents.c; noticed by Christian Neukirchen. | ||||
2014-01-29 | Merge keybinding and mousebinding queues into using the same merged | okan | -6/+6 | |
struct, binding; they were essentially the same accept for what was 'pressed', keysym or button. | ||||
2014-01-28 | The EWMH spec states that if the cardinal returned is 0xFFFFFFFF (-1) | okan | -3/+12 | |
then the window should appear on all desktops, which in our case is assigned to group 0. Found to fix stalonetray due to the non-ewmh aware range checking in group_movetogroup(); from Thomas Adam. | ||||
2014-01-22 | Somewhat streamline event loop/restart/quit handling; most notable | okan | -11/+7 | |
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-20 | merge KBFLAG_NEEDCLIENT and MOUSEBIND_CTX_*; brings kbfunc and mousefunc | okan | -4/+4 | |
bits even closer. | ||||
2014-01-03 | use consistent types | okan | -3/+3 | |
2014-01-02 | Accept _NET_CURRENT_DESKTOP ClientMessage; from Thomas Adam, though | okan | -2/+8 | |
instead of group toggle, group only. | ||||
2014-01-02 | Accept _NET_WM_DESKTOP clientmessage; from Thomas Adam | okan | -1/+5 | |
2014-01-02 | bring mousefunc closer to kbfunc | okan | -2/+2 | |
2013-12-13 | stray space and sort while here | okan | -5/+4 | |