Commit graph

328 commits

Author SHA1 Message Date
Marco Peereboom
8418aeaea3 quirk the vlc video window to behave like mplayer 2011-06-09 21:26:38 +00:00
Marco Peereboom
bd31f84c17 replace large enternotify hammer with pliers instead.
mcbride, you should revisit the synergy stuff now ;-)
2011-06-09 21:15:29 +00:00
Marco Peereboom
af851bfc41 hack to work around crap like xpdf that doesn't destroy transient
windows.
2011-06-09 16:31:58 +00:00
Marco Peereboom
8c1136de23 Don't abuse IconicState for unmapped windows. 2011-06-09 14:03:56 +00:00
Marco Peereboom
df2352b39d when moving a transient also move the parent. 2011-06-08 22:36:44 +00:00
Marco Peereboom
698b4e7f49 go through all kinds of gymnastics to do movement properly; even with
transients
2011-06-08 22:30:30 +00:00
Marco Peereboom
10594845c4 grmbl debug 2011-06-08 20:32:52 +00:00
Marco Peereboom
0219544e45 when moving windows grab the parent if transient. also keep transients
after the parent on the list
2011-06-08 20:32:03 +00:00
Marco Peereboom
339122673e fix longstanding bug where fullscreen was off by one 2011-06-08 19:27:25 +00:00
Marco Peereboom
3dcbf30545 don't next and prev into iconic windows. 2011-06-08 19:19:45 +00:00
Marco Peereboom
399951d768 mplayer fullscreens again 2011-06-08 19:05:43 +00:00
Marco Peereboom
1140a71c42 First stab at rewriting the focus code. Test now or forever hold your
piece.  I found a few nits but the direction is better and we should have
a much easier time fixing those nits over time.

This also modifies how transients are handled as they now can be obscured
by other windows.  Takes a little getting used to but again it makes more
sense then the old behavior.
2011-06-07 20:56:29 +00:00
Marco Peereboom
3403d0e9a9 add jason to copyright and update ryan's. 2011-06-06 19:54:48 +00:00
Marco Peereboom
c64a9f1320 Add iconic notion as described in FS#82.
Code written by Jason L. Wright" <jason@thought.net>.
dmenu code written by me based on a diff from
Ryan McBride <mcbride@countersiege.com> to find windows.
2011-06-06 19:52:03 +00:00
Marco Peereboom
62b66b5345 more configure request poop. *sigh* can't get gvim to pretty paint just
yet.  Sprinkle some more border_width too;
2011-06-03 22:33:03 +00:00
Marco Peereboom
40d26f037a kill debug 2011-06-03 20:59:38 +00:00
Marco Peereboom
7d15584af6 fix fullscreen on mplayer again and revert most of the xemacs quirk as it
has been fixed for real now
2011-06-03 20:55:02 +00:00
Marco Peereboom
5140afe339 i- A new quirk to accommodate the idiosyncrasies of XEmacs (and maybe
other programs). When XEmacs causes a ConfigurationRequest to be
generated, it expects the ConfigureNotify response to contain matching
dimensions. If it doesn't get a matching response, it re-sends the
ConfigureRequest forever.

- Don't send ConfigureRequest events to applications using this new
quirk because, at least for XEmacs, they prevent the window contents
from filling the window frame. I also put some comments in the
"configreq_win" function questioning whether it's actually needed. I
think it may be superfluous, given that it's always called right after a
call to "XConfigureWindow". But this assertion is based on my limited
testing and should be reviewed by an actual X protocol expert.

- Apply the existing "floating" quirk to the XEmacs Ediff window, so
that it acts like a dialog box.

- In the "propertynotify" function, call "bar_update" for the XA_WM_NAME
property. This helps for things like shells that update the XTerm title
to reflect the user's current directory.

Some of this may sound familiar. I sent a similar patch a long time ago,
but you wanted some revisions. Two years on, here they are. So much for
quick turnaround.

from Chuck Musser <cmusser@sonic.net>
2011-05-03 16:46:52 +00:00
Marco Peereboom
8027864cf5 add border width for bar too
from Splex <splecks@rejii.com>
2011-03-11 21:34:19 +00:00
Marco Peereboom
5fc0be0ea2 add border_width from Splex <splecks@rejii.com> 2011-03-11 14:12:49 +00:00
Marco Peereboom
3b7ccf394f Merge diff from FS#24 to show window title in status bar
from Dimitri Sokolyuk demon@dim13.org
2011-01-18 19:43:12 +00:00
Marco Peereboom
5b36603cb4 don't crash when apps do weird things (i am talking to you thunderbird).
doesn't fix the underlying issues though but at least it can be worked
around by either switching workspaces or kill -1 scrotwm
2011-01-18 19:25:58 +00:00
Marco Peereboom
e218053b30 fix crash as described in FS#37 2011-01-18 19:18:31 +00:00
Ryan McBride
98026635c5 Instead of dying when a manually defined region is outside of screen
boundaries, just ignore the region. Lets you at least log in and run
xrandr to fix the screen, then M-q to apply the manual region.
2010-11-12 01:35:01 +00:00
Marco Peereboom
3a35191973 focus on root just in case there is nothing else to focus on. seems to
fix the gimp issues where you end up with no keyboard action.
2010-10-19 17:37:56 +00:00
Marco Peereboom
1e10da5da6 Fix keyboard not getting focus after quitting gimp.
from Henri Kemppainen <duclare@guu.fi>
2010-10-14 17:40:52 +00:00
Marco Peereboom
87894d058c Hi,
here's the patch for EWMH support for scrotwm. Again, I'm really sorry
that it took this long. The patch is against the latest CVS version. Also,
the code should adhere to style(9) this time.

Like I promised, the patch implements (at least) the following:
 - autoquirking using the _NET_WM_WINDOW_TYPE property (already present in
the previous patch)
 - the _NET_ACTIVE_WINDOW property should work properly now
 - fullscreen windows using the _NET_WM_STATE_FULLSCREEN property
 - floaters remember floating state and position when restarting scrotwm
 - implemented _NET_WM_STATE and _NET_WM_ALLOWED_ACTIONS.

There's one thing though. _NET_WM_ALLOWED_ACTIONS still allows only
floaters to be resized. This is because I couldn't think of a way to
implement the "resize the stack" in way that isn't surprinsing. For
example, when we have more than two columns (master and 1 other) in the
layout, I can't think of good way to react to a request for resizing a
window in the middle columns. I can implement it, but I need you to tell
me exactly how you want it to behave. :)

Do tell me if you find any bugs in the patch. All other feedback is
appreciated as well.

 - Tuukka

From: Tuukka Kataja <stuge@xor.fi>

Thanks and some cleanup by me.
2010-09-16 02:26:45 +00:00
Marco Peereboom
8e288840b3 Roll version for release 2010-08-31 12:43:22 +00:00
Marco Peereboom
be075b908c seamonkey creates all kinds of nice transients that it then yanks from
underneath us.  validate the transient window before focussing on it.

found the hard way by jy-p
2010-08-11 03:15:40 +00:00
Marco Peereboom
838dae60f1 knf 2010-07-15 14:05:16 +00:00
Marco Peereboom
1d447f9ef2 Add option to put the bar at the bottom of the regions 2010-07-15 14:03:04 +00:00
Marco Peereboom
29b5153d1a rework how spawning processes works. this prevents programs that flush to
stderr splode
2010-07-15 13:58:25 +00:00
Marco Peereboom
5cd855abc3 more copyright dates 2010-07-13 04:05:06 +00:00
Marco Peereboom
9f5e85d94d Move outputs++ to new_region. Makes more sense and it make shit like
NVIDIA work.
Add some () around ?: for correctnes sake.

From the arch linux community
2010-07-07 15:40:29 +00:00
Marco Peereboom
eda9e9303d Don't leak font memory when setting up the bar a subsequent time 2010-07-07 12:52:42 +00:00
Marco Peereboom
dc26d15436 rewrite signal handler 2010-07-05 21:55:38 +00:00
Marco Peereboom
6c4ac3470b Make HUP actually restart the wm. Comes in handy when you hang it;
what's bad is that I know how to do it...
2010-07-03 22:41:34 +00:00
Marco Peereboom
af77379009 Bring border behavior back to normal default. Use knob when a knob... 2010-07-01 23:44:16 +00:00
Marco Peereboom
63f6779ee0 Go borderless when bar is disabled and there is only 1 window on screen
from the arch linux folks
2010-07-01 21:13:02 +00:00
Marco Peereboom
4736b92384 Fix a buglet in the region code that prevented switching workspaces.
Only print class/name on the right screen.

From: pbob <pbob@pbob.org>
2010-07-01 21:06:18 +00:00
Marco Peereboom
cae0380bf5 Add some memory to floaters.
diff from cpresearch@gmx.de
2010-07-01 20:58:00 +00:00
Marco Peereboom
6459ba2f91 Add a default cursor. 2010-07-01 19:49:21 +00:00
Marco Peereboom
f35cc28052 Add prior workspace
from
keenerd <keenerd@gmail.com>
2010-07-01 19:01:15 +00:00
Marco Peereboom
f82d432389 Make open office 3.2 purdy again 2010-07-01 02:01:04 +00:00
Marco Peereboom
a2474fde68 Add insane follow-mouse-sometimes feature for bob beck 2010-06-30 00:09:19 +00:00
Marco Peereboom
22a67dc7cd roll version 2010-04-20 19:27:36 +00:00
Marco Peereboom
8586681805 unmap windows after stacking. much better performance! 2010-04-20 19:08:06 +00:00
Darrin Chandler
31e6177025 Move declaration close to use 2010-01-13 23:22:31 +00:00
Darrin Chandler
4d964ea1ea Implement clock_format for user definable time string.
Slight mods to diff from Aragon Gouveia <aragon@phat.za.net>

"go go go" marco
2010-01-13 21:48:35 +00:00
Marco Peereboom
7ba5b19150 Roll to new version for cygwin.
Oops on the ports file
2010-01-11 21:01:24 +00:00