summaryrefslogtreecommitdiffhomepage
path: root/src/Window.hs
AgeCommit message (Collapse)Author
2014-08-09hlint refactoringsReto Hablützel
2014-03-13Back to picking first screen by default (#158)0.20.1Jose Antonio Ortega Ruiz
2013-11-24Get widest Rectangle instead of first one in setPositionDmitry Malikov
2013-05-04Wee refactoringsJose Antonio Ortega Ruiz
2013-04-29Setting some window properties before mappingJose Antonio Ortega Ruiz
2013-04-27New -d (--dock) command line switchJose Antonio Ortega Ruiz
2013-04-25New overrideRedirect configuration parameterJose Antonio Ortega Ruiz
2013-04-25New allDesktops configuration parameterJose Antonio Ortega Ruiz
2013-03-04Delay as much as possible setting window propertiesJose Antonio Ortega Ruiz
2013-01-20Apply @polachok patch to fix #77Dmitry Malikov
2013-01-20New XPositions: TopP and BottomPDmitry Malikov
2012-10-08Fixes for warnings reported in github issue #71Jose Antonio Ortega Ruiz
2012-09-01Some cosmetic fixes.Jochen Keil
I tried to scrap the hide/reveal boilerplate, but that didn't work out due different functions ({show,hide}Window) and signaltypes. Got almost as ugly. Maybe a pattern matching function instead of the "case typ of" would be nicer. But that's just code golfing.
2012-09-01Set StrutValues from showWindowJochen Keil
This is superior to calling the repositionWin function. It will only set the StrutValues and avoid additional work. This means, that extra parameters need to be passed down to showWindow. However, that is not a problem here.
2012-09-01Set StrutValues only if window is actually mappedJochen Keil
For a ChangeScreen or Reposition signal the setProperties function is called which sets the StrutValues regardless of the mapping state. This means that for an unmapped window a window manager will produce an empty gap. Fixing this is easy. Just set the StrutValues to 0.
2012-08-30Revert "Add '-d' for dockapp mode"Jose Antonio Ortega Ruiz
This reverts commit cae6f2bc049d4b7ed57a7a18a828bc4ea35df4aa, until we find a reason why it's causing high CPU consumption in the X server.
2012-08-29Add '-d' for dockapp modeArnout
This makes xmobar work in windowmanagers that support _NET_WM_WINDOW_TYPE_DOCK but not _NET_WM_STRUT, such as Notion
2012-08-16New configuration option 'hideOnStart'Jochen Keil
When set to True the window is initially not mapped, i.e. hidden. It then can be toggled manually (for example using the dbus interface) or automatically (by a plugin) to make it reappear (unhide/reveal).
2012-08-13Missing file headers and lintingJose Antonio Ortega Ruiz
2012-08-13Missing import for 'when'Jose Antonio Ortega Ruiz
2012-08-13Revert lowerOnStart to its original behaviourJochen Keil
I misunderstood the intention of lowerOnStart and changed the implementation to what I thought it would have to do. This was wrong indeed, so back to original behaviour.
2012-08-09Cosmetic surgeryJochen Keil
Realign methods, remove unnecessary imports and remove clutter
2012-08-09Add functions for {reveal,hid,toggl}ing the windowJochen Keil
Toggling is based is based on the current window status. If unmapped then reveal else hide. Sync is necessary or delays might occur. The functions are called from the event loop when the according signal is received When mapping (revealing) the window again we need to set the struts property again. The easiest way to do this is to call repositionWin. However, repositionWin needs access to the Config structure which is available in eventLoop. Because decomposition wouldn't be easy and I don't want to pass Config down to showWindow (which would need to return the new Rectangle then) this is done here.
2012-08-09Create signal handler in main and pass it down to the start* functionsJochen Keil
This is necessary for setting up the signal callback (trigger) from the Plugin interface. As another benefit it is now possible to implement the lowerOnStart config option properly by simply sending a Hide signal in startLoop.
2012-08-09Modularize Window handling functionsJochen Keil
These functions are about creation, positioning and property setting of the xmobar window. An own module does them justice and eases the task of adding functions for revealing/hiding and toggling the window.