Commit Graph

  • 2843ba1e28 calculate proper menu width/height on the first Expose event; 'jump' (while using gap) noticed by Christian Neukirchen okan 2014-01-02 22:49:10 +0000
  • 376e98c2c8 Accept _NET_CURRENT_DESKTOP ClientMessage; from Thomas Adam, though instead of group toggle, group only. okan 2014-01-02 22:43:55 +0000
  • 5a5e7441e1 Accept _NET_WM_DESKTOP clientmessage; from Thomas Adam okan 2014-01-02 22:26:27 +0000
  • 10d4dcb127 bring mousefunc closer to kbfunc okan 2014-01-02 21:30:20 +0000
  • c4f6134ebe gc keycode in keybinding since we only deal with keysym now okan 2014-01-02 21:17:23 +0000
  • 8420398068 rename for clarity okan 2014-01-02 21:15:39 +0000
  • 46b1d6ef1e When a client doesn't specify size hints, nothing prevents a resize to 0x0 - don't allow this situation during mouse resize (check already in place for kbd resize). okan 2014-01-02 20:58:20 +0000
  • b387351df1 cvsimport okan 2013-12-17 16:12:18 +0000
  • 291e0dc088 add update.sh which I use for importing from CVS Christian Neukirchen 2013-12-17 18:34:04 +0100
  • 9b8dc1ba7f missing stdarg.h include okan 2013-12-17 16:12:18 +0000
  • da2bea3ffa replace with memset okan 2013-12-17 16:10:43 +0000
  • 44e2a2505b cvsimport okan 2013-12-16 19:02:17 +0000
  • 19fc7f666b Implement support for EWMH's _NET_WM_STATE_FULLSCREEN hint. okan 2013-12-16 19:02:17 +0000
  • 75b69c0b04 cvsimport okan 2013-12-13 22:39:13 +0000
  • f98f4615c0 Teach screen_find_xinerama() to apply gap only when told to do so; adjust callers. Needed for an upcoming feature. okan 2013-12-13 22:39:13 +0000
  • 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. okan 2013-12-13 21:51:56 +0000
  • ddb67559f6 cvsimport okan 2013-12-13 15:56:44 +0000
  • 91a29396e8 we need the save-set when re-exec'ing so as to not lose State on our hidden clients okan 2013-12-13 15:56:44 +0000
  • 40858be0ae stray space and sort while here okan 2013-12-13 14:45:47 +0000
  • 34ae428cec Add support for XUrgency and matching _NET_WM_STATE_DEMANDS_ATTENTION 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. okan 2013-12-13 14:40:52 +0000
  • 0cad4ef6e0 cvsimport Christian Neukirchen 2013-12-13 12:57:57 +0000
  • fe177b7c61 Make sure we really take work area gap into account with snap calculations; from Dominik Honnef via Christian Neukirchen. okan 2013-12-12 21:50:50 +0000
  • b276a2ef00 ICCCM explicitly states that server time (CurrentTime) should *not* be 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. okan 2013-12-12 20:15:07 +0000
  • 140028e905 cvsimport okan 2013-12-11 22:14:23 +0000
  • e767ac9c65 we don't need to manage the save-set since we're not reparenting; left-over from pwin okan 2013-12-11 22:14:23 +0000
  • 09e07ddaaf since we are drawing in unhide, no need to during client setup okan 2013-12-11 17:23:31 +0000
  • 68f365cddb apply mwm hints later okan 2013-12-11 15:46:47 +0000
  • 7e0749b0b1 Add client wrapper for XWMHints to support XA_WM_HINTS in PropertyNotify events; based off a diff from Thomas Adam. okan 2013-12-11 15:41:11 +0000
  • 0d9b1becff Remove extra work and simplify client state handling. okan 2013-12-11 14:16:09 +0000
  • 23a1abdd8a Stash Class and WM Hints in client_ctx okan 2013-12-11 14:09:21 +0000
  • 1d68f0683a Redraw client border when unhiding; during a hide, we just unset the active flag but never redraw since it'll be in IconicState. okan 2013-12-10 21:27:37 +0000
  • 937ee7b9ed Merge 8ae4b75da9 into 2951979832 Michael Weber 2013-12-09 02:11:58 -0800
  • 8ae4b75da9 Merge branch 'linux' of git://github.com/chneukirchen/cwm into linux Michael Weber 2013-12-09 11:10:31 +0100
  • 2951979832 cvsimport okan 2013-12-08 13:51:38 +0000
  • 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. okan 2013-12-08 13:51:38 +0000
  • 27513daee2 Revert "use u_char for buffers in yylex" Christian Neukirchen 2013-12-06 23:16:54 +0100
  • 873763f4c6 cvsimport okan 2013-12-02 20:01:19 +0000
  • 5dc65d9242 When we receive a NotionNotify event, there's no need to (incorrectly might I add) redraw the top menu selection. okan 2013-12-02 20:01:19 +0000
  • 161ed1801a Always highlight the first menu item (helpful to see selected items when not using a mouse and therefore not generating Expose/MotionNotify events); from Thomas Adam. okan 2013-12-02 19:49:26 +0000
  • d1b232fe81 Prepend the group shortcut in the client search menu; from Thomas Adam. Likewise, prepend shortcut in unhide menu. okan 2013-12-02 19:30:27 +0000
  • 6b72168d92 Since we use IconicState as our hidden state, check for the hidden flag and unmanage the client if we're not hidden (basically if NormalState) during an UnmapNotify event. okan 2013-12-02 14:30:12 +0000
  • 5e67a12262 like gap, make snapdist per screen okan 2013-11-27 18:34:34 +0000
  • 1b6ef8e9ed alter -r1.145 getsizehints to deal with clients that don't have WM_NORMAL_HINTS. okan 2013-11-27 17:04:35 +0000
  • abf52049b9 Remove the option to bind a key by keycode with brackets; it never worked (and no one complained!). While it's fairly easy to fix, users should be using keysym names and not keycodes. okan 2013-11-27 16:24:17 +0000
  • 250f98bf15 simplify/unfold okan 2013-11-27 14:20:32 +0000
  • fa25915a75 Rewrite active/inactive client handling in client_setactive(); client_leave() served no real purpose, likewise no reason to handle LeaveNotify events since an EnterNotify will process the next active client (and we don't have anything important to process anyway), so xev_handle_leavenotify() goes as well. Allows a simplification of client_mtf() and client_cycle_leave() for clarity. While here, unify a few client_current() checks. okan 2013-11-27 00:01:23 +0000
  • 03b19f1487 Log message: use u_char for buffers in yylex, for ctype calls, as done in all other parse.y in the tree found by millert@, ok okan@ benno 2013-11-25 18:21:55 +0000
  • d14d617434 Merge branch 'linux' of git://github.com/chneukirchen/cwm into linux Michael Weber 2013-11-18 17:08:12 +0100
  • 01625f7689 Merge branch 'linux' of git://github.com/chneukirchen/cwm into linux Michael Weber 2013-11-18 17:02:27 +0100
  • 3c78191e2e cvsimport okan 2013-11-12 21:25:00 +0000
  • 2937b2066f Alter the r1.35 of event.c race fix. Remove the forward looking event queue check (removing the need for a server grab/ungrab) - if the client is going away, let it fall all the way through to a DestroyNotify event. There's no longer a need for us to manually destroy a client ourselves (removing yet another server grab/ungrab). Instead, when the UnmapNotify event is synthetic, simply set the state to Withdrawn (as per ICCCM), else Iconic (in our case 'hidden'). okan 2013-11-12 21:25:00 +0000
  • bda68b0924 Put back the border draw call in client_resize; since we are adding and removing the border on maximized clients we need to redraw. okan 2013-11-11 12:51:15 +0000
  • 3bb928a1c2 stash WMProtocols in flags okan 2013-11-08 17:35:12 +0000
  • c1bc6d37b3 quick keyboard focus fix for clients that neither populate wmhints nor wmprotocols, like rdesktop; focus needs to be re-visited okan 2013-11-05 00:55:42 +0000
  • 2037332bb7 cvsimport okan 2013-11-02 19:13:56 +0000
  • b5915eb989 The only reason we need to keep XSizeHints in our client_ctx is for flags, so just add one to hints; consolidates sizehints and shrinks. Additionally don't abuse PSize for XGetWMNormalHints() failures. okan 2013-11-02 19:13:56 +0000
  • b8f53666bd x/y from XSizeHints are obsolete (and have been for a long time), so instead use x/y from XWindowAttributes when USPosition|PPosition are set. okan 2013-11-01 21:54:20 +0000
  • caf8b315ab cvsimport okan 2013-11-01 14:07:19 +0000
  • 06eb13dfd9 re-add support for WM_TAKE_FOCUS, and additionally this time only call XSetInputFocus() for clients that have the InputHint; latter fix discovered by Valery Masiutsin with a PoC patch - solves keyboard input focus loss for java apps. okan 2013-11-01 14:07:19 +0000
  • 0c99788f66 cvsimport okan 2013-10-25 19:46:16 +0000
  • 6e17b41f56 A client_delete should behave differently depending on whether the triggering event was unmap (with pending destroy) log destroy; we only need to grab/ungrab the server lock, set WithdrawnState and XRemoveFromSaveSet clients coming from an unmap event - doing so for clients coming from destroy are already gone, hence we generate errors. okan 2013-10-25 19:46:16 +0000
  • 6867821abe shuffle okan 2013-10-20 02:00:02 +0000
  • 5b733a152d wrap key ungrab like btn ungrab, for it'll be used again okan 2013-10-20 01:55:32 +0000
  • 9ff288baef revert 1.138 (WM_TAKE_FOCUS) for now okan 2013-10-20 01:35:47 +0000
  • a2013ee9dd Using xu_btn_ungrab() buttons during client_leave doesn't work (error BadValue) when the modifier is already AnyModifier . Instead alter xu_btn_ungrab() to ungrab AnyButton/AnyModifier and call it only when a client is coming into focus in client_setactive(), instead of iterating over ignore mods - matches how we handle key grabs. okan 2013-10-19 19:39:34 +0000
  • 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). okan 2013-10-19 18:59:22 +0000
  • a70b2d81af For clients that support WM_TAKE_FOCUS in their WM_PROTOCOLS property, send a ClientMessage event. okan 2013-10-19 00:24:54 +0000
  • a88b8c1363 a few err->errx since we don't have error messages here; from Tiago Cunha okan 2013-10-17 13:59:10 +0000
  • 0d6e8a9146 Makefile: rm -f is enough Christian Neukirchen 2013-10-16 23:05:51 +0200
  • f3477539bb cvsimport okan 2013-10-07 13:40:26 +0000
  • bfd3f5e5e1 trying parsing a XLFD string first, then by pattern okan 2013-10-07 13:40:26 +0000
  • 6ac51b8e41 unify type; no change okan 2013-10-03 13:51:57 +0000
  • b8be6754f0 kbfunc_moveresize -> kbfunc_client_moveresize Michael Weber 2013-07-28 00:14:16 +0200
  • c5fa35ecfd Merge branch 'linux' of git://github.com/chneukirchen/cwm into linux Michael Weber 2013-07-27 16:34:12 +0200
  • 0dec9e849d cvsimport okan 2013-07-16 14:30:48 +0000
  • a439012b58 we no longer need to construct an array for _NET_SUPPORTED. okan 2013-07-16 14:30:48 +0000
  • fbb9d32d0a don't need the size here okan 2013-07-16 14:22:25 +0000
  • ca416b6b82 max -> nitems okan 2013-07-16 14:04:44 +0000
  • ae4ab06559 shuffle down protoypes okan 2013-07-15 23:53:19 +0000
  • 4ef96a2772 collapse lines okan 2013-07-15 23:51:59 +0000
  • 4119b5c065 simplify atom handling; allows us to limit to one round-trip to server for gathering Atoms. okan 2013-07-15 14:50:44 +0000
  • 93bfc4a5c1 cvsimport okan 2013-07-10 14:15:58 +0000
  • bd7b8163bb bring buttonpress and keypress event handlers slightly closer together okan 2013-07-10 14:15:58 +0000
  • 9571038358 type fixes okan 2013-07-10 14:11:42 +0000
  • 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. okan 2013-07-09 01:24:49 +0000
  • 9bf2498d7e add support for mouse based group {,r}cycle; from Rodrigo Mosconi. not bound by default. okan 2013-07-08 18:39:20 +0000
  • 1f244fe29c move kbfunc and mousefunc closer together okan 2013-07-08 18:19:22 +0000
  • a493734066 clarify kbd vs mouse functions okan 2013-07-08 16:32:51 +0000
  • 912ec90ea1 move duplicate kbd and mouse modifier parsing to a generic function; from Tiago Cunha okan 2013-07-08 16:10:55 +0000
  • fe439f2b96 replace a few (x)malloc with (x)calloc to prevent potential integer overflows; from Tiago Cunha okan 2013-07-08 15:48:16 +0000
  • 7a7e5cd592 whitespace and style fixes; from Tiago Cunha and one from me. okan 2013-07-08 15:46:16 +0000
  • c7a8e8a286 Merge branch 'linux' of git://github.com/chneukirchen/cwm into linux Michael Weber 2013-06-28 22:36:04 +0200
  • ba9baaf671 cvsimport okan 2013-06-23 17:57:50 +0000
  • fbcdce6be9 properly fix (and re-organize) selfont selection. okan 2013-06-23 17:57:50 +0000
  • 9a12ca3520 cvsimport okan 2013-06-20 02:33:57 +0000
  • 7004700ce0 when selfont is configured, make sure we continue and configure the rest of the screen (quick fix); discovered the hard way by Rodrigo Mosconi. okan 2013-06-20 02:33:57 +0000
  • 234b8214df move Cursors into conf. okan 2013-06-17 17:11:10 +0000
  • 23d84adb5e now that we have conf_screen, which configures individual screens *after* config parsing, we no longer need to split up display/screen initialization, so collapse. okan 2013-06-17 14:08:51 +0000
  • 8b00f438be allow mouse button4 and button5; from Rodrigo Mosconi okan 2013-06-17 00:57:47 +0000
  • 37b3b149ed Merge branch 'linux' of git://github.com/chneukirchen/cwm into linux Michael Weber 2013-06-13 11:52:45 +0200