about summary refs log tree commit diff
path: root/xevents.c
Commit message (Collapse)AuthorAgeFilesLines
* Add acceptraise to specify whether applications can activate and raise windows. cn-noraise-globalChristian Neukirchen2013-12-301-1/+5
| | | | Greetings from 30C3.
* cvsimportokan2013-12-131-4/+4
|\
| * stray space and sort while hereokan2013-12-131-4/+4
| |
* | cvsimportChristian Neukirchen2013-12-131-0/+2
|\|
| * ICCCM explicitly states that server time (CurrentTime) should *not* beokan2013-12-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | 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@
* | cvsimportokan2013-12-111-2/+4
|\|
| * Add client wrapper for XWMHints to support XA_WM_HINTS in PropertyNotifyokan2013-12-111-0/+3
| | | | | | | | events; based off a diff from Thomas Adam.
| * Remove extra work and simplify client state handling.okan2013-12-111-2/+1
| |
* | cvsimportokan2013-12-021-21/+10
|\|
| * Since we use IconicState as our hidden state, check for the hidden flagokan2013-12-021-2/+4
| | | | | | | | | | | | | | | | 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.
| * Remove the option to bind a key by keycode with brackets; it neverokan2013-11-271-3/+1
| | | | | | | | | | | | | | worked (and no one complained!). While it's fairly easy to fix, users should be using keysym names and not keycodes. Discussed at length months ago with todd@, matthieu@ and Owain.
| * Rewrite active/inactive client handling in client_setactive();okan2013-11-271-16/+5
| | | | | | | | | | | | | | | | | | | | | | 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.
* | cvsimportokan2013-11-121-16/+4
|\|
| * Alter the r1.35 of event.c race fix. Remove the forward looking eventokan2013-11-121-16/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | cvsimportokan2013-10-251-2/+2
|\|
| * A client_delete should behave differently depending on whether theokan2013-10-251-2/+2
| | | | | | | | | | | | | | 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.
* | cvsimportokan2013-07-161-8/+6
|\|
| * collapse linesokan2013-07-151-6/+4
| |
| * simplify atom handling; allows us to limit to one round-trip to serverokan2013-07-151-5/+5
| | | | | | | | for gathering Atoms.
* | cvsimportokan2013-07-101-9/+8
|\|
| * bring buttonpress and keypress event handlers slightly closer togetherokan2013-07-101-8/+7
| |
| * move kbfunc and mousefunc closer togetherokan2013-07-081-2/+2
| |
| * whitespace and style fixes; from Tiago Cunha and one from me.okan2013-07-081-1/+1
| |
* | cvsimportokan2013-06-201-2/+6
|\|
| * move synthetic responses and have client_msg only work with WM_PROTOCOLS,okan2013-06-101-1/+1
| | | | | | | | since that's all ClientMessageEvent is for anyway.
| * Check for, and honour, CWStackMode and CWSibling change requests during aokan2013-06-101-1/+5
| | | | | | | | | | ConfigureRequest event. Additionally, honour a border width change; detailed report and patch from Mike Small.
* | cvsimportChristian Neukirchen2013-05-291-23/+33
|\|
| * alter conf_grab(_kbd) to first ungrab AnyKey/AnyModifier, then proceedokan2013-05-231-7/+5
| | | | | | | | | | | | | | | | 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.
| * handle _NET_WM_STATE ClientMessage; from Alexander Polakov.okan2013-05-211-0/+4
| |
| * stray whitespaceokan2013-05-201-1/+1
| |
| * handle _NET_ACTIVE_WINDOW ClientMessage; from Alexander Polakov.okan2013-05-201-1/+9
| |
| * add support for _NET_CLOSE_WINDOWokan2013-05-191-0/+3
| |
| * treat WM_CHANGE_STATE like other atomsokan2013-05-191-5/+2
| |
| * simplifyokan2013-05-191-7/+6
| |
| * new -> initokan2013-05-111-1/+1
| |
| * more type fixes for mask/buttonokan2013-05-101-1/+1
| |
| * int type fixesokan2013-05-101-1/+1
| |
| * fix KeySym typeokan2013-05-101-1/+2
| |
* | cvsimportokan2013-04-301-1/+1
|\|
| * use an int in screen_init and avoid needing to cast for screen number (which).okan2013-04-291-1/+1
| |
* | cvsimportokan2013-04-051-1/+1
|\|
| * zap stray whitespaceokan2013-04-051-1/+1
| |
* | cvsimportokan2012-12-191-4/+2
|\|
| * define LockMask|Mod2Mask; no functional changeokan2012-12-181-4/+2
| |
* | Use vendored queue.h everywhereChristian Neukirchen2012-11-261-1/+1
|/
* sortokan2012-11-091-1/+1
|
* missing headers; from Thordur Bjornsson.okan2012-11-071-0/+1
|
* revert previous for now until a way to test more than a few encodings is foundokan2012-09-121-4/+4
|
* be explicit in which key masks we allow during keypress and buttonpressokan2012-09-101-4/+4
| | | | events; from Alexander Polakov - makes non-us layout reliable.
* re-use geom struct in client_ctx (saved)geometry.okan2012-07-131-6/+6
|