Tomas Frydrych
31f48c0cf0
Removed unnecessary g_object_ref/unref() bracketing around g_object_notify().
2009-03-17 12:28:00 +00:00
Tomas Frydrych
cd0ef08783
Added MetaWindow::fullscreen property (read only).
2009-03-17 12:27:13 +00:00
Tomas Frydrych
4203fd2993
Added MetaWorkspace::n-windows property (read-only).
2009-03-17 08:54:19 +00:00
Tomas Frydrych
54e56a47da
Moved meta_window_get_outer_rect() prototype to window.h
...
Useful for plugins.
2009-03-17 08:35:17 +00:00
Tomas Frydrych
9a4d1d1375
Moved bunch of prototypes from display-private.h to display.
2009-03-12 14:48:22 +00:00
Dan Winship
616e140420
Ignore override-redirect windows when restacking based on window groups.
...
http://bugzilla.gnome.org/show_bug.cgi?id=571616 /
http://bugzilla.openedhand.com/show_bug.cgi?id=1461
2009-02-26 09:59:14 -05:00
Tomas Frydrych
39a3bb2c7d
Sync up to upstream 2.25.144
...
Conflicts:
configure.in
src/core/main.c
src/core/prefs.c
src/core/window.c
src/include/prefs.h
2009-02-12 17:14:12 +00:00
Tomas Frydrych
8c0ae7be83
Turned window decorated flag into MetaWindow::decorated property.
...
This allows things like the compositor to easily track decoration status.
2009-02-11 12:16:41 +00:00
Thomas James Alexander Thurman
b2da6d86f3
queue resize on window undecorate
...
* src/core/frame.c: queue resize on window undecorate
svn path=/trunk/; revision=4114
2009-02-05 01:06:15 +00:00
Thomas James Alexander Thurman
21416f453a
Wrap g_error calls in braces.
...
* src/core/schema-bindings.c: Wrap g_error calls in braces.
svn path=/trunk/; revision=4110
2009-02-03 02:21:36 +00:00
Thomas James Alexander Thurman
e5db44ca90
Set prop_hooks_table to NULL after freeing it.
...
* src/core/window-props.c:
svn path=/trunk/; revision=4103
2009-02-01 20:47:33 +00:00
Thomas James Alexander Thurman
a203fb1037
Window properties are looked up in a hash table rather than
...
by iteration over an array. Saves ~44us per window, but
also makes the code cleaner.
* src/core/display-private.h:
* src/core/window-props.c:
svn path=/trunk/; revision=4097
2009-01-29 14:32:31 +00:00
Thomas James Alexander Thurman
8e6c0bec78
some lists failed to keep track of their contents and therefore didn't
...
* src/core/edge-resistance.c: some lists failed to keep track
of their contents and therefore didn't free correctly.
Closes #552303 .
svn path=/trunk/; revision=4095
2009-01-28 02:30:30 +00:00
Thomas James Alexander Thurman
69ae9e4a9d
Free name of old theme when new theme is loaded.
...
* src/core/prefs.c: Free name of old theme when new theme
is loaded.
svn path=/trunk/; revision=4094
2009-01-28 02:08:09 +00:00
Thomas James Alexander Thurman
0a172cc053
Added a gconf key to swap the meanings of the right and
...
middle buttons when the modifier key is held down.
Closes #437910 . Thanks to Matt Kraai for looking over
the patch.
* src/core/display.c:
* src/core/prefs.c:
* src/include/prefs.h:
* src/metacity.schemas.in.in:
svn path=/trunk/; revision=4091
2009-01-27 21:05:42 +00:00
Thomas James Alexander Thurman
f5fa4a3866
All the window properties are now handled using simple
...
window property handlers. Closes #549886 .
* src/core/window-private.h:
* src/core/window-props.c:
* src/core/window.c:
svn path=/trunk/; revision=4090
2009-01-27 05:03:06 +00:00
Thomas James Alexander Thurman
8cbcbb0655
More of the window properties are checked using simple
...
window property handlers. The ones which remain don't
actually look up the new value in the ordinary way, and
so are a little trickier to merge. Added an "initial"
flag to be on the safe side that the behaviour is the
same as before (so we don't do things when a window's
first mapped that we only used to do when a property
changed). Partial fix for bug #549886 .
* src/core/window-props.c:
* src/core/window-props.h:
* src/core/window.c:
svn path=/trunk/; revision=4089
2009-01-27 03:53:07 +00:00
Thomas James Alexander Thurman
35d9d2864f
add support for _NET_WM_MOVERESIZE_CANCEL.
...
* src/core/window.c: add support for _NET_WM_MOVERESIZE_CANCEL.
svn path=/trunk/; revision=4088
2009-01-25 22:59:50 +00:00
Tomas Frydrych
1d38209520
Fixed process_tab_grab()
...
When there is custom handler installed for the tab releavant tab function
we do not want to actually call it form inside of this function, only to
ensure that the grab is not released. The handler will get called in the
normal way in process_event(). Whoever installed the handler (and requested
the grab) also has to ensure the grab is released.
2009-02-03 17:30:49 +00:00
Tomas Frydrych
c1f3a5c67d
Ensure that if custom handler is installed for one of the shortcuts that do
...
keyboard grab, the custom handler gets also called while the grab is in place.
2009-02-03 13:23:08 +00:00
Tomas Frydrych
6e543fbcfd
Store the default keybinding handler alongside the custom one.
...
This allows us to fall back onto it if the custom handler removes itself.
2009-02-03 13:20:51 +00:00
Tomas Frydrych
9dee164790
Ensure that we do not attempt to free the tab popup when there is none.
2009-02-03 13:16:01 +00:00
Tomas Frydrych
b0cc2a8614
Handle gconf errors better for string values in preferences.
2009-02-03 10:15:23 +00:00
Dan Winship
f4ecc9bab8
Make compositor private a GObject than a void pointer
...
Requiring the compositor private object to be a GObject allows the
return value of meta_window_get_compositor_private() to be used
via gobject-introspection, since the type and memory management
can be determined.
This allows a reverse mapping from MetaWindow to MutterWindow.
- Change meta_window_get/set_compositor_private to use GObject
rather than void *
- Adapt code in compositor-mutter.c to match.
2009-02-02 15:16:05 -05:00
Tomas Frydrych
c3884e9900
Can't g_free() MetaDisplay GObject.
2009-02-03 09:11:32 +00:00
Tomas Frydrych
39c88facc5
Move meta_display_get_tab_*() functions into display.h
2009-02-02 17:01:27 +00:00
Tomas Frydrych
6b1aa3cf04
Do not allocate the tab_pop up object at all when the --no-tab-popup option is set
...
This option is intended primarily so that and Alt+Tab implementation can be
provided in a plugin, so having the object around makes no sense.
2009-02-02 15:28:26 +00:00
Tomas Frydrych
2e1893f7d3
--no-tab-popup && no-tab-popup gconf key
...
Disables the use of popup (and highlight frame) for window cycling.
2009-02-02 14:09:04 +00:00
Tomas Frydrych
d1fd844bc4
MetaWindow::raised signal.
2009-02-02 14:08:46 +00:00
Tomas Frydrych
db273ce50c
MetaWindow::focus signal.
2009-02-02 11:00:13 +00:00
Tomas Frydrych
2338611046
meta_keybindings_switch_window()
...
Public function to switch to the next window in Alt+Tab like fashion.
2009-01-29 16:26:12 +00:00
Tomas Frydrych
7d3a05f2d1
Removed const qualifier from key_handlers[] so we can modify it; use find_handler() in meta_keybindings_set_custom_handler().
2009-01-29 15:29:43 +00:00
Tomas Frydrych
952d63a127
Implemented meta_keybindings_set_custom_handler().
2009-01-29 15:07:57 +00:00
Tomas Frydrych
23bed522ab
Expose keybindings data types; add user_data parameter the handler signature.
2009-01-29 14:53:03 +00:00
Tomas Frydrych
813acae961
Rename keybindings.h to keybindings-private.h
2009-01-29 14:16:01 +00:00
Tomas Frydrych
a96939be0f
MetaWindow::workspace-changed signal.
...
Emitted when window is moved from one workspace to another; the number of the
old workspace is passed to the signal handlers.
2009-01-20 12:52:06 +00:00
Tomas Frydrych
cb3870f9f6
Sanity check to ensure we do not try to relocate windows onto NULL workspace.
2009-01-20 12:48:59 +00:00
Tomas Frydrych
25d628aea2
Exposed MetaGroup API.
2009-01-15 15:37:48 +00:00
Tomas Frydrych
aad8eb1999
Added meta_group_get_size() to allow for more efficient check of whether window is part of a larger group.
2009-01-15 15:21:43 +00:00
Tomas Frydrych
fc6b78a20c
Ensure that meta_compositor_map_window() is even when we only get MapNotify.
2009-01-12 16:41:06 +00:00
Tomas Frydrych
ec0562550a
Added meta_window_get_role().
2009-01-12 12:30:31 +00:00
Tomas Frydrych
95fa3a3879
Ensure that when a workspace is removed from the middle of the list, the
...
_NET_WM_DESKTOP props on windows on following workspaces are correctly set.
2009-01-09 15:04:53 +00:00
Frederic Peters
b66fbc0369
added call to g_thread_init(), as ORBit2 stopped doing it and Metacity is
...
* src/core/main.c: (main): added call to g_thread_init(), as ORBit2
stopped doing it and Metacity is using gconf; closes #565517 .
svn path=/trunk/; revision=4063
2008-12-25 13:06:00 +00:00
Thomas James Alexander Thurman
01027006a7
windows which attempt to present themselves but are offscreen end up
...
* src/core/window.c: windows which attempt to present themselves
but are offscreen end up demanding attention, unless they
are transient, when they move to the current workspace
as before. Closes #482354 .
svn path=/trunk/; revision=4060
2008-12-21 05:35:30 +00:00
Thomas James Alexander Thurman
45f2ec5f64
patches to fixes for -Wall. Closes #562939 .
...
* src/core/iconcache.c: patches to fixes for -Wall. Closes #562939 .
svn path=/trunk/; revision=4049
2008-12-02 08:15:00 +00:00
Thomas James Alexander Thurman
3b1e91342e
gnome-doc-tools version doesn't need to be so high. disable the entire
...
* configure.in: gnome-doc-tools version doesn't need to be so high.
* src/compositor/compositor-xrender.c: disable the entire file if the
compositor is disabled.
* src/core/async-getprop.[ch]: fixes for -Wall
* src/core/iconcache.c: fixes for -Wall
* src/core/testasyncgetprop.c: fixes for -Wall
* src/core/xprops.c: fixes for -Wall
svn path=/trunk/; revision=4045
2008-12-01 22:54:57 +00:00
Thomas James Alexander Thurman
cf2206352f
add casts ( #562106 )
...
* src/core/xprops.c: add casts (#562106 )
svn path=/trunk/; revision=4038
2008-11-25 23:18:08 +00:00
Thomas James Alexander Thurman
41b6f0803e
remove apparently spurious warnings about operations on window "none"
...
* src/core/display.c: remove apparently spurious warnings about
operations on window "none"
svn path=/trunk/; revision=4026
2008-11-23 18:53:55 +00:00
Thomas James Alexander Thurman
c2abbce2ed
fix stupid infinite loop when GConf is turned off.
...
* src/core/prefs.c: fix stupid infinite loop when GConf is turned off.
svn path=/trunk/; revision=4024
2008-11-22 19:34:03 +00:00
Thomas James Alexander Thurman
38cd6a6c1f
fix two places where there was a warning if GConf was turned off.
...
* src/core/prefs.c: fix two places where there was a warning
if GConf was turned off.
svn path=/trunk/; revision=4023
2008-11-22 19:10:50 +00:00