Commit graph

7326 commits

Author SHA1 Message Date
Dana Jansens
d80edf6a2f Update README.GIT to the packages in current ubuntu distribution and include imlib2 2011-08-01 11:46:35 -04:00
Dana Jansens
79911e3381 Comment fix 2011-08-01 11:44:56 -04:00
Dana Jansens
be626ad7cf bump version to 3.5.0 and library versions 2011-08-01 11:25:55 -04:00
Dana Jansens
cf276fafd8 Fix Java apps always appearing on desktop 0.
Fake managing a window doesn't read a requested desktop, but ended up placing
  a NET_WM_DESKTOP hint on the window (with value 0).  Fake managing doesn't
  need to set the DESKTOP hint since the window is not actually being managed,
  so remove it from the codepath.
2011-05-13 15:52:17 -04:00
Dana Jansens
823997f001 don't re-run the startup command on reconfigure 2011-04-11 17:25:51 -04:00
Dana Jansens
6624d06dd1 fix global autostart installation, and the pointer to it so it is run 2011-04-11 17:25:45 -04:00
Dana Jansens
007f0917b8 Resizing removes maximization now, so don't only snap "grow to edge" to screen edges.
This caused a serious annoyance when shrinking a maximized window, it would
shrink to the other end of the monitor, effectively reducing it to its minimum
size.
2011-01-24 14:19:23 -05:00
Dana Jansens
805f42e1d9 Fix compiling without sync extension present.
Make waiting_for_sync always present, but it is set to 0 (not waiting) if we aren't using sync.
2011-01-24 14:19:23 -05:00
Dana Jansens
99ec7f6f7b Fix regression: hitting a key accel in a menu didn't move focus to the submenu 2011-01-24 14:19:23 -05:00
Dana Jansens
2e82715a4a Show the submenu and move focus there with the enter key when the submenu isn't shown yet. 2011-01-24 14:19:23 -05:00
Dana Jansens
f14bf9cac2 don't free the XIC if it wasn't created. this appears to cause a crash 2011-01-24 14:19:23 -05:00
Dana Jansens
4e3ffbfc28 cap the client (and frame) window's dimensions at the range of an unsigned short (bug #4596) 2011-01-24 14:19:23 -05:00
Dana Jansens
9c4ef9aa4a extra \n in debug output 2011-01-24 14:19:23 -05:00
Dana Jansens
2acbf04cb4 Move focus to a window when the mouse enters a window during a pointer grab, if using "focus under mouse" (Fixes bug #4617) 2011-01-24 14:19:23 -05:00
Dana Jansens
29d595b178 when focus=yes in the per-app settings, then the focus request for the new window is from a user. also if allow_other_desktops is false, then always disallow other desktops (Fixes bug #4752) 2011-01-24 14:19:23 -05:00
Dana Jansens
385967b552 Make NET_ACTIVE messages always treated as from the user. Loosen up focus stealing for user-requested focusing.
Seems panels such as xfce's and gnome's still treat their activation requests
  as being from an application when a user has requested it.

Make the focus stealing code more lenient for user-requested focusings
  (_NET_ACTIVE).  But treat new windows as not user-requested unless they
  gave a launch time.

When activating a window, if another window would be the one to actually get
  focused, then activate that instead (avoid clicking a window in the panel and
  nothing happens).
2011-01-24 14:19:23 -05:00
Dana Jansens
d291a9c7aa don't use -Wextra unless --enable-super-warnings 2011-01-24 14:19:23 -05:00
Philip Brown
d082572b17 setenv and unsetenv dont exist in Solaris 9. (Fixes bug #4663)
Seeing as how you already use glib, I just substituted g_setenv and g_unsetenv
as appropriate, and it now works for me.
2011-01-24 14:19:23 -05:00
Philip Brown
9c356d370a Some versions of X, have the Shape extension, but apparently not "ShapeInput" (Fixes bug #4662)
the sawfish window manager has ifdefs for this sort of situation.
I followed suit, and #ifdef'd it, and it now works for me.
patch attached.

Slight changes to the patch from danakj@orodu.net for readability
2011-01-24 14:19:23 -05:00
Dana Jansens
7c33f45e09 make the default drag threshold 1. it is smooth and feels and looks nice.
(also macos has it and i liked it.)
2011-01-24 14:19:23 -05:00
Dana Jansens
80b6d4ac5d XML_PARSE_XINCLUDE flag seems to do nothing. Use xmlXIncludeProcessFlags() instead 2011-01-24 14:19:23 -05:00
Dana Jansens
c5c34cca1c if no launch time is provided for an application, make one up.
if the window is related to other existing windows
  and one of those windows was the last used
    then we will give it a launch time equal to the last user time,
    which will end up giving the window focus probably.
  else
    the window is related to other windows, but you are not working in them?
    seems suspicious, so we will give it a launch time of NOW - STEAL_INTERVAL,
    so it will be given focus only if we didn't use something else during the
    steal interval.
else
  the window is all on its own, so we can't judge it.  give it a launch time
  equal to the last user time, so it will probably take focus.

this way running things from a terminal will give them focus, but popups
without a launch time shouldn't steal focus so easily.
2011-01-24 14:19:23 -05:00
Dana Jansens
5e38690d65 fix segfault for placing windows without a group 2011-01-24 14:19:23 -05:00
Dana Jansens
a8dbf2e74e add primary monitor stuff to rc.xsd 2011-01-24 14:19:22 -05:00
Mikael Magnusson
74f7f35b59 Fix small leak in If action option parsing 2011-01-24 14:19:22 -05:00
Dana Jansens
95535e8623 Big changes to placement across multiple monitors.
Add a Primary option for which monitor to place new windows on.  Make "Active" the default instead of "Any", which is just totally crazy.

When a window is being placed in the FOREGROUND, use a monitor chosen in
  the following order:
  1. same monitor as parent
  2. primary monitor if placement=PRIMARY
     active monitor if placement=ACTIVE
     pointer monitor if placement=MOUSE
  3. primary monitor
  4. other monitors where the window has group members on the same desktop
  5. other monitors where the window has group members on other desktops
  6. other monitors

When a window is being placed in the BACKGROUND, use a monitor chosen in the
  following order:
  1. same monitor as parent
  2. other monitors where the window has group members on the same desktop
   2a. primary monitor in this set
   2b. other monitors in this set
  3. other monitors where the window has group members on other desktops
   3a. primary monitor in this set
   3b. other monitors in this set
  4. other monitors
   4a. primary monitor in this set
   4b. other monitors in this set

Decide to focus the new window before placing it, so we know if it will be
  placed in the foreground or background.

Always choose a single monitor, then place on it, rather than possibly moving
  to a "backup" monitor.  Unpredictable monitor placement is horrible.
2011-01-24 14:19:22 -05:00
Dana Jansens
76ae19924d add function screen_compare_desktops()
tells if two windows' current desktops are considered logically on the same
  desktop (taking "all desktops" into account)
if a window is on "all desktops" it is considered to be on the current desktop
  only - windows can only be in one place at a time.
2011-01-24 14:19:22 -05:00
Dana Jansens
4ce98ecf02 don't steal focus if someone used a window within 1 second ago
(instead of 0.5 seconds)
2011-01-24 14:19:22 -05:00
Dana Jansens
8ac60401e9 Fixing commit 066a15d7aa64eaa0. Don't ever use CurrentTime as event_curtime.
Force event_curtime to be some valid timestamp.
2011-01-24 14:19:22 -05:00
Dana Jansens
4f8503c2c5 Allow XIncludes in xml documents we read.
Add the XInclude namespace in the default config file (named "xi")
2011-01-24 14:19:22 -05:00
Dana Jansens
6dedf8f37e use top_builddir, not builddir variable in Makefile. seems builddir doesn't always exist/anymore 2011-01-24 14:19:22 -05:00
Dana Jansens
a21e9c9cc5 add some more warning flags for debug builds
-Wno-write-strings so that "foo" is treated as a const char* not a char*.
-Wextra for more fun
2011-01-24 14:19:22 -05:00
Hiltjo Posthuma
6e5de3b57e Fix icons.c test for 64-bit platforms 2011-01-24 14:19:22 -05:00
Dana Jansens
a8843b58c5 update the last user interaction timestamp during a move/resize of the focused window 2011-01-24 14:19:22 -05:00
Dana Jansens
5ff0d07aba update the user-interaction timestamp when running a (non-interactive) action on the focused window
update it at the end of running actions instead of multiple times (once for
 each action)
2011-01-24 14:19:22 -05:00
Dana Jansens
d614bebf6a don't steal focus from a window if it was used very recently, when someone uses _NET_ACTIVE request. 2011-01-24 14:19:22 -05:00
Dana Jansens
e737150701 mem leak in config.c 2011-01-24 14:19:22 -05:00
Dana Jansens
001f174cf5 Big rework of image.c and the image cache system.
Added a lot of comments, simplified call graphs.
Added full (not second-class) support for images coming from named sources (files, icon themes).
RrImage holds an RrImageSet.  RrImageSet holds a bunch of RrImagePic, which are different sizes of a logical image.
RrImageSet objects can be merged if it is discovered they (will) share an RrImagePic.  The RrImage objects are updated to use the new merged RrImageSet.
2011-01-24 14:19:22 -05:00
Mikael Magnusson
f458d66c7e Use >= instead of > when comparing timestamps, or we will ignore some events 2011-01-24 14:19:22 -05:00
Dana Jansens
b1fc19711f add some tests for obt pieces (binary search, .desktop parsking, linkbase, and inotify watch) 2011-01-24 14:19:22 -05:00
Dana Jansens
7eeae03f06 oops, crash if searching for something smaller than * in the array 2011-01-24 14:19:22 -05:00
Dana Jansens
d3660704f1 less redundant calls to screen_update_areas() and client_move_onscreen() 2011-01-24 14:19:22 -05:00
Mikael Magnusson
6f92931f84 Ignore MotionNotify on menus, it reset the submenudelay timer
It also caused the slightest cursor movement to activate the entry under
the cursor when navigating via the keyboard.
2011-01-24 14:19:22 -05:00
Mikael Magnusson
6d0f44e1d1 Use g_list_find instead of weird bouncing loops 2011-01-24 14:19:22 -05:00
Dana Jansens
3ff4162034 Parse multiple keys in one keybind 2011-01-24 14:19:22 -05:00
Dana Jansens
36a437a702 allow the res_class in WM_CLASS to mark a window as a dock app, if it is set to the string "DockApp" 2011-01-24 14:19:21 -05:00
Mikael Magnusson
194bb32cf6 Don't hog the user during the hideDelay 2011-01-24 14:19:21 -05:00
Dana Jansens
5d5714f01e Handle STRING and COMPOUND_TEXT type text properties.
STRING should be latin1 text (plus TAB and LF)
COMPOUND_TEXT should be encoded in the current locale.
2011-01-24 14:19:21 -05:00
Dana Jansens
d3d96b572a Revert "add an inotify watcher for directories (doesnt work without inotify yet)"
This reverts commit c36b89ba12.
2011-01-24 14:18:09 -05:00
Dana Jansens
27ae9d65c8 fix make distcheck 2010-10-04 17:36:08 -04:00