aboutsummaryrefslogtreecommitdiffstats
path: root/xevents.c (unfollow)
Commit message (Collapse)AuthorLines
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
2009-08-27unroll the CCTOSC macro; from Thomas Pfaffokan-2/+2
ok oga@
2009-08-24bring together gathering, calculating and applying of size hints;okan-3/+2
additionally, respect aspect ratio hints. ok oga@
2009-05-18Rip out the event layer and just use a static array of callbacks likeoga-200/+75
every other window manager since twm. The event layer is very nice, very shiny, very flexible, and very much underutilised. We don't need any of those shiny features so it's probably better to earn ourselves 1k smaller text size instead. ok todd@, okan@
2009-05-01fix the other 50% of xrandr cases; reported by sthen@okan-9/+11
"commit that" oga@, ok sthen@
2009-03-28- avoid shadowed Mask declaration in menu_filtermartynas-2/+2
- make _xev_reincorporate static evmask naming oga@, input okan@. ok okan@, oga@
2009-01-23Move the keybinding argument to a union to prevent warnings whereoga-2/+2
sizeof(int) != sizeof(void *). This has been annoying me for ages. ok okan@, todd@
2009-01-22now that pwin is gone gone gone, we no longer have to do the bwidthokan-9/+10
dance; xevents now able to deal with a border being set (which fixes those annoying movie-watching apps). ok todd@, oga@
2009-01-17remove unusedokan-12/+2
ok oga@
2009-01-17Finally fix the really annoying race where if you rapidly switch groups severaloga-15/+22
times you'd end up losing clients (thinking they had gone away). From the ICCCM (which should not be read without a stiff drink in hand, I made this mistake so you don't have to): to request a window to be withdrawn one should send a synthetic UnmapRequest event when iconified. To request iconification one should just unmap the window. The ICCM further recommends that the synthetic event should just be taken as a cue to withdraw, to deal with legacy clients. Taking a hint from this, rework xev_handle_unmaprequest to correctly detect these situations. A Withdrawn window may come back anywhere, even as a subwindow of something else, so the correct way to handle this state is to forget it ever existed. While i'm here, kill a dumb attempt to notice this in client_delete, and nuke the very unnecessary arguments. Todd confirmed this fixes the `race'. ok todd@, ok ok okan@
2009-01-16revert just the 'race fix'; more works needs to be ironed out withokan-2/+2
events and state. agreed by oga
2009-01-16remove pwin, bringing us to one client, one window. we no longer haveokan-36/+17
to push attributes around, so things get a lot simplier, while fixing a few issues in the meantime; original suggestion by Edd Barrett many many moons ago. annoying window placement and race, found in c2k8 by todd, fix by oga! lots of feedback from todd and oga - thanks! "commit that bad boy" oga@
2009-01-11remove unused variablesokan-2/+1
ok oga@
2009-01-06remove unused codeokan-3/+1
ok oga@
2008-12-04Kill obviously dead variable.oga-3/+2
2008-09-29Xinerama and XRandR dual head support for cwm(1). Now we detect the xrandroga-1/+19
reconfiguration events and change our sizes depending on that. We also detect the xinerama screens for maximize, vertmaximize and initial window placement. This could be improved by automatically resizing maximized windows when the screen resolution changes and by moving windows that would be hidden into visible space. Said changes will come shortly. Tested by many. matthieu@ didn't oppose.
2008-09-22*sigh* Revert the diff that wasn't meant to go in yet.oga-19/+1
note to self: When you mean to type cvs commit search.c, don't forget the filename.
2008-09-22Display the current window title not a previous one in the case ofoga-1/+19
``show all'' in the window search dialogue. Noticed and diff from Tim van der Molen, thanks!
2008-07-22fix the froggy problem.oga-1/+22
Implement a handler for the MappingEvent, meaning that the keymap has changed. When this happens, ungrab all bindings, update the map, and regrab. Fixes the problem where some keybindings wouldn't work under non us or uk keymaps (especially the .fr map, it seems). Issue noticed by ajacoutot@, ratchov@, and a few people on misc. Based on an initial diff from ratchov@. ok okan.
2008-07-11spacing, declaration lineup to be consistent throughout cwm,okan-46/+53
readability, and a bit of knf. ok oga@
2008-06-18Revert previous "fix" it introduces new issues of its own.oga-2/+2
The problem that's causing us to lose windows is that rapid hiding and unhiding causes a backlog of X events, so we lose track of client state, and delete cc->pwin when we should not. A proper fix will arrive when it's been worked out.
2008-06-17Ignore caps lock and numlock for keyboard bindings. The way Xlib makesoga-1/+7
you do this is ugly. Also remove mod2 (numlock) and mod3 (odd) from the list of keybinding modifiers. They don't make much sense here. based on a heavily modified diff from Martynas. ok okan.
2008-06-17Just rework the mouse binding calculation on event to look like theoga-16/+14
kbfunc one. Makes the code a lot easier to read. Fixes a bug i introduced in the last commit here. ok okan.
2008-06-17The mousebinding code missing a break once it had found the correctoga-17/+18
binding, this expose another issue that's still being debugged. Issue pointed out by Dan Harnett, thanks! While i'm here KNF and rework the logic to not be ass-backwards. ok okan.
2008-06-14(mostly) proper xshape event supportokan-4/+17
ok oga@
2008-06-14confable menu and window mouse bindings from rivo nurges (thanks!) withokan-97/+14
some minor fixups, man page bits and knf. ok oga@
2008-06-13Don't client_delete() on an Unmap event, only do that on a client delete event.oga-15/+3
found by (among others) todd@ when you have a lot of clients and do something that maps and umaps a lot of windows fast. Debugged with aid of gdb, todd, okan and NULL pointers in a pizza place in edmonton while waiting an inordinately long time for food. ok okan@, todd@
2008-06-12ignore if non-zero expose events, for we could be covered by multipleokan-2/+2
windows; merely an optimization. ok oga@
2008-05-21Make menu_filter handle mouse movement too. This enables the keyboardoga-2/+2
search dialogues to be manipulated with the mouse, too. It also allows me to shrink the codebase further by killing grab_menu(). One known issue with highlighting the first entry in a search dialogue, that'll be fixed soonish. ok okan@, tested by Edd Barrett and todd@.