Commit message (Collapse) | Author | Age | Lines | ||
---|---|---|---|---|---|
... | |||||
* | The EWMH spec states that if the cardinal returned is 0xFFFFFFFF (-1) | okan | 2014-01-28 | -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. | ||||
* | Move conf_init/clear into main - no behaviour change; from Tiago Cunha. | okan | 2014-01-28 | -9/+7 | |
| | |||||
* | move some init up and shed some blank lines | okan | 2014-01-27 | -8/+5 | |
| | |||||
* | simplify parse_config using assignment; inspired by a very old diff from | okan | 2014-01-27 | -58/+3 | |
| | | | | Tiago Cunha. | ||||
* | more range checking | okan | 2014-01-24 | -5/+8 | |
| | |||||
* | correct arguments and drop the cast. | okan | 2014-01-24 | -2/+2 | |
| | | | | sanity check by oga@nicotinebsd | ||||
* | no need to quote within warning | okan | 2014-01-23 | -3/+3 | |
| | |||||
* | If no title is supplied, term uses only the basename for its title. | okan | 2014-01-23 | -3/+3 | |
| | | | | | | | This is useless when searching for windows launched via the ssh command menu; supply a more useful title: '[ssh] <hostname>'. Idea from todd@, ok todd@ | ||||
* | zap whitespace | okan | 2014-01-22 | -26/+26 | |
| | |||||
* | cwm_argv doesn't need to be global any longer | okan | 2014-01-22 | -6/+6 | |
| | |||||
* | start properly releasing X resources during teardown | okan | 2014-01-22 | -1/+20 | |
| | |||||
* | Somewhat streamline event loop/restart/quit handling; most notable | okan | 2014-01-22 | -33/+36 | |
| | | | | | | | | 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. | ||||
* | Sprinkle a few more const; from Tiago Cunha. | okan | 2014-01-21 | -22/+23 | |
| | |||||
* | Save the ptr position before lowering via kbd, so as to be able to cycle | okan | 2014-01-20 | -1/+2 | |
| | | | | | back with the pointer in the right place; matches behaviour when lowering via the mouse function. | ||||
* | merge KBFLAG_NEEDCLIENT and MOUSEBIND_CTX_*; brings kbfunc and mousefunc | okan | 2014-01-20 | -77/+61 | |
| | | | | bits even closer. | ||||
* | Use argument to pass down flags for mousefunc cyclegroup; removes | okan | 2014-01-20 | -15/+8 | |
| | | | | rcyclegroup wrapper need - now similar to kbfunc. | ||||
* | constify and rename some confusing variables around cmdq. | okan | 2014-01-20 | -25/+26 | |
| | |||||
* | - remove redundant range check for buttons in conf_bind_mouse. | okan | 2014-01-20 | -67/+64 | |
| | | | | | | | | | - make conf_bind_kbd return error on non-matches to match what conf_bind_mouse does. - rename some variables while here for clarity. - constify bind and cmd. from Tiago Cunha. | ||||
* | Add a function that adds an entry to a menuq, normalizing a common code | okan | 2014-01-20 | -55/+40 | |
| | | | | path; from Tiago Cunha. | ||||
* | use consistent types | okan | 2014-01-03 | -52/+52 | |
| | |||||
* | state is long | okan | 2014-01-03 | -2/+2 | |
| | |||||
* | calculate proper menu width/height on the first Expose event; 'jump' (while ↵ | okan | 2014-01-02 | -3/+3 | |
| | | | | using gap) noticed by Christian Neukirchen | ||||
* | Accept _NET_CURRENT_DESKTOP ClientMessage; from Thomas Adam, though | okan | 2014-01-02 | -2/+8 | |
| | | | | instead of group toggle, group only. | ||||
* | Accept _NET_WM_DESKTOP clientmessage; from Thomas Adam | okan | 2014-01-02 | -1/+5 | |
| | |||||
* | bring mousefunc closer to kbfunc | okan | 2014-01-02 | -42/+52 | |
| | |||||
* | gc keycode in keybinding since we only deal with keysym now | okan | 2014-01-02 | -2/+1 | |
| | |||||
* | rename for clarity | okan | 2014-01-02 | -5/+5 | |
| | |||||
* | When a client doesn't specify size hints, nothing prevents a resize to | okan | 2014-01-02 | -1/+4 | |
| | | | | | | | 0x0 - don't allow this situation during mouse resize (check already in place for kbd resize). Reported by brynet@ | ||||
* | missing stdarg.h include | okan | 2013-12-17 | -1/+2 | |
| | |||||
* | replace with memset | okan | 2013-12-17 | -9/+9 | |
| | |||||
* | Implement support for EWMH's _NET_WM_STATE_FULLSCREEN hint. | okan | 2013-12-16 | -43/+85 | |
| | | | | | | | | | | | | | | | | Since we already have a form of 'maximize', we need to differentiate between 'maximize' and the new 'fullscreen' mode. The 'maximize' mode will continue to honor gap but now *retains* the border, matching the 'vert/horz maximize' behaviour. The new 'fullscreen' mode supports and follows the _NET_WM_STATE_FULLSCREEN hint, allowing the client perform additional window modifications; in this mode, cwm(1) will *ignore* gap, remove borders and freeze(move/resize) the client. Additionally, 'fullscreen' mode will remember various combinations of previous states. * default keybinding changes: CM-f 'fullscreen', CM-m 'maximize' (re-map as desired). Positive feedback from a few, testing and ok sthen@ | ||||
* | Teach screen_find_xinerama() to apply gap only when told to do so; | okan | 2013-12-13 | -21/+31 | |
| | | | | adjust callers. Needed for an upcoming feature. | ||||
* | Instead of using work area, use the Xinerama area for snap calculations; | okan | 2013-12-13 | -6/+14 | |
| | | | | based on a patch from Thomas Adam with appropriate adjustments for gap. | ||||
* | we need the save-set when re-exec'ing so as to not lose State on our hidden ↵ | okan | 2013-12-13 | -1/+3 | |
| | | | | clients | ||||
* | stray space and sort while here | okan | 2013-12-13 | -5/+4 | |
| | |||||
* | Add support for XUrgency and matching _NET_WM_STATE_DEMANDS_ATTENTION | okan | 2013-12-13 | -11/+47 | |
| | | | | | | | ewmh hint; urgencyborder is configurable. The urgency flag will stick, even while on a client in a non-viewable group, until the client receives focus (where the border is reset). Initial diff from Thomas Adam with some changes/enhancements from me. | ||||
* | Make sure we really take work area gap into account with snap calculations; | okan | 2013-12-12 | -6/+6 | |
| | | | | from Dominik Honnef via Christian Neukirchen. | ||||
* | ICCCM explicitly states that server time (CurrentTime) should *not* be | okan | 2013-12-12 | -9/+16 | |
| | | | | | | | | | | | used for focus events, but rather the timestamp of the generated event. Track the last event timestamp and send it down for a WM_TAKE_FOCUS ClientMessage. I suspect we should do this for clients that don't announce this Atom as well, though the raciness gets us into a bind. Solves focus order issue since WM_TAKE_FOCUS; fix verified by sthen@ ok sthen@ | ||||
* | we don't need to manage the save-set since we're not reparenting; left-over ↵ | okan | 2013-12-11 | -3/+1 | |
| | | | | from pwin | ||||
* | since we are drawing in unhide, no need to during client setup | okan | 2013-12-11 | -2/+1 | |
| | |||||
* | apply mwm hints later | okan | 2013-12-11 | -4/+4 | |
| | |||||
* | Add client wrapper for XWMHints to support XA_WM_HINTS in PropertyNotify | okan | 2013-12-11 | -10/+18 | |
| | | | | events; based off a diff from Thomas Adam. | ||||
* | Remove extra work and simplify client state handling. | okan | 2013-12-11 | -49/+41 | |
| | |||||
* | Stash Class and WM Hints in client_ctx | okan | 2013-12-11 | -32/+27 | |
| | |||||
* | Redraw client border when unhiding; during a hide, we just unset | okan | 2013-12-10 | -1/+2 | |
| | | | | | | the active flag but never redraw since it'll be in IconicState. Behaviour reported by sthen@ | ||||
* | If not using sticky mode (the default), clients aren't automagically | okan | 2013-12-08 | -5/+5 | |
| | | | | | assigned a group, thus cc->group will be NULL - fix the client group shortcut in menu lists; crash reported by Christian Neukirchen. | ||||
* | When we receive a NotionNotify event, there's no need to (incorrectly | okan | 2013-12-02 | -4/+1 | |
| | | | | might I add) redraw the top menu selection. | ||||
* | Always highlight the first menu item (helpful to see selected items when | okan | 2013-12-02 | -5/+3 | |
| | | | | | not using a mouse and therefore not generating Expose/MotionNotify events); from Thomas Adam. | ||||
* | Prepend the group shortcut in the client search menu; from Thomas Adam. | okan | 2013-12-02 | -5/+6 | |
| | | | | Likewise, prepend shortcut in unhide menu. | ||||
* | Since we use IconicState as our hidden state, check for the hidden flag | okan | 2013-12-02 | -3/+5 | |
| | | | | | | | | and unmanage the client if we're not hidden (basically if NormalState) during an UnmapNotify event. Resolves an issue with mplayer going fullscreen while not using NetWM hints; behaviour regression reported by Ido Admon. |