summaryrefslogtreecommitdiff
path: root/src/window.c
AgeCommit message (Collapse)Author
2017-03-27*: update email address: s/gnugeneration/pengaru/Vito Caputo
2017-03-25*: add some missing includesVito Caputo
2017-03-25*: more minor style fixupsVito Caputo
2017-03-25*: restore old indentation of switch casesVito Caputo
In the course of applying the new style over the rest of the code I decided it's obnoxiouos and prefer the old way of indenting the cases one level from the switch. I know it wastes horizontal space and can see the value of flattening the cases with the switch, but once you start having variables at the start of the switch body, and blocked cases, it just starts becoming quite unattractive without the indentation.
2017-03-25*: s/malloc/calloc/Vito Caputo
Eliminate some 0/NULL initializations.
2017-03-25xwindow: s/xwindow->mapped/xwindow->client_mapped/Vito Caputo
This member reflects if the window is mapped from the client's perspective, not necessarily if the window is currently mapped (since vwm maps and unmaps windows the client has mapped in the course of providing virtual desktops) Changing the name for better clarity, since it's a bit ambiguous as-is.
2017-03-24xevent: cleanup vwm_xevent_handle_map_request()Vito Caputo
Long overdue tidying of the map request handling. This moves all the window classifying and placement stuff into a separate helper, adding a call to that in vwm_win_manage_xwin(), where this always belonged. The map request handling now just manages windows that aren't already managed, then lets the usual "is this window mapped?" logic filter the map request. This should fix a lingering bug where a window on the unfocused desktop would become spuriously visible if the client mapped it. Firefox started doing this recently when a page finished loading.
2017-03-24window: cleanup vwm_win_focused()Vito Caputo
We can assume (vwm->focused_desktop != NULL), the initial desktop is created early in startup and the last one can't be destroyed.
2017-03-21*: update copyrights for 2017Vito Caputo
2017-03-14*: trivial code formatting cleanupsVito Caputo
I'm no longer fond of combining one-line conditional statements on the same line as their conditional expression.
2017-03-14vwm: utilize vwm_xserver_t, minor refactorVito Caputo
2016-09-09*: refactor all the thingsVito Caputo
Long overdue house cleaning. The addition of compositing/monitoring overlays in vwm3 pushed vwm well past what is a reasonable size for a simple thousand line file. This is a first step towards restoring sanity in the code, but no behavioral differences are intended, this is mostly just shuffling around and organizing code. I expect some performance regressions initially, follow-on commits will make more improvements to that end as the dust settles.
© All Rights Reserved