summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-07-20*** empty log message ***randrMichael Cardell Widerkrantz
2011-07-20New todo items.Michael Cardell Widerkrantz
2011-07-20In commit 98d81f75a3e8509e841f9e180e2104e45f6460c5 committed on JunMichael Cardell Widerkrantz
20, 2010, I decided to use pointer hints instead of pointer motion notify to possible speed up things. In commit 381e642a39187f615ba54955ef02d1e2fcf1f95d on Jul 17, 2010, I reverted and wrote: Stop querying for pointer position ourself. Don't use motion hinting anymore and get real coordinates with motion event. See Gajewska and Manasse: "Why X Is Not Our Ideal Window System". Since getting a trackball with high CPI and experiencing how slow moves and resizes suddenly were, especially when decreasing mouse acceleration, this is clearly wrong. The right way *is* to subscribe to just motion hints and request pointer coordinates ourselves.
2011-06-23Use getgeom() in setupwin().Michael Cardell Widerkrantz
Don't use getgeom() when we're done resizing or moving. We already know the geometry of the client window.
2011-06-23Removed unnecessary call to getgeom().Michael Cardell Widerkrantz
2011-06-23When forgetting about a client, forget about it on *all* workspaces itMichael Cardell Widerkrantz
might be on. If fixed, it's now on all of them.
2011-06-23Use freeitem() instead of explicitly freeing from global window list.Michael Cardell Widerkrantz
If a window is unmapped and we are going to forget about it we need to take into consideration if it's currently focused.
2011-06-21arrangewindows() rewritten. We already know the geometry of windowsMichael Cardell Widerkrantz
since we track it all the time now. Only call arrangewindows() when root window changes geometry if we don't have RANDR. Otherwise, we call getrandr() when we get a XCB_RANDR_SCREEN_CHANGE_NOTIFY event. Added comments. When a monitor gets a new mode in an RANDR scenario, we track the x,y position and width,height. If we lose a monitor, we add the windows on that monitor to another monitor.
2011-06-20More news.Michael Cardell Widerkrantz
2011-06-20Defined constant WORKSPACES for number of workspaces instead ofMichael Cardell Widerkrantz
WORKSPACE_MAX and used it consistently. When fixing a window in fixwindow() we now add the window to all workspace window lists except current in which it already should be present. This means fixed windows are always a natural part of the window list. No special treatment means that we don't muck around with the order of the lists when changing workspaces.
2011-06-07Declare all functions static.Michael Cardell Widerkrantz
2011-06-07* New function configurerequest(). Moved ConfigureRequest code to itsMichael Cardell Widerkrantz
own function. In configurerequest(), consider monitor size when changing window coordinates and size. Forgot events() declaration!
2011-06-07No need to get geometry in newwin(). We do that in setupwin().Michael Cardell Widerkrantz
When we get a ConfigureRequest() we mustn't stop if the window is unknown to us. This might be a client that hasn't even tried to map itself yet! Work around it.
2011-06-05Comments.Michael Cardell Widerkrantz
2011-06-04Take output coordinates into consideration when resizing with limits.Michael Cardell Widerkrantz
2011-06-04When we get a ConfigureRequest for coords or size we need to updateMichael Cardell Widerkrantz
the client.
2011-06-01Removed unused active variable.Michael Cardell Widerkrantz
Removed done FIXMEs.
2011-06-01New modes.Michael Cardell Widerkrantz
2011-06-01Done item marked.20110601Michael Cardell Widerkrantz
2011-06-01Removed done items.Michael Cardell Widerkrantz
Rephrase.
2011-06-01News.Michael Cardell Widerkrantz
2011-06-01Added new keys.Michael Cardell Widerkrantz
2011-06-01Always set borders again after unmaxing when we move to new screen.Michael Cardell Widerkrantz
Count borders in width and height when fitting on screen. Remove unneccessary getgeom() from topright(). We know the geometry.
2011-06-01Moving to corners must change client's coords.Michael Cardell Widerkrantz
2011-05-31Link with xcb-randr.Michael Cardell Widerkrantz
2011-05-31New keys.Michael Cardell Widerkrantz
2011-05-31Added functions.Michael Cardell Widerkrantz
2011-05-31Added functions freeitem() and delallitems().Michael Cardell Widerkrantz
2011-05-31Removed done RANDR stuff. Added undone.Michael Cardell Widerkrantz
2011-05-31Added at least some RANDR support.Michael Cardell Widerkrantz
Now keeps track of physical monitors in list monlist of struct monitor. Subscribes to a RANDR notification and updates our view of the physical outputs. Two new keys: Mod + , and . to move windows back or forwards on physical screens. Uses new functions prevscreen() and nextscreen(). New functions: - setuprandr(). Initialize RANDR extension. - getrandr(). Get resources from RANDR extenstion. - getoutputs(). Goes through all video outputs and stores them in list. - fitonscreen(). Before mapping a window, make sure it fits on the screen. Rewrote a lot of functions to use this instead of their own code. - movelim(). Move a window with physical screen limits. Rewrote functions to use this. - resizelim(). Resize a window with physical screen limits. Rewrote functions to call this. - findmonitor(). Looks for an output in list by ID. - findmonbycoord(). Ditto but with x,y coordinates. If coords are within an output, we return it. - delmonitor(). Removes output from list. - addmonitor(). Add it. Simplified many functions.
2011-04-12Add install for man page.20110412Michael Cardell Widerkrantz
Bump.
2011-03-30Notes about the position of the mouse cursor.Michael Cardell Widerkrantz
2011-03-29*** empty log message ***Michael Cardell Widerkrantz
2011-03-29Always work on the currently focused window when moving and resizingMichael Cardell Widerkrantz
and not in the window the mouse cursor happen to be in when the mouse button is pressed. However, just do move and resize if the mouse cursor is inside the window we care about. There's a limit to sloppy focus. It gets confusing and we might lose focus to another window if we allow move and resize *and continue to put the mouse cursor back to where it was when starting, relative to the window*, as we do now. Removed code for special handling of the root window. We don't use it anyway. Extra checks for focuswin == NULL.
2011-03-28Always raise window when fixing it on all workspaces. When movingMichael Cardell Widerkrantz
windows between workspaces, this makes us sure we can find it on the workspace we're going to. Thanks to Simon Friis for noticing.
2011-03-28Aaah! No debug!Michael Cardell Widerkrantz
2011-03-28Include dmalloc here as well.Michael Cardell Widerkrantz
2011-03-28Bump.Michael Cardell Widerkrantz
2011-03-28Removed USERKEY_MOD and KEY_ALT special handling. Now asks X serverMichael Cardell Widerkrantz
for keycodes with MODKEY mask instead and checks for those. Also stops tabbing around not only when MODKEY keys are released, but also when another MODKEY command is pressed.
2011-03-28Year 2011 added.Michael Cardell Widerkrantz
2011-03-20Check explicitly for key and modifier mappings when remapping theMichael Cardell Widerkrantz
keyboard. We don't want to do anything when mouse buttons have been remapped.
2011-03-20*** empty log message ***Michael Cardell Widerkrantz
2011-03-20*** empty log message ***Michael Cardell Widerkrantz
2011-03-20Bump.Michael Cardell Widerkrantz
2011-03-20Handle mapping notify and regrab of keys. When implementing this weMichael Cardell Widerkrantz
leaked memory. Noticed that we need to use special free() function for keysyms.
2011-03-18Updated to match the new behaviour of MODKEY + Tab.Michael Cardell Widerkrantz
Changed xsetroot example.
2011-03-18*** empty log message ***Michael Cardell Widerkrantz
2011-03-08*** empty log message ***20110308Michael Cardell Widerkrantz
2011-03-08Merge branch 'master' of /home/mc/public_www/git/mcwmMichael Cardell Widerkrantz
2011-03-08In some cases focuswin isn't NULL but is on another workspace. A bug,Michael Cardell Widerkrantz
but needs to be handled.