aboutsummaryrefslogtreecommitdiffstats
path: root/xevents.c (unfollow)
Commit message (Collapse)AuthorLines
2013-11-27Rewrite active/inactive client handling in client_setactive();okan-17/+6
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. No intended behaviour change.
2013-11-12Alter the r1.35 of event.c race fix. Remove the forward looking eventokan-17/+5
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'). Verified with test case from the 2009 race which was the original reason for r1.35 of event.c.
2013-10-25A client_delete should behave differently depending on whether theokan-3/+3
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.
2013-07-15collapse linesokan-7/+5
2013-07-15simplify atom handling; allows us to limit to one round-trip to serverokan-6/+6
for gathering Atoms.
2013-07-10bring buttonpress and keypress event handlers slightly closer togetherokan-9/+8
2013-07-08move kbfunc and mousefunc closer togetherokan-3/+3
2013-07-08whitespace and style fixes; from Tiago Cunha and one from me.okan-2/+2
2013-06-10move synthetic responses and have client_msg only work with WM_PROTOCOLS,okan-2/+2
since that's all ClientMessageEvent is for anyway.
2013-06-10Check for, and honour, CWStackMode and CWSibling change requests during aokan-2/+6
ConfigureRequest event. Additionally, honour a border width change; detailed report and patch from Mike Small.
2013-05-23alter conf_grab(_kbd) to first ungrab AnyKey/AnyModifier, then proceedokan-8/+6
to grab keys in keybindingq. we don't need to ungrab/grab on every addition to the queue, just once with a complete keybindingq; simplify grabbing keys per screen (during init) and during a MappingNotify. while here, change conf_grab_{kbd,mouse} to require only a Window.
2013-05-21handle _NET_WM_STATE ClientMessage; from Alexander Polakov.okan-1/+5
2013-05-20stray whitespaceokan-2/+2
2013-05-20handle _NET_ACTIVE_WINDOW ClientMessage; from Alexander Polakov.okan-2/+10
2013-05-19add support for _NET_CLOSE_WINDOWokan-1/+4
2013-05-19treat WM_CHANGE_STATE like other atomsokan-6/+3
2013-05-19simplifyokan-8/+7
2013-05-11new -> initokan-2/+2
2013-05-10more type fixes for mask/buttonokan-2/+2
2013-05-10int type fixesokan-2/+2
2013-05-10fix KeySym typeokan-2/+3
2013-04-29use an int in screen_init and avoid needing to cast for screen number (which).okan-2/+2
2013-04-05zap stray whitespaceokan-2/+2
2012-12-18define LockMask|Mod2Mask; no functional changeokan-5/+3
2012-11-09sortokan-2/+2
2012-11-07missing headers; from Thordur Bjornsson.okan-1/+2
2012-09-12revert previous for now until a way to test more than a few encodings is foundokan-5/+5
2012-09-10be explicit in which key masks we allow during keypress and buttonpressokan-5/+5
events; from Alexander Polakov - makes non-us layout reliable.
2012-07-13re-use geom struct in client_ctx (saved)geometry.okan-7/+7
2012-07-13convert xmax/ymax uses to view geometry.okan-3/+3
2012-07-06querying for Xinerama should be done per display, not per screen, sookan-2/+1
move chuck to display init; allows some shuffling to occur limiting screen_init_xinerama()'s scope while keeping order intact.
2012-07-05the display's width and height are updated after an XRandR event so weokan-2/+2
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.
2012-07-03re-implement atom handing; makes for a normalized and more consistentokan-2/+2
separation between cwm and ewmh. seen by a few.
2012-05-16get rid of more stray lines/spacesokan-3/+1
2012-05-16cycle through other common cycling modifiers; based on a diff fromokan-17/+11
Alexander Polakov. ok sthen@
2012-05-16convert from deprecated XKeycodeToKeysym to XkbKeycodeToKeysymokan-4/+4
ok sthen@
2012-05-13altpersist->cycling to be more clear that this is for cycling modokan-2/+2
persistence; based on a diff from Alexander Polakov, in preparation for looping through other potential cycling modifiers.
2011-09-13add WM_TRANSIENT_FOR event support: moves dialogs, toolbars and such tookan-1/+4
the group of the main application window; based on a diff from Alexander Polakov with CLIENT_IGNORE flag suggestion from oga@. ok oga@
2011-08-22A while ago I wrote some code to not warp to ignored windows on map (revoga-6/+1
1.52), not realising that the previous (less efficient) fix had already been commited (rev 1.50). Had this in my tree for ages to remove the previous code. Effectively reverts rev 1.50. ok okan@
2011-06-24Correct extern declaration and while here, rename a variable to beokan-3/+3
pedantic. from Thomas Pfaff. ok oga@
2011-05-11tag and comment cleanup; ok oga@okan-1/+1
2011-05-06On map, don't warp to windows that are marked as ignored.oga-3/+3
Requested by Christian Neukirchen last august. He provided a patch but the one I wrote was significantly simpler (1 - 2 + in the whole diff). makes sense to okan@.
2011-03-22remove XXX and move a configure event out of the event handler functions.okan-22/+2
reminded by a similiar diff from Thomas Pfaff. ok oga@
2010-09-25do not warp to clients marked 'ignore'; from chneukirchen at gmail - thanks.okan-1/+7
(with the manpage bit from me). ok oga@
2009-12-15pull all non-X11 headers from calmwm.h and place them only where theyokan-1/+11
are required. encourged to go all the way by oga@
2009-12-15merge the 2 common header files; specific includes to be pulled out asokan-2/+1
separate commits. ok oga@
2009-12-11Implement _NET_DESKTOP_NAMES, this one was a bit tricky since thespecoga-1/+12
says that a pager can change the property at any time (most need a clientmessage). So deal with property updates. Needed to shuffle some of the other code around since we can't just use shortcut_to_name[] everywhere now. ok okan@
2009-12-10Implement _NET_CURRENT_DESKTOP, _NET_DESKTOP_VIEWPORT andoga-3/+2
_NET_DESKTOP_GEOMETRY. ok okan@
2009-12-10finish unfucking the screen_ctx handling.oga-14/+14
remove screen_current() it was utterly bogus when nscreens > 1. pass a fake client_ctx in the case where there's no client and the kbfunc or mousefunc doesn't need a real one, it just contains the current screen, modify these functions so that they pass down the screen context to their callees. make groups per screen, it's the only way it makes sense in this regard. ok okan@.
2009-11-28style (whitespaces)tobias-2/+2
ok oga, okan