Compare commits
150 Commits
Author | SHA1 | Date | |
---|---|---|---|
31e6cdf345 | |||
c8aaa5e33e | |||
65aa3e3927 | |||
b192771b93 | |||
c1977b6532 | |||
50d1b53267 | |||
cbec96a62f | |||
a28a5749db | |||
5eb8aa655b | |||
3543782f39 | |||
4ff4ebebb6 | |||
a3c96c12d6 | |||
eb0e658c99 | |||
4d069650ae | |||
d176755926 | |||
eb2a6946b2 | |||
d067ba4431 | |||
fdf11f10fb | |||
8fd1835d1a | |||
c77075833a | |||
b2a7ab270c | |||
7503d4812c | |||
1fd8b0b4c5 | |||
8615cf88ab | |||
f73a13dc4a | |||
f973e2effa | |||
f9fed16608 | |||
0578ed0c86 | |||
61520f5bd6 | |||
be853ec931 | |||
440b92adf0 | |||
8fa4d22937 | |||
397ae90d5c | |||
7f97d0bdc5 | |||
14956abb6e | |||
61cea18ff0 | |||
83a449df95 | |||
9c683aaea9 | |||
634b76b82c | |||
a3ea43da52 | |||
f464b85ffc | |||
db055c6029 | |||
eedc74943b | |||
82b134ed46 | |||
cc1de7e7d0 | |||
a199d74069 | |||
7a23d3024a | |||
734888406c | |||
e0ce24b3f5 | |||
c13e62f72c | |||
3d958de33e | |||
4689688af3 | |||
d402a68c73 | |||
66d1dd3679 | |||
43e48fc962 | |||
1fea2a5101 | |||
92e317ec2a | |||
c5d1d2db62 | |||
b1725bc18c | |||
5500c2b3a8 | |||
82db52aaf4 | |||
654d966e6c | |||
92663c81f5 | |||
e3ebcc004d | |||
26e41bc24a | |||
c9e9412540 | |||
14d6d63ad0 | |||
2134213f92 | |||
1935e508f7 | |||
83b6ec7899 | |||
9c0ffc26c1 | |||
39b28a7e42 | |||
09799c6617 | |||
9fad2246ae | |||
585da56118 | |||
cccb482cd9 | |||
eb79c75266 | |||
19171122ca | |||
a4665b1a14 | |||
829f9ac61f | |||
24b846328f | |||
96c43866b1 | |||
9043191927 | |||
6e6ed81c19 | |||
3597035f67 | |||
9f39a18fc5 | |||
ab2de9dccd | |||
d66c6cf55e | |||
4f24f7e5fc | |||
3cd0e86bdd | |||
4d230daf09 | |||
9dd642f4af | |||
a9f9176ba5 | |||
637cce0f91 | |||
74b97dcd14 | |||
4e28a4d654 | |||
9d62d13f88 | |||
eeca838778 | |||
d6f0d2c64c | |||
44cfceba00 | |||
349fb7c297 | |||
f9b5cdfeb1 | |||
de8eb1f8ee | |||
0ff602be06 | |||
7246d0ede2 | |||
50468b6563 | |||
6793236642 | |||
d8ccc7896f | |||
defd9aed32 | |||
6ee1d4348d | |||
27dbd12d7b | |||
93fc5c5561 | |||
b48d290064 | |||
6bdb3cf115 | |||
3b39026ba2 | |||
70ffb564ff | |||
4760d043d3 | |||
8405e75931 | |||
6c4a283b4c | |||
7c6b55e79e | |||
d8c4b22b88 | |||
bbd98e7b86 | |||
0536438317 | |||
e2151a5fd7 | |||
c84da3ce1b | |||
bb50f65532 | |||
28752718c5 | |||
4c76791d4c | |||
a66ae4ad55 | |||
7841e80496 | |||
27626d14b7 | |||
f75e96cd3c | |||
9bc1521615 | |||
f2158218be | |||
183190d089 | |||
ebc3775f19 | |||
97d7e84a04 | |||
2b2b728b64 | |||
46fa843b0e | |||
e7d336ab0e | |||
6e23b0af3b | |||
735c33bd9f | |||
47626a17d7 | |||
ce86d3f230 | |||
31878239c3 | |||
1133a4ff9c | |||
5822443b20 | |||
cf05167c55 | |||
a9504f1495 | |||
3716c30264 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -43,7 +43,7 @@ POTFILES
|
||||
50-metacity-desktop-key.xml
|
||||
50-metacity-key.xml
|
||||
inlinepixbufs.h
|
||||
libmutter-private.pc
|
||||
libmutter.pc
|
||||
mutter
|
||||
mutter-theme-viewer
|
||||
mutter.desktop
|
||||
|
769
NEWS
769
NEWS
@ -1,3 +1,772 @@
|
||||
3.0.2
|
||||
=====
|
||||
|
||||
* Fix a crash when running without XKB support [Adam]
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=647777
|
||||
* Fix smallish memory leaks [Colin]
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=649500
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=649504
|
||||
* Ignore mirrored monitors when listing monitors, fixing
|
||||
drag-and-drop problems in GNOME Shell [Owen]
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=649299
|
||||
* Don't allow side-by-side tiling of non-maximizable windows
|
||||
like dialogs and utility windows [Dan]
|
||||
* Fix interaction of _NET_WM_WINDOW_OPACITY with window effects,
|
||||
making it work again with GNOME Shell
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=648613
|
||||
|
||||
Contributors:
|
||||
Adam Jackson, Colin Walters, Dan Winship
|
||||
|
||||
Translations:
|
||||
Abduxukur Abdurixit [ug]
|
||||
|
||||
3.0.1
|
||||
=====
|
||||
|
||||
* If WM_CLIENT_MACHINE isn't set, don't assume a window is remote;
|
||||
fixes behavior of Fox toolkit applications under GNOME Shell.
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=647662 [Colin]
|
||||
* Fix cases where windows could get stuck drawing as focused after
|
||||
an attached modal dialog was closed. [Dan]
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=647613
|
||||
* Fix a bug where a window that is too big to be tiled side-by-side
|
||||
would behave strangely when using the gesture of dragging to
|
||||
the top to maximize. [Florian]
|
||||
|
||||
Contributors:
|
||||
Florian Müllner, Colin Walters, Dan Winship
|
||||
|
||||
Translations:
|
||||
Amitakhya Phukan [as], Kristjan Schmidt [eo], Muhammet Kara [tr]
|
||||
|
||||
3.0.0
|
||||
=====
|
||||
|
||||
* Avoid crashing when you have a single window and try to move it between
|
||||
workspaces. [Dan]
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=642957
|
||||
|
||||
Contributors:
|
||||
Dan Winship
|
||||
|
||||
Translations:
|
||||
Jordi Serratosa [ca], Petr Kovar [cz], Ask H. Larsen [da], Bruce Cowan [en_GB],
|
||||
Inaki Larranaga Murgoitio [eu], Gabor Kelemen [hu], Dirgita [id], Shankar Prasad [kn],
|
||||
Changwoo Ryu [ko], Wouter Bolsterlee [nl], Duarte Loreto [pt],
|
||||
Antonio Fernandes C. Neto, Rodrigo Padula de Oliveira [pt_BR], T. Vasudevan [ta],
|
||||
Nguyễn Thái Ngọc Duy [vi], Chao-Hsiung Liao [zh_HK, zh_TW]
|
||||
|
||||
2.91.93
|
||||
=======
|
||||
|
||||
* Fix bug where, when a monitor was hot-plugged, all workspaces
|
||||
would collapse to a single workspace. (There are still issues
|
||||
when a secondary monitor is hot-plugged to the left of the
|
||||
primary monitor.) [Alex]
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=645408)
|
||||
|
||||
* Fix a crash for the cycle_group action [Jasper]
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=645843
|
||||
|
||||
* Fix misdrawing of window shadows on some focus changes [Dan]
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=636904
|
||||
|
||||
* Export meta_get_replace_current_wm() to allow fixing a
|
||||
GNOME Shell bug with --replace [Colin]
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=645590
|
||||
|
||||
Contributors:
|
||||
Alexander Larsson, Jasper St. Pierre, Colin Walters, Dan Winship
|
||||
|
||||
Translations:
|
||||
Alexander Shopov [bg], Christian Kirbach [de], Yaron Shahrabani [he],
|
||||
Rudolfs Mazurs [lv], A S Alam [pa], Yuri Myasoedov [ru], Daniel Nylander [se],
|
||||
Abduxukur Abdurixit [ug], Daniel Korostil [uj], Aron Xu [zh_CN]
|
||||
|
||||
2.91.92
|
||||
=======
|
||||
|
||||
* Add a workspaces_only_on_primary preferences. When set, this makes
|
||||
workspaces switching only apply to windows on the primary monitor,
|
||||
while windows on other monitors are unaffected.
|
||||
* Export API for monitor handling [Alex]
|
||||
MetaScreen::monitors-changed signal
|
||||
meta_screen_get_primary_monitor()
|
||||
meta_window_is_on_primary_monitor()
|
||||
meta_window_get_monitor()
|
||||
MetaWindow::window-entered-monitor, <etaWindow::window-left-monitor
|
||||
meta_window_move_to_monitor() [Florian]
|
||||
* Behavior improvemnts for attached modal dialogs:
|
||||
- Allow dragging dragging on the titlebar to move the parent ["Ron"]
|
||||
- Allow resizing [Florian]
|
||||
- Constrain to be on the current monitor [Florian]
|
||||
* Don't turn on XSMP autorestart [Colin]
|
||||
* Combine libmutter-wm and libmutter-private into a single libmutter
|
||||
[Frédéric]
|
||||
* Export methods to move and resize windows [Jeffery]
|
||||
meta_window_move(), meta_window_resize(), meta_window_move_frame()
|
||||
* Add a MUTTER_WM_CLASS_FILTER environment variable to allow existing
|
||||
windows to be ignored when performance testing. [Owen]
|
||||
* Add a new compositor-based flash for visual bell [Dan]
|
||||
* Fix bug where application specified values for properties like
|
||||
"skip taskbar" were sometimes ignored [Dan]
|
||||
* Bug fixes [Dan, Florian, Giovanni, Jasper, Owen]
|
||||
* Build fixes [Rico]
|
||||
|
||||
Contributors:
|
||||
Giovanni Campagna, Florian Müllner, Alexander Larsson, Jeffery Olson,
|
||||
Frédéric Péters, Owen Taylor, Jasper St. Pierre, Rico Tzschichholz,
|
||||
"Ron", Colin Walters, Dan Winship
|
||||
|
||||
Translations:
|
||||
Khaled Hosny [ar], David Planella [ca], Mario Blättermann [de],
|
||||
Bruce Cowan [en_GB], Jorge González, Daniel Mustieles [es], Ivar Smolin [et],
|
||||
Bruno Brouard [fr], Fran Diéguez [gl], Yaron Shahrabani [he],
|
||||
Gabor Kelemen [hu], Luca Ferretti [it], Kjartan Maraas [nb], Piotr Drąg [pl],
|
||||
Duarte Loreto [pt], Lucian Adrian Grijincu, Adi Roiban [ro],
|
||||
Yuri Myasoedov [ru], Matej Urbančič [sl], Daniel Korostil [uk]
|
||||
|
||||
Bugs fixed:
|
||||
624360 window shows up in when pressing alt+tab, but skip_taskbar_hint is set to True
|
||||
631308 Dialogs attached to parent sometimes extend out of the screen
|
||||
638674 [PATCH] Allow moving attached dialogs
|
||||
639765 a11y: visual alert only works per-window, not screen
|
||||
641975 Pre-_NET_WM_ICONs look corrupted
|
||||
642355 patch to expose MetaWindow.move(), .resize() and add/expose .move_frame() to javascript
|
||||
642787 MetaWindowActor has a dangling reference to its MetaWindow
|
||||
643597 Attached dialogs not resizable, even by app request
|
||||
644188 Broken build of 2.91.91
|
||||
644252 Add MUTTER_WM_CLASS_FILTER environment variable
|
||||
644529 session: Change XSMP restart style to Never
|
||||
644565 Kill libmutter-private ?
|
||||
644961 auto-tiling makes moving already-tiled windows hard
|
||||
645224 Translation message doesn't make much sense
|
||||
645247 Methods of Meta.Rectangle are missing annotations.
|
||||
645455 tiling: Fix dragging windows free from edge-tiling
|
||||
|
||||
2.91.91
|
||||
=======
|
||||
|
||||
* Build a libmutter-wm that contains all of the logic and that
|
||||
can be linked to to create custom executables. The mutter executable
|
||||
becomes a small stub linked to this library [Dan]
|
||||
* Move installed headers files into a meta/ subdirectory instead
|
||||
of polluting the toplevel namespace [Dan]
|
||||
* Remove various unused complications: [Dan]
|
||||
- Ability to set the set of plugins via GConf
|
||||
- Plugin 'params'
|
||||
- meta_restart() and "mutter-message restart"
|
||||
* Don't exit when we are requested to exit via XSMP, assume we'll be
|
||||
killed along with the X server; this avoids visual artifacts from
|
||||
unmanaging windows when logging out [Colin]
|
||||
* Build fixes [Dan, Jani, Jeff]
|
||||
|
||||
Contributors:
|
||||
Jani Monoses, Jeff Olson, Colin Walters, Dan Winship
|
||||
|
||||
Translations:
|
||||
Bruno Brouard [fr], Kjartan Maraas [nb], Daniel Korostil [uk]
|
||||
|
||||
Bugs fixed:
|
||||
643194 patch: expose new meta_window_get_window_rect
|
||||
643437 Don't exit on XSMP request
|
||||
643959 Make mutter into a library
|
||||
|
||||
2.91.90
|
||||
=======
|
||||
|
||||
* Change <Alt>Above_Tab from being a cycle_group binding to
|
||||
a switch_group binding [Rui]
|
||||
* Make plugin-loading failure fatal [Colin]
|
||||
* Add 'position-changed' signal to MetaWindowActor [Owen]
|
||||
* When 'live_hidden_previews' is enabled, position hidden windows
|
||||
to allow the creation of workspace previews [Owen]
|
||||
* Fix bug with opacity of MetaBackgroundActor
|
||||
|
||||
Contributors:
|
||||
Rui Matos, Owen Taylor, Colin Walters
|
||||
|
||||
Translations:
|
||||
Jorge González [es], Mattias Põldaru [et], Sweta Kothari [gu], Luca Ferretti [it],
|
||||
Changwoo Ryu [ko], Nguyễn Thái Ngọc Duy [vi]
|
||||
|
||||
Bugs fixed:
|
||||
641309 When live_hidden_previews is set, force placement for hidden windows
|
||||
641310 MetaWindowActor: Add a 'positioned-changed' signal
|
||||
641979 Visual glitch on workspace selector closing overview mode
|
||||
641384 Make plugin loading failure fatal
|
||||
642426 Don't pass handled key events to GTK+
|
||||
|
||||
2.91.6
|
||||
======
|
||||
|
||||
* Add meta_screen_override_window_layout() to let a plugin set the workspace
|
||||
layout [Owen]
|
||||
* Add a 'size-changed' signal to MetaWindowActor [Florian]
|
||||
* Add meta_window_actor_is_destroyed() [Adel]
|
||||
* Fix problems with window tile previews when cancelling a move [Florian]
|
||||
* Port theme elements that use GTK+ drawing to use GtkStyleContext instead
|
||||
of the deprecated GtkStyle. [Florian]
|
||||
* Fix compiler warnings that were causing compilation failures [Jasper, Owen]
|
||||
* Misc bug fixes [Gabor, Jasper, Owen, Rui]
|
||||
|
||||
Contributors:
|
||||
Adel Gadllah, Gabor Kelemen, Rui Matos, Florian Müllner, Jasper St. Pierre,
|
||||
Owen Taylor
|
||||
|
||||
Translations:
|
||||
Khaled Hosny [ar], Alexander Shopov [bg], Petr Kovar [cz], Fran Diéguez [gl],
|
||||
Marios Zindilis [gr], Gabor Kelemen [hu], Kjartan Maraas [nb], A S Alam [pa],
|
||||
Daniel Nylander [se], Chao-Hsiung Liao [zh_HK, zh_TW]
|
||||
|
||||
2.91.5
|
||||
======
|
||||
|
||||
* Add a Above_Tab key symbol that can be used in key bindings to mean
|
||||
the key above the Tab key. This is now the default binding for
|
||||
cycle_group in both Mutter and Metacity. [Owen]
|
||||
* Add new frame states for tiled-on-the-left and tiled-on-the-right [Florian]
|
||||
* Add new background drawing functions that can be defined in a theme
|
||||
for single buttons. [Florian]
|
||||
* Draw the right button backgrounds for all custom button layouts [Florian]
|
||||
* Remove vestigal --composite/--no-composite command line options [Nickolas]
|
||||
* Fix building on GLES [Andreas]
|
||||
* Code cleanups [Adel, Owen]
|
||||
|
||||
Contributors:
|
||||
Adel Gadllah, Nickolas Lloyd, Andreas Mueller, Florian Müllner, Owen Taylor
|
||||
|
||||
Translations:
|
||||
Mattias Põldaru, Ivar Smolin [et], Gheyret T. Kenji [ug]
|
||||
|
||||
Bugs fixed:
|
||||
613124 Invalid visibility-related asserts in MutterWindow
|
||||
626875 Fix handling of --composite and --no-composite command line options
|
||||
629282 [PATCH] Fix errors building for gles-systems (clutter-eglx)
|
||||
635569 Add an "Above_Tab" pseudo-keysym
|
||||
635683 add specific button background for single button (per side) case
|
||||
635686 button backgrounds broken with rtl locales
|
||||
637330 [PATCH] theme: Add tiled_left/tiled_right frame states
|
||||
|
||||
2.91.4
|
||||
======
|
||||
|
||||
* Update for GTK+ 3 changes [Benjamin, Colin, Emmanuele, Florian]
|
||||
* Support maximizing a window by dragging to the top of the screen
|
||||
in the same way you can tile by dragging to the edge of the screen.
|
||||
[Ray, Florian]
|
||||
* Misc bug fixes [Milan, Owen]
|
||||
|
||||
Contributors:
|
||||
Emmanuele Bassi, Milan Bouchet-Valat, Florian Müllner, Benjamin Otte,
|
||||
Ray Strode, Owen Taylor, Colin Walters
|
||||
|
||||
Translations:
|
||||
Matej Urbančič [sl], Nguyễn Thái Ngọc Duy [vi]
|
||||
|
||||
Bugs fixed:
|
||||
630548 gnome-shell could auto-maximize windows when dragged to top edge of screen
|
||||
636083 workspace: Consider text direction when switching
|
||||
636301 Port testgradient example to GTK3
|
||||
636302 Replace some GDK X11 calls with future-proof ones
|
||||
636491 valgrind: meta_window_shape_new (meta-window-shape.c:79)
|
||||
637802 ui: Adapt to GDK API changes
|
||||
|
||||
2.91.3
|
||||
======
|
||||
|
||||
* Better shadows: [Owen]
|
||||
- Shadows can be different for different window types and focus states
|
||||
- Shadows are larger by default, especially for the currently active
|
||||
window
|
||||
- Shadows for attached modal dialogs and menus are drawn not to
|
||||
overlap the attachment point.
|
||||
- Shadows follow the shape of shaped windows
|
||||
* Optimization: [Owen]
|
||||
- Avoid repainting in situations when windows are potentially restacked
|
||||
but aren't actually restacked.
|
||||
- Pay attention to partial stage repaints in obscured window calculations
|
||||
- Better optimization of painting obscured shadows; turn off shadows
|
||||
for maximized windows.
|
||||
- Move background repainting into Mutter; doing it here rather than
|
||||
in plugins allows not painting obscured parts of the background.
|
||||
* A new frame type 'attached' is added for attached modal dialogs
|
||||
and can be referenced in theme files with a theme version of 3.2.
|
||||
* Fix updating key bindings when the keyboard layout changes
|
||||
[Derek, Owen, Thomas]
|
||||
* Bug fixes [Adel, Florian]
|
||||
* Build fixes [Dan Williams, Diego, Javier, Owen]
|
||||
|
||||
Contributors:
|
||||
Adel Gadllah, Javier Jardón, Florian Müllner, Derek Poon, Owen Taylor,
|
||||
Thomas Thurman, Diego Escalante Urrelo, Dan Williams
|
||||
|
||||
Translations:
|
||||
Khaled Hosny [ar], Jorge González [es], Fran Diéguez [gl],
|
||||
Yaron Shahrabani [he], Kjartan Maraas [nb], Gheyret T. Kenji [ug]
|
||||
|
||||
Bugs fixed:
|
||||
634779 MetaWindowGroup: further optimize paints by using current scissor
|
||||
634833 Draw the root window background
|
||||
592382 improve shadow effect
|
||||
628199 Add antialising to arc and line drawing operations
|
||||
633002 meta-actor-window: Use G_UNLIKELY for TFP check
|
||||
634771 MetaStackTracker: Avoid queueing resync for obvious no-ops
|
||||
635421 Fix crash in check_needs_shadow
|
||||
635493 configure.in: it's git, not Subversion
|
||||
635528 configure.ac: move call to AM_GNU_GLIB_GETTEXT above cflags modification
|
||||
635575 meta-window-actor: remove unused meta_window_actor_get_shadow_bounds
|
||||
636083 workspace: Consider text direction when switching
|
||||
|
||||
2.91.2
|
||||
======
|
||||
|
||||
* Remove support for GTK+ 2 [Florian]
|
||||
* Adapt to deprecation of size_request deprecation in GTK+ [Matthias]
|
||||
* Include change from Metacity to fix confusion of mouse
|
||||
tracking when double-clicking on title bar [Owen]
|
||||
* Fix bug with the the window menu getting stuck when you alt-Tab [Owen]
|
||||
|
||||
Contributors:
|
||||
Matthias Clasen, Florian Müllner, Owen Taylor
|
||||
|
||||
Translations:
|
||||
Petr Kovar [cz]
|
||||
|
||||
Bugs fixed:
|
||||
633133 Remove compatibility for GTK+-2.0
|
||||
633352 prepare for the demise of size_request
|
||||
633398 Fix check for events on UI widgets
|
||||
633401 Fix warning from synthesized events with GdkDevice
|
||||
|
||||
2.91.1
|
||||
======
|
||||
|
||||
* Default build is now GTK+ 3 build
|
||||
* Mutter namespace prefix is removed, in favor of consistent
|
||||
meta_ namespace prefixing [Owen]. Naming changes:
|
||||
MutterWindow => MetaWindowActor
|
||||
mutter_get_windows => meta_get_window_actors
|
||||
mutter_plugin_get_windows => meta_plugin_get_window_actors
|
||||
* Add missing values in MetaKeyBindingAction - this fixes a problem where
|
||||
key binding lookup wasn't working properly for some key bindings. [Dan]
|
||||
* Remove keysym parameter to meta_display_get_keybinding_action() - the
|
||||
function expected the default keysym for the keycode to always be passed [Dan]
|
||||
* Clean up installed header files - in particular, theme-parser.h is merged
|
||||
into a new public-only theme.h and private internals are moved to
|
||||
theme-private.h.
|
||||
* Fix problems with antialiased rendering of themes [Brandon, Owen, Nickolas]
|
||||
* Fix problem with parsing color constants in themes [Jon, Owen]
|
||||
* Build fixes [Colin]
|
||||
* Miscellaneous bug fixes [Giovanni, Rico]
|
||||
|
||||
Contributors:
|
||||
Giovanni Campagna, Nickolas Lloyd, William Jon McCann, Owen Taylor,
|
||||
Rico Tzschichholz, Colin Walters, Dan Winship, Brandon Wright
|
||||
|
||||
Translations:
|
||||
Fran Diéguez [gl], Yinghua Wang [zh_CN]
|
||||
|
||||
Fixed bugs:
|
||||
628401 tint and line draw ops rendering issues
|
||||
628520 unfortunate namespacing
|
||||
631487 Fix drawing of <arc> theme elements
|
||||
632116 don't clobber gerrors
|
||||
632149 Fill in missing MetaKeyBindingAction values
|
||||
632155 meta_display_get_keybinding_action: remove keysym parameter
|
||||
632474 Remove MetaRegion
|
||||
632494 introspection: remove --allow-unprefixed
|
||||
|
||||
2.91.0
|
||||
======
|
||||
|
||||
* Enable side-by-side tiling via a gesture of dragging to the left or right
|
||||
edge of the screen. (enabled with an off-by-default GConf key) [Florian]
|
||||
* Allow breaking out of maximization/tiling using a alt-middle-button window
|
||||
resize [Owen, Florian]
|
||||
* Add the ability to have modal dialogs attached to their parent window
|
||||
(enabled with an off-by-default GConf key) [Maxim]
|
||||
* Draw with Cairo rather than GDK [Florian, Benjamin]
|
||||
* Add compatibility for changes in GTK+ 3
|
||||
[Benjamin, Alban, Florian, Jasper, Matthias, Owen, Thierry]
|
||||
- libmutter-private is now only installed for GTK+ 3 builds
|
||||
- Theme parts of libmutter-private API are changed to take cairo_t
|
||||
rather than GdkDrawable
|
||||
* Update introspection build and annotations for new behavior of
|
||||
g-ir-scanner [Colin]
|
||||
* Fix bug that caused window menu options not to work [Owen]
|
||||
* Fix misbehavior of Wine windows [Owen, Alban]
|
||||
* Fix crashes from missing error traps [Adel]
|
||||
* Build fixes [Colin, Florian, Owen, Rob, Tomas]
|
||||
* Misc bug fixes [Adel, Jon, Owen, Nickolas, Tomas]
|
||||
* Cleanups [Adel, Benjamin, Florian]
|
||||
|
||||
Contributors:
|
||||
Alban Browaeys, Matthias Clasen, Maxim Ermilov, Tomas Frydrych, Adel Gadllah,
|
||||
Nickolas Lloyd, William Jon McCann, Florian Muellner, Benjamin Otte,
|
||||
Thierry Reding, Rob Staudinger, Jasper St. Pierre, Owen Taylor, Colin Walters
|
||||
|
||||
Translations:
|
||||
Alexander Shopov [bg], Mario Blättermann [de], Ask H. Larsen [dk],
|
||||
Michael Kotsarinis [el], Philip Withnall [en_UK], Jorge González [es],
|
||||
Fran Diéguez [gl], Bruno Brouard, Claude Paroz [fr], Yaron Shahrabani [he],
|
||||
Gabor Kelemen [hu], Luca Ferretti [it], Nils-Christoph Fiedler [nds],
|
||||
Kjartan Maraas [nb], A S Alam [pa], Piotr Drąg [pl], Duarte Loreto [pt],
|
||||
Antonio Fernandes C. Neto [pt_BR], Matej Urbančič [sl],
|
||||
Miloš Popović [sr, sr@latin], Tirumurti Vasudevan [ta], Aron Xu [zh_CN],
|
||||
Chao-Hsiung Liao [zh_HK, zh_TW]
|
||||
|
||||
Fixed Bugs:
|
||||
597763 With >2 workspaces, Window menu "Move to Another Workspace" menu doesn't work
|
||||
598603 displays window size when moving terminal window
|
||||
606158 "Always on top" triggers Window manager warning:
|
||||
Log level 8: meta_window_set_user_time: assertion `!window->override_redirect' failed
|
||||
610575 make meta_screen_set_cursor public
|
||||
613126 Do not cancel Alt+Tab grab due to Shift key events
|
||||
623235 BadDamage error from XSubtractDamage
|
||||
624757 Check for TFP usage after actually setting the pixmap
|
||||
625712 [mutter-shaped-texture] Remove material_workaround
|
||||
626583 Replace Gdk drawing API with cairo
|
||||
627087 Mipmap emulation not working
|
||||
627210 Crash with X error
|
||||
628544 introspection: Build with --warn-fatal, drop fix-meta-rectangle.py hack
|
||||
629127 build problem with recent gtk3
|
||||
629232 Multiple syntax errors in file mutter-message.c when building Mutter for
|
||||
GNOME Shell dependencies
|
||||
629350 [mutter-shaped-texture] Use a base material for all instances
|
||||
629931 Allow breaking out from maximization/tiling during a mouse resize
|
||||
630195 Use GDK error trapping straight-up
|
||||
630203 Prepare mutter code for GTK3 rendering-cleanup
|
||||
630671 prepare mutter for the demise of GtkObject
|
||||
630843 gtk_window_set_visual was replaced by gtk_widget_set_visua
|
||||
631147 Adapt to GTK API changes
|
||||
631175 Mutter error compiling Gnome Shell
|
||||
|
||||
2.31.5
|
||||
======
|
||||
|
||||
* Support building with GTK+ 3.0 [Florian]
|
||||
* Remove deprecated usages for compatibility with GTK+ 3.0
|
||||
[Claudio, Florian, Nickolas]
|
||||
* Export a boxed type for MetaRectangle [Owen]
|
||||
* Allow disabling -Werror with --enable-compile-warnings=yes [Nickolas]
|
||||
* Build fixes [Andreas, Florian, Owen]
|
||||
|
||||
Contributors:
|
||||
Nickolas Lloyd, Andreas Mueller, Florian Müllner, Claudio Saavedra,
|
||||
Owen Taylor
|
||||
|
||||
Translations:
|
||||
Petr Kovar [cz], Jorge González [es], Fran Diéguez [gl],
|
||||
Yaron Shahrabani [he], Matej Urbančič [sl]
|
||||
|
||||
Fixed Bugs:
|
||||
587991 - Remove deprecated GTK+ symbols
|
||||
616275 - -Werror should not be enabled by default (or should be possible to disable)
|
||||
622303 - Allow building with Gtk+-3.0
|
||||
622800 - Make mutter more gtk+ 3.0 friendly
|
||||
623335 - Make MetaRectangle a boxed type
|
||||
623639 - Work around g-ir-scanner problem with Gdk.Rectangle
|
||||
624166 - src/core/util.c: Fix warning in case WITH_VERBOSE_MODE is not set
|
||||
|
||||
2.31.4
|
||||
======
|
||||
|
||||
* Clean up MutterPlugin effect interface [Maxim]
|
||||
* Track damage as the bounding box, a significant optimizations
|
||||
for rapidly drawing clients [Robert]
|
||||
* Add meta_window_is_remote() [Colin]
|
||||
* Add meta_add_debug_topic() for turning on logging of
|
||||
specific topics [Colin]
|
||||
* Fix bug with window unmaximization [Owen]
|
||||
|
||||
Contributors:
|
||||
Robert Bragg, Maxim Ermilov, Owen Taylor, Colin Walters
|
||||
|
||||
Translations:
|
||||
Yaron Shahrabani (he), Fran Diéguez (gl), Kjartan Maraas (nb), A S Alam (pa)
|
||||
|
||||
Fixed Bugs:
|
||||
611838 - expose sub-stage redraws by streaming raw updates to ClutterX11TexturePixmap
|
||||
620585 - Add meta_window_is_remote
|
||||
620860 - function ‘meta_display_open’
|
||||
621082 - MutterPluginManager should call plugin->switch_workspace,
|
||||
when screen doesn't have any window. Or function should be renamed.
|
||||
621413 - Maximize/Unmaximize not behaving properly for some non-gnome based programs
|
||||
|
||||
2.31.2
|
||||
======
|
||||
|
||||
* Theme enhancements [Owen]
|
||||
- Add a flexible version mechanism for themes -
|
||||
metacity-theme-3.xml is now supported, and can include
|
||||
version="> 3.2" type attributes on the root element or
|
||||
any subelement.
|
||||
- Add frame_x_center/frame_y_center variables
|
||||
- Allow a theme to turn on title ellipsization
|
||||
* Performance enhancements:
|
||||
- Stream raw damage updates to ClutterX11TexturePixmap
|
||||
to enable partial stage updates when windos change [Robert]
|
||||
- Don't trap XErrors in meta_compositor_process_event [Adel]
|
||||
* Add meta_prefs_override_preference_location(); this allows
|
||||
a plugin like GNOME Shell to redirect preferences to a
|
||||
plugin-specific location. [Owen]
|
||||
* Support a _MUTTER_HINTS window property; this is a string
|
||||
property holding key-value pairs with plugin-specific
|
||||
interpretation [Tomas]
|
||||
* Build with GSEAL_ENABLE [Florian, Javier]
|
||||
* Add meta_display_get_leader_window() [Tomas]
|
||||
* Add meta_display_sort_windows_by_stacking [Colin]
|
||||
* Export
|
||||
meta_display_get_last_user_time()
|
||||
meta_display_xserver_time_is_before()
|
||||
meta_window_foreach_ancestor(),
|
||||
meta_window_foreach_transient()
|
||||
meta_window_lower()
|
||||
meta_window_raise()
|
||||
meta_window_set_demands_attention()
|
||||
meta_window_unset_demands_attention() [Colin]
|
||||
* Bug fixes [Dan, Edward, Owen, Tomas]
|
||||
* Build fixes [Owen, Dominique, Vincent]
|
||||
|
||||
Contributors:
|
||||
Robert Bragg, Adel Gadllah, Tomas Frydrych, Javier Jardón,
|
||||
Dominique Leuenberger, Florian Müllner, Edward Sheldrake,
|
||||
Owen Taylor, Vincent Untz, Colin Walters, Dan Winship
|
||||
|
||||
Translations:
|
||||
Xandru Armesto Fernandez (ast), Khaled Hosny (ar), Petr Kovar (cz),
|
||||
Mario Blättermann, (de), Jorge González (es),
|
||||
Inaki Larranaga Murgoitio [eu), Claude Paroz (fr), Luca Ferretti (it),
|
||||
Gintautas Miliauskas (lt), Pavol Šimo (sk), Matej Urbančič (sl)
|
||||
|
||||
Fixed Bugs:
|
||||
591842 - ellipsize titles when oversize
|
||||
592503 - Add a flexible version mechanism
|
||||
595496 - Use accessor functions instead direct access (use GSEAL GnomeGoal)
|
||||
596659 - Fix handling of grabbed key events
|
||||
613123 - Framework for plugin-specific per-window hint
|
||||
613125 - Add meta_display_get_leader_window()
|
||||
613127 - Keep num_workspaces key in sync with the actual workspace number
|
||||
613136 - remove over-restrictive assert from meta_prefs_get_workspace_name()
|
||||
613398 - Don't trap XErrors in meta_compositor_process_event
|
||||
615586 - Allow redirecting preferences to a different GConf key
|
||||
615672 - cant' compile mutter error: dereferencing pointer ‘p’ does break
|
||||
strict-aliasing rules
|
||||
616050 - alt-tab infrastructure patches
|
||||
616274 - mutter from git fails with gcc 4.5 (on new warning)
|
||||
616546 - On dual screen maximized windows dragged to the second screen no
|
||||
longer update their contents
|
||||
618138 - Work around COGL bug causing flash for new windows
|
||||
618613 - Fix crash with --sync option
|
||||
|
||||
2.29.1
|
||||
======
|
||||
|
||||
* Support and require Clutter 1.2 (Owen)
|
||||
* Add meta_display_get_keybinding_action() (Colin, Dan)
|
||||
* Add meta_window_get_wm_class_instance() (Tomas)
|
||||
* Remove workaround for bug fixed in intel driver Q2/2009 release (Robert)
|
||||
* Build fixes (Owen, Brian, Nguyễn Thái Ngọc Duy)
|
||||
|
||||
Contributors:
|
||||
Robert Bragg, Brian Cameron, Tomas Frydrych, Nguyễn Thái Ngọc Duy,
|
||||
Owen Taylor, Colin Walters, Dan Winship
|
||||
|
||||
Translations:
|
||||
Alexander Shopov (bg), Mario Blättermann (de), Bruno Brouard (fr),
|
||||
Nils-Christoph Fiedler (nds), Piotr Drąg (pl), Aron Xu (zh_CN)
|
||||
|
||||
Fixed Bugs:
|
||||
|
||||
610862 Support and require Clutter 1.1
|
||||
612506 mutter 2.29.0 fails to compile on Solaris
|
||||
613100 [MetaDisplay] Expose meta_display_get_keybinding_action
|
||||
613121 Remove workaround for multitexturing with old intel drivers
|
||||
613128 [MetaWindow] Accessor for the instance part of WM_CLASS property
|
||||
613278 meta_display_get_keybinding_action: strip out uninteresting modifiers
|
||||
|
||||
2.29.0
|
||||
======
|
||||
|
||||
* Improve appearance of scaled down windows using mipmap emulation (Owen)
|
||||
* Added signals: MetaDisplay::window-created, MetaDisplay::window-marked-urgent,
|
||||
MetaDisplay::window-demands-attention, MetaWindow::unmanaged (Colin, Tomas)
|
||||
* Added properties: MetaWindow:demands-attention, MetaWindow:urgent,
|
||||
MetaWindow:maximized-horizontally, MetaWindow:maximized-vertically (Florian, Tomas)
|
||||
* Fix nasty crash when workspace "struts" changed during a window move (Jon, Owen)
|
||||
* Bug fixes (Dan, Maxim, Neil, Owen, Tomas)
|
||||
* Build fixes (Colin, Emmanuele, Nickolas, Owen, Richard)
|
||||
* Merge Metacity changes since 2.26. Includes themable sound support
|
||||
via libcanberra (Owen)
|
||||
|
||||
Contributors
|
||||
Emmanuele Bassi, Maxim Ermilov, Tomas Frydrych, Richard Hughes, Nickolas Lloyd,
|
||||
Florian Müllner, Jon Nettleton, Neil Roberts, Owen Taylor, Colin Walters,
|
||||
Dan Winship
|
||||
|
||||
Additional Metacity contributors:
|
||||
Thomas Hindoe Paaboel Andersen, Peter Bloomfield, Matthias Clasen,
|
||||
Matt Kraai, Claude Paroz, Lennart Poettering, Ray Strode, Thomas Thurman,
|
||||
Vincent Untz, Tomislav Vujec, Tomeu Vizoso, Travis Watkins, 'alexisdm59'
|
||||
|
||||
Translations:
|
||||
Khaled Hosny (ar), Petr Kovar (cz), Kjartan Maraas (nb), Djavan Fagundes (pt_BR),
|
||||
Nils-Christoph Fiedler (nds), Matej Urbančič (sl), Vincent Untz
|
||||
|
||||
Fixed Bugs:
|
||||
|
||||
588065 Adds demands-attention signal to the window class
|
||||
591913 Fails to skip current window on alt+tab when another window is asking for attention
|
||||
592567 Dereferencing NULL in mutter_window_get_workspace()
|
||||
597052 Add signal to MetaDisplay so we know when a window has demanded-attention
|
||||
598289 Add "window-created" signal to MetaDisplay, "unmanaged" signal for MetaWindow
|
||||
598473 "XXX specified twice for this theme" messages not in sync with metacity.
|
||||
598600 "Visual Bell" option in Metacity causes Mutter to crash
|
||||
600068 notifications for window urgency hint
|
||||
601228 rdesktop does not get keypress signals
|
||||
602349 [PATCH] trivial - fix compilation warning in mutter
|
||||
602740 Remove XOR gc only used in removed reduced-resources mode
|
||||
602870 Fix compilation with older libGL
|
||||
604200 Compile issue: Use of deprecated clutter functions
|
||||
606388 mutter fails to build when using ld with --no-add-needed
|
||||
607125 Fails to build with latest introspection data
|
||||
607398 Do not use CGL_* symbols
|
||||
607746 reduce gconf roundtrips at startup
|
||||
608800 alt-dragging gimp windows crashes gnome-shell
|
||||
609350 Mutter does not support the COGL_DEBUG environment variable
|
||||
609546 meta_workspace_set_builtin_struts(): optimize out non-changes
|
||||
609585 Merge libcanberra usage from Metacity
|
||||
609657 Use cogl multitexture API when drawing MutterShapedTexture
|
||||
609665 Bug fixes from Fedora RPM
|
||||
609710 screencast recording broke
|
||||
610391 Fix crash on startup with list bindings
|
||||
|
||||
2.28.0
|
||||
======
|
||||
|
||||
* New exported API:
|
||||
meta_window_get_stable_sequence() [Colin]
|
||||
meta_window_get_transient_for_as_xid() [Tomas]
|
||||
MutterScreen::workareas-changed signal [Tomas]
|
||||
* Fix a problem where changes processed from a Clutter event
|
||||
callback wouldn't get handled before the screen was next
|
||||
repainted, causing flashing [Owen]
|
||||
* Remove MetaAltTabHandler as no longer needed [Dan]
|
||||
* Bug fixes [Colin, Owen]
|
||||
|
||||
Contributors:
|
||||
Tomas Frydrych, Owen Taylor, Colin Walters, Dan Winship
|
||||
|
||||
Translations:
|
||||
Christian Kirbach (de), Claude Paroz (fr)
|
||||
|
||||
2.27.5
|
||||
======
|
||||
|
||||
* Fix bug in GConf schemas where the overview activation key was specified as
|
||||
'<Super_L>' not 'Super_L'.
|
||||
|
||||
Contributors:
|
||||
|
||||
Colin Walters
|
||||
|
||||
Translation:
|
||||
|
||||
Denis Arnaud (br)
|
||||
|
||||
2.27.4
|
||||
======
|
||||
|
||||
* Big code cleanup: when talking about multiple monitors, call them
|
||||
"monitors", not "xineramas". [Dan]
|
||||
|
||||
* Accessors added or made public:
|
||||
|
||||
meta_screen_get_n_monitors(), meta_screen_get_monitor_geometry()
|
||||
meta_window_get_user_time() and MetaWindow:user-time property.
|
||||
|
||||
[Colin, Dan]
|
||||
|
||||
* Set _GNOME_WM_KEYBINDINGS=Metacity,Mutter on the _NET_SUPPORTING_WM_CHECK
|
||||
window so that gnome-keybinding-properties can figure out to show the
|
||||
Metacity keybindings when Mutter is running. [Owen]
|
||||
|
||||
* Bug and build fixes [Colin, Owen]
|
||||
|
||||
Contributors:
|
||||
|
||||
Owen Taylor, Colin Walters, Dan Winship
|
||||
|
||||
Translation:
|
||||
|
||||
Jorge González (es), Inaki Larranaga Murgoitio (eu), Gabor Kelemen (hu)
|
||||
|
||||
Bugs fixed:
|
||||
|
||||
592393 - Clicking on a minimized window in the overview doesn't focus the window
|
||||
593399 - Add meta_display_get_grab_op()
|
||||
593404 - Make MUTTER_DEBUG_XINERAMA override active Xinerama
|
||||
593407 - Add 'skip-taskbar' accessor to MetaWindow.
|
||||
593686 - Add meta_screen_get_monitors()
|
||||
594067 - Export a _GNOME_WM_KEYBINDINGS property
|
||||
|
||||
2.27.3
|
||||
======
|
||||
|
||||
* Key handling improvements:
|
||||
|
||||
- enforce that every key is handled no more than once.
|
||||
- mutter_plugin_begin_modal() and mutter_plugin_begin_modal() allow
|
||||
putting a plugin into a "modal" state where it has exclusive access
|
||||
to key and pointer events.
|
||||
- Add "tab_popup_select", "tab_pop_cancel" pseudo-keypress-handlers
|
||||
that plugins can use to get notification when Alt-Tab ends
|
||||
|
||||
[Owen]
|
||||
|
||||
* Accessors added or made public:
|
||||
|
||||
meta_window_is_override_redirect(), meta_window_is_mapped(),
|
||||
meta_display_xwindow_is_a_no_focus_window(),
|
||||
meta_display_get_grab_op(), meta_window_is_skip_taskbar(),
|
||||
meta_window_is_modal(), all of errors.h
|
||||
|
||||
[Colin, Owen, Michael, Steve, Tomas]
|
||||
|
||||
* Fix for various GTK+ deprecations [Javier]
|
||||
* Bug fixes [Colin, Frédéric, Owen, Thomas, Tomas, Volker]
|
||||
|
||||
Contributors:
|
||||
|
||||
Javier Jardón, Steve Frécinaux, Tomas Frydrych, Michael Meeks,
|
||||
Frédéric Péters, Volker Sobek, Owen Taylor, Thomas Thurman,
|
||||
Colin Walters
|
||||
|
||||
Translation:
|
||||
|
||||
Fran Dieguez (gl), Gabor Kelemen (hu), Daniel Nylander (se)
|
||||
|
||||
Bugs fixed:
|
||||
|
||||
589457 - Fix up window property notification for "title"
|
||||
590911 - Do not run plugin effects on WM startup
|
||||
590978 - API to query whether window is in modal state
|
||||
591367 - Be silent by default
|
||||
591566 - install errors.h header ...
|
||||
591788 - Add meta_window_is_override_redirect
|
||||
591836 - mutter mishandles opacity
|
||||
591913 - Fails to skip current window on alt+tab when another window is asking for attention
|
||||
592393 - Clicking on a minimized window in the overview doesn't focus the window
|
||||
592699 - Remove deprecated Encoding key from desktop files
|
||||
592742 - Avoid accessing freed memory when being replaced
|
||||
593399 - Add meta_display_get_grab_op()
|
||||
593404 - Make MUTTER_DEBUG_XINERAMA override active Xinerama
|
||||
593407 - Add 'skip-taskbar' accessor to MetaWindow.
|
||||
|
||||
----------------------------- Older Metacity News -----------------------------
|
||||
|
||||
2.26.0
|
||||
======
|
||||
|
||||
|
40
configure.in
40
configure.in
@ -1,8 +1,8 @@
|
||||
AC_PREREQ(2.50)
|
||||
|
||||
m4_define([mutter_major_version], [2])
|
||||
m4_define([mutter_minor_version], [91])
|
||||
m4_define([mutter_micro_version], [6])
|
||||
m4_define([mutter_major_version], [3])
|
||||
m4_define([mutter_minor_version], [0])
|
||||
m4_define([mutter_micro_version], [2])
|
||||
|
||||
m4_define([mutter_version],
|
||||
[mutter_major_version.mutter_minor_version.mutter_micro_version])
|
||||
@ -96,11 +96,6 @@ AC_ARG_ENABLE(startup-notification,
|
||||
[disable mutter's startup notification support, for embedded/size-sensitive custom non-GNOME builds]),,
|
||||
enable_startup_notification=auto)
|
||||
|
||||
AC_ARG_WITH(introspection,
|
||||
AC_HELP_STRING([--without-introspection],
|
||||
[disable the use of GObject introspection]),,
|
||||
with_introspection=auto)
|
||||
|
||||
AC_ARG_WITH(libcanberra,
|
||||
AC_HELP_STRING([--without-libcanberra],
|
||||
[disable the use of libcanberra for playing sounds]),,
|
||||
@ -214,24 +209,15 @@ else
|
||||
AC_MSG_ERROR([no. Mutter requires Clutter version $CLUTTER_VERSION.])
|
||||
fi
|
||||
|
||||
if test x$with_introspection != xno; then
|
||||
PKG_CHECK_MODULES(INTROSPECTION, gobject-introspection-1.0 >= 0.9.5, have_introspection=yes, have_introspection=no)
|
||||
if test x$have_introspection=xyes; then
|
||||
MUTTER_PC_MODULES="$MUTTER_PC_MODULES gobject-introspection-1.0"
|
||||
AC_DEFINE(HAVE_INTROSPECTION, 1, [Define if GObject introspection is available])
|
||||
G_IR_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
|
||||
AC_SUBST(G_IR_SCANNER)
|
||||
G_IR_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
|
||||
AC_SUBST(G_IR_COMPILER)
|
||||
G_IR_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
|
||||
AC_SUBST(G_IR_GENERATE)
|
||||
GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
|
||||
AC_SUBST(GIRDIR)
|
||||
TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
|
||||
AC_SUBST(TYPELIBDIR)
|
||||
fi
|
||||
INTROSPECTION_VERSION=0.9.5
|
||||
GOBJECT_INTROSPECTION_CHECK([$INTROSPECTION_VERSION])
|
||||
|
||||
if test x$found_introspection != xno; then
|
||||
AC_DEFINE(HAVE_INTROSPECTION, 1, [Define if GObject introspection is available])
|
||||
MUTTER_PC_MODULES="$MUTTER_PC_MODULES gobject-introspection-1.0"
|
||||
META_GIR=[Meta_]mutter_major_version[_]mutter_minor_version[_gir]
|
||||
AC_SUBST(META_GIR)
|
||||
fi
|
||||
AM_CONDITIONAL(WITH_INTROSPECTION, test "$have_introspection" = "yes")
|
||||
|
||||
AC_MSG_CHECKING([Xcursor])
|
||||
if $PKG_CONFIG xcursor; then
|
||||
@ -524,7 +510,7 @@ doc/Makefile
|
||||
doc/man/Makefile
|
||||
src/Makefile
|
||||
src/wm-tester/Makefile
|
||||
src/libmutter-private.pc
|
||||
src/libmutter.pc
|
||||
src/mutter-plugins.pc
|
||||
src/tools/Makefile
|
||||
src/compositor/plugins/Makefile
|
||||
@ -561,7 +547,7 @@ mutter-$VERSION
|
||||
Solaris Xinerama: ${use_solaris_xinerama}
|
||||
Startup notification: ${have_startup_notification}
|
||||
libcanberra: ${have_libcanberra}
|
||||
Introspection: ${have_introspection}
|
||||
Introspection: ${found_introspection}
|
||||
Session management: ${found_sm}
|
||||
Shape extension: ${found_shape}
|
||||
Xsync: ${found_xsync}
|
||||
|
10
mutter.doap
10
mutter.doap
@ -6,6 +6,16 @@
|
||||
|
||||
<name xml:lang="en">mutter</name>
|
||||
<shortdesc xml:lang="en">Window and compositing manager based on Clutter</shortdesc>
|
||||
<description>Mutter is a window and compositing manager that displays and
|
||||
manages your desktop via OpenGL. Mutter combines a sophisticated display engine
|
||||
using the Clutter toolkit with solid window-management logic inherited from the
|
||||
Metacity window manager.
|
||||
|
||||
While Mutter can be used stand-alone, it is primarily intended to be used as
|
||||
the display core of a larger system such as GNOME Shell. For this reason,
|
||||
Mutter is very extensible via plugins, which are used both to add fancy visual
|
||||
effects and to rework the window management behaviors to meet the needs of the
|
||||
environment.</description>
|
||||
<!--
|
||||
<homepage rdf:resource="http://www.gnome.org/" />
|
||||
-->
|
||||
|
@ -22,6 +22,7 @@ dz
|
||||
el
|
||||
en_CA
|
||||
en_GB
|
||||
eo
|
||||
es
|
||||
et
|
||||
eu
|
||||
|
@ -1,5 +1,6 @@
|
||||
# List of source files containing translatable strings.
|
||||
# Please keep this file sorted alphabetically.
|
||||
src/core/all-keybindings.h
|
||||
src/core/bell.c
|
||||
src/core/core.c
|
||||
src/core/delete.c
|
||||
@ -7,6 +8,7 @@ src/core/display.c
|
||||
src/core/errors.c
|
||||
src/core/keybindings.c
|
||||
src/core/main.c
|
||||
src/core/mutter.c
|
||||
src/core/prefs.c
|
||||
src/core/screen.c
|
||||
src/core/session.c
|
||||
@ -14,7 +16,6 @@ src/core/util.c
|
||||
src/core/window.c
|
||||
src/core/window-props.c
|
||||
src/core/xprops.c
|
||||
src/include/all-keybindings.h
|
||||
src/mutter.desktop.in
|
||||
src/mutter-wm.desktop.in
|
||||
src/mutter.schemas.in
|
||||
|
1260
po/en_GB.po
1260
po/en_GB.po
File diff suppressed because it is too large
Load Diff
766
po/et.po
766
po/et.po
@ -7,389 +7,23 @@
|
||||
#
|
||||
# Tõivo Leedjärv <toivo linux ee>, 2004.
|
||||
# Ivar Smolin <okul linux ee>, 2005, 2006, 2009–2011.
|
||||
# Mattias Põldaru <mahfiaz gmail com>, 2008–2010.
|
||||
# Mattias Põldaru <mahfiaz gmail com>, 2008–2011.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: mutter MASTER\n"
|
||||
"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?"
|
||||
"product=mutter&component=general\n"
|
||||
"POT-Creation-Date: 2011-01-04 16:55+0000\n"
|
||||
"PO-Revision-Date: 2011-01-09 13:51+0200\n"
|
||||
"POT-Creation-Date: 2011-03-07 23:35+0000\n"
|
||||
"PO-Revision-Date: 2011-03-09 06:41+0200\n"
|
||||
"Last-Translator: Ivar Smolin <okul@linux.ee>\n"
|
||||
"Language-Team: Estonian <gnome-et@linux.ee>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: et\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
msgid "Bell event"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "Unknown window information request: %d"
|
||||
msgstr "Tundmatu aknateabe päring: %d"
|
||||
|
||||
#. Translators: %s is a window title
|
||||
#, c-format
|
||||
msgid "<tt>%s</tt> is not responding."
|
||||
msgstr "<tt>%s</tt> ei vasta."
|
||||
|
||||
msgid ""
|
||||
"You may choose to wait a short while for it to continue or force the "
|
||||
"application to quit entirely."
|
||||
msgstr "Sa võid natukene selle järel oodata või sundida rakenduse lõpetama."
|
||||
|
||||
msgid "_Wait"
|
||||
msgstr "_Oota"
|
||||
|
||||
msgid "_Force Quit"
|
||||
msgstr "_Sulge jõuga"
|
||||
|
||||
#, c-format
|
||||
msgid "Missing %s extension required for compositing"
|
||||
msgstr "Puuduv laiendus %s on vajalik komposiitmontaaži jaoks"
|
||||
|
||||
#, c-format
|
||||
msgid "Failed to open X Window System display '%s'\n"
|
||||
msgstr "Tõrge X Window System'i kuva '%s' avamisel\n"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Some other program is already using the key %s with modifiers %x as a "
|
||||
"binding\n"
|
||||
msgstr ""
|
||||
"Mõni teine programm juba kasutab klahvi %s koos muuteklahvidega %x "
|
||||
"kiirklahvina\n"
|
||||
|
||||
#. Displayed when a keybinding which is
|
||||
#. * supposed to launch a program fails.
|
||||
#.
|
||||
#, c-format
|
||||
msgid ""
|
||||
"There was an error running <tt>%s</tt>:\n"
|
||||
"\n"
|
||||
"%s"
|
||||
msgstr ""
|
||||
"<tt>%s</tt> käivitamisel esines viga:\n"
|
||||
"\n"
|
||||
"%s"
|
||||
|
||||
#, c-format
|
||||
msgid "No command %d has been defined.\n"
|
||||
msgstr "Käsku %d pole defineeritud.\n"
|
||||
|
||||
#, c-format
|
||||
msgid "No terminal command has been defined.\n"
|
||||
msgstr "Terminalikäsku pole defineeritud.\n"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"mutter %s\n"
|
||||
"Copyright (C) 2001-%d Havoc Pennington, Red Hat, Inc., and others\n"
|
||||
"This is free software; see the source for copying conditions.\n"
|
||||
"There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A "
|
||||
"PARTICULAR PURPOSE.\n"
|
||||
msgstr ""
|
||||
"mutter %s\n"
|
||||
"Autoriõigused (C) 2001-%d Havoc Pennington, Red Hat, Inc., ja teised\n"
|
||||
"See programm on vaba tarkvara; kopeerimistingimuste kohta vaata\n"
|
||||
"programmi lähteteksti. Sellel programmil pole MINGISUGUST GARANTIID;\n"
|
||||
"isegi MITTE KOMMERTSGARANTIID EGA GARANTIID SOBIVUSELE\n"
|
||||
"TEATUD KINDLAKS EESMÄRGIKS.\n"
|
||||
|
||||
msgid "Disable connection to session manager"
|
||||
msgstr "Seansihalduriga ühendumise keelamine"
|
||||
|
||||
msgid "Replace the running window manager with Mutter"
|
||||
msgstr "Käivitatud aknahalduri asendamine Mutteriga"
|
||||
|
||||
msgid "Specify session management ID"
|
||||
msgstr "Seansihalduse ID kirjeldamine"
|
||||
|
||||
msgid "X Display to use"
|
||||
msgstr "X-kuva, mida kasutada"
|
||||
|
||||
msgid "Initialize session from savefile"
|
||||
msgstr "Seansi lähtestamine salvestatud failist"
|
||||
|
||||
msgid "Print version"
|
||||
msgstr "Versiooni printimine"
|
||||
|
||||
msgid "Make X calls synchronous"
|
||||
msgstr "Tee X-väljakutsed sünkroonseks"
|
||||
|
||||
msgid ""
|
||||
"Don't make fullscreen windows that are maximized and have no decorations"
|
||||
msgstr ""
|
||||
|
||||
msgid "Comma-separated list of compositor plugins"
|
||||
msgstr "Komaga eraldatud nimekiri komposiitmontaaži pluginatest"
|
||||
|
||||
msgid "Whether window popup/frame should be shown when cycling windows."
|
||||
msgstr ""
|
||||
|
||||
msgid "Internal argument for GObject introspection"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "Failed to scan themes directory: %s\n"
|
||||
msgstr "Tõrge teemadekataloogi skannimisel: %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Could not find a theme! Be sure %s exists and contains the usual themes.\n"
|
||||
msgstr ""
|
||||
"Teemat ei leitud! Veendu, et %s on olemas ja sisaldab harilikke teemasid.\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Failed to restart: %s\n"
|
||||
msgstr "Tõrge taaskäivitamisel: %s\n"
|
||||
|
||||
#.
|
||||
#. * We found it, but it was invalid. Complain.
|
||||
#. *
|
||||
#. * FIXME: This replicates the original behaviour, but in the future
|
||||
#. * we might consider reverting invalid keys to their original values.
|
||||
#. * (We know the old value, so we can look up a suitable string in
|
||||
#. * the symtab.)
|
||||
#. *
|
||||
#. * (Empty comment follows so the translators don't see this.)
|
||||
#.
|
||||
#.
|
||||
#, c-format
|
||||
msgid "GConf key '%s' is set to an invalid value\n"
|
||||
msgstr "GConf võtme '%s' väärtus on vigane\n"
|
||||
|
||||
#, c-format
|
||||
msgid "%d stored in GConf key %s is out of range %d to %d\n"
|
||||
msgstr ""
|
||||
"%d, mis on salvestatud GConf võtmes %s, on väljaspool piirkonda %d - %d\n"
|
||||
|
||||
#, c-format
|
||||
msgid "GConf key \"%s\" is set to an invalid type\n"
|
||||
msgstr "GConf-i võti \"%s\" on määratud vigase tüübiga\n"
|
||||
|
||||
#, c-format
|
||||
msgid "GConf key %s is already in use and can't be used to override %s\n"
|
||||
msgstr "GConfi võti %s on juba kasutusel ja sellega ei saa tühistada võtit %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Can't override GConf key, %s not found\n"
|
||||
msgstr "GConfi võtit pole võimalik tühistada, võtit %s ei leitud\n"
|
||||
|
||||
msgid ""
|
||||
"Workarounds for broken applications disabled. Some applications may not "
|
||||
"behave properly.\n"
|
||||
msgstr ""
|
||||
"Ümbernurga parandused vigastele rakendustele on keelatud. Mõned rakendused "
|
||||
"ei pruugi õigesti käituda.\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Could not parse font description \"%s\" from GConf key %s\n"
|
||||
msgstr "Fondi kirjeldust \"%s\" GConf võtmest %s ei saa töödelda\n"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"\"%s\" found in configuration database is not a valid value for mouse button "
|
||||
"modifier\n"
|
||||
msgstr ""
|
||||
"Seadistuste andmebaasist leitud \"%s\" ei ole sobiv väärtus hiireklahvi "
|
||||
"modifikaatoriks\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Error setting number of workspaces to %d: %s\n"
|
||||
msgstr "Viga tööalade arvuks %d määramisel: %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Workspace %d"
|
||||
msgstr "Tööala %d"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"\"%s\" found in configuration database is not a valid value for keybinding "
|
||||
"\"%s\"\n"
|
||||
msgstr ""
|
||||
"Seadistuste andmebaasist leitud \"%s\" ei ole sobiv väärtus kiirklahvile \"%s"
|
||||
"\"\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Error setting name for workspace %d to \"%s\": %s\n"
|
||||
msgstr "Viga tööalale %d nime \"%s\" määramisel: %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Error setting clutter plugin list: %s\n"
|
||||
msgstr "Viga clutteri pluginate nimekirja määramisel: %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Error setting live hidden windows status status: %s\n"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "Error setting no tab popup status: %s\n"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "Screen %d on display '%s' is invalid\n"
|
||||
msgstr "Ekraan %d kuval '%s' on vigane\n"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Screen %d on display \"%s\" already has a window manager; try using the --"
|
||||
"replace option to replace the current window manager.\n"
|
||||
msgstr ""
|
||||
"Ekraan %d kuval '%s' on juba aknahalduri poolt hallatav. Olemasoleva "
|
||||
"aknahalduri asendamiseks proovi --replace võtit \n"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Could not acquire window manager selection on screen %d display \"%s\"\n"
|
||||
msgstr "Aknahalduri valikut ei saa hankida ekraani %d kuval \"%s\"\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Screen %d on display \"%s\" already has a window manager\n"
|
||||
msgstr "Ekraan %d kuval '%s' on juba aknahalduri poolt hallatav\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Could not release screen %d on display \"%s\"\n"
|
||||
msgstr "Ekraani %d kuval \"%s\" ei saa vabastada\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Could not create directory '%s': %s\n"
|
||||
msgstr "Kataloogi '%s' pole võimalik luua: %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Could not open session file '%s' for writing: %s\n"
|
||||
msgstr "Seansifaili '%s' pole võimalik kirjutamiseks avada: %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Error writing session file '%s': %s\n"
|
||||
msgstr "Viga seansifaili '%s' kirjutamisel: %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Error closing session file '%s': %s\n"
|
||||
msgstr "Viga seansifaili '%s' sulgemisel: %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Failed to parse saved session file: %s\n"
|
||||
msgstr "Viga salvestatud seansifaili analüüsimisel: %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "<mutter_session> attribute seen but we already have the session ID"
|
||||
msgstr "Nähti <mutter_session> atribuuti, aga sessiooni ID on juba määratud"
|
||||
|
||||
#, c-format
|
||||
msgid "Unknown attribute %s on <%s> element"
|
||||
msgstr "Tundmatu atribuut %s <%s> elemendil"
|
||||
|
||||
#, c-format
|
||||
msgid "nested <window> tag"
|
||||
msgstr "pesastatud <window>"
|
||||
|
||||
#, c-format
|
||||
msgid "Unknown element %s"
|
||||
msgstr "Tundmatu element %s"
|
||||
|
||||
msgid ""
|
||||
"These windows do not support "save current setup" and will have to "
|
||||
"be restarted manually next time you log in."
|
||||
msgstr ""
|
||||
"Need aknad ei toeta "praeguse paigutuse salvestamist" ja tuleb "
|
||||
"järgmisel sisselogimisel käsitsi taaskäivitada."
|
||||
|
||||
#, c-format
|
||||
msgid "Failed to open debug log: %s\n"
|
||||
msgstr "Tõrge silumislogi avamisel: %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Failed to fdopen() log file %s: %s\n"
|
||||
msgstr "Tõrge logifaili %s avamisel funktsiooniga fdopen(): %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Opened log file %s\n"
|
||||
msgstr "Avati logifail %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Mutter was compiled without support for verbose mode\n"
|
||||
msgstr "Mutter kompileeriti ilma jutuka režiimi toeta\n"
|
||||
|
||||
msgid "Window manager: "
|
||||
msgstr "Aknahaldur: "
|
||||
|
||||
msgid "Bug in window manager: "
|
||||
msgstr "Viga aknahalduris: "
|
||||
|
||||
msgid "Window manager warning: "
|
||||
msgstr "Aknahalduri hoiatus: "
|
||||
|
||||
msgid "Window manager error: "
|
||||
msgstr "Aknahalduri viga: "
|
||||
|
||||
#. Translators: This is the title used on dialog boxes
|
||||
#. eof all-keybindings.h
|
||||
msgid "Mutter"
|
||||
msgstr "Mutter"
|
||||
|
||||
#. first time through
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Window %s sets SM_CLIENT_ID on itself, instead of on the WM_CLIENT_LEADER "
|
||||
"window as specified in the ICCCM.\n"
|
||||
msgstr ""
|
||||
"Aken %s määrab SM_CLIENT_ID endale, selle asemel et määrata see "
|
||||
"WM_CLIENT_LEADER aknale, nagu seda kirjeldab ICCCM.\n"
|
||||
|
||||
#. We ignore mwm_has_resize_func because WM_NORMAL_HINTS is the
|
||||
#. * authoritative source for that info. Some apps such as mplayer or
|
||||
#. * xine disable resize via MWM but not WM_NORMAL_HINTS, but that
|
||||
#. * leads to e.g. us not fullscreening their windows. Apps that set
|
||||
#. * MWM but not WM_NORMAL_HINTS are basically broken. We complain
|
||||
#. * about these apps but make them work.
|
||||
#.
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Window %s sets an MWM hint indicating it isn't resizable, but sets min size "
|
||||
"%d x %d and max size %d x %d; this doesn't make much sense.\n"
|
||||
msgstr ""
|
||||
"Aken %s määrab MWM vihje, näidates, et see pole muudetava suurusega, aga "
|
||||
"määrab vähimaks suuruseks %d x %d ja suurimaks suuruseks %d x %d; sel pole "
|
||||
"tähendust.\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Application set a bogus _NET_WM_PID %lu\n"
|
||||
msgstr "Rakendus määras võltsitud _NET_WM_PID %lu\n"
|
||||
|
||||
#, c-format
|
||||
msgid "%s (on %s)"
|
||||
msgstr "%s (masinas %s)"
|
||||
|
||||
#, c-format
|
||||
msgid "Invalid WM_TRANSIENT_FOR window 0x%lx specified for %s.\n"
|
||||
msgstr "Vigane WM_TRANSIENT_FOR aknale 0x%lx määratud %s jaoks.\n"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Window 0x%lx has property %s\n"
|
||||
"that was expected to have type %s format %d\n"
|
||||
"and actually has type %s format %d n_items %d.\n"
|
||||
"This is most likely an application bug, not a window manager bug.\n"
|
||||
"The window has title=\"%s\" class=\"%s\" name=\"%s\"\n"
|
||||
msgstr ""
|
||||
"Aknal 0x%lx on omadus %s,\n"
|
||||
"mis oleks pidanud olema %s tüüpi %d vormingus,\n"
|
||||
"aga tegelikult oli %s tüüpi %d vormingus n_items %d.\n"
|
||||
"See on kõige tõenäolisemalt rakenduse, mitte aknahalduri viga.\n"
|
||||
"Aknal on title=\"%s\" class=\"%s\" name=\"%s\"\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Property %s on window 0x%lx contained invalid UTF-8\n"
|
||||
msgstr "Omadus %s aknal 0x%lx sisaldab vigast UTF-8\n"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Property %s on window 0x%lx contained invalid UTF-8 for item %d in the list\n"
|
||||
msgstr "Omadus %s aknal 0x%lx sisaldab vigast UTF-8 %d kirjele nimekirjas\n"
|
||||
|
||||
msgid "Switch to workspace 1"
|
||||
msgstr "Lülitumine 1. tööalale"
|
||||
|
||||
@ -621,38 +255,390 @@ msgstr "Akna tõstmine ekraani läänepoolsesse (vasakusse) serva"
|
||||
msgid "Move window to center of screen"
|
||||
msgstr "Akna tõstmine ekraani keskele"
|
||||
|
||||
msgid "Attach modal dialogs"
|
||||
msgid "Bell event"
|
||||
msgstr "Helina sündmus"
|
||||
|
||||
#, c-format
|
||||
msgid "Unknown window information request: %d"
|
||||
msgstr "Tundmatu aknateabe päring: %d"
|
||||
|
||||
#. Translators: %s is a window title
|
||||
#, c-format
|
||||
msgid "<tt>%s</tt> is not responding."
|
||||
msgstr "<tt>%s</tt> ei vasta."
|
||||
|
||||
msgid ""
|
||||
"You may choose to wait a short while for it to continue or force the "
|
||||
"application to quit entirely."
|
||||
msgstr "Sa võid natukene selle järel oodata või sundida rakenduse lõpetama."
|
||||
|
||||
msgid "_Wait"
|
||||
msgstr "_Oota"
|
||||
|
||||
msgid "_Force Quit"
|
||||
msgstr "_Sulge jõuga"
|
||||
|
||||
#, c-format
|
||||
msgid "Missing %s extension required for compositing"
|
||||
msgstr "Puuduv laiendus %s on vajalik komposiitmontaaži jaoks"
|
||||
|
||||
#, c-format
|
||||
msgid "Failed to open X Window System display '%s'\n"
|
||||
msgstr "Tõrge X Window System'i kuva '%s' avamisel\n"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Some other program is already using the key %s with modifiers %x as a "
|
||||
"binding\n"
|
||||
msgstr ""
|
||||
"Mõni teine programm juba kasutab klahvi %s koos muuteklahvidega %x "
|
||||
"kiirklahvina\n"
|
||||
|
||||
#. Displayed when a keybinding which is
|
||||
#. * supposed to launch a program fails.
|
||||
#.
|
||||
#, c-format
|
||||
msgid ""
|
||||
"There was an error running <tt>%s</tt>:\n"
|
||||
"\n"
|
||||
"%s"
|
||||
msgstr ""
|
||||
"<tt>%s</tt> käivitamisel esines viga:\n"
|
||||
"\n"
|
||||
"%s"
|
||||
|
||||
#, c-format
|
||||
msgid "No command %d has been defined.\n"
|
||||
msgstr "Käsku %d pole defineeritud.\n"
|
||||
|
||||
#, c-format
|
||||
msgid "No terminal command has been defined.\n"
|
||||
msgstr "Terminalikäsku pole defineeritud.\n"
|
||||
|
||||
msgid "Disable connection to session manager"
|
||||
msgstr "Seansihalduriga ühendumise keelamine"
|
||||
|
||||
msgid "Replace the running window manager"
|
||||
msgstr "Töötava aknahalduri asendamine"
|
||||
|
||||
msgid "Specify session management ID"
|
||||
msgstr "Seansihalduse ID kirjeldamine"
|
||||
|
||||
msgid "X Display to use"
|
||||
msgstr "X-kuva, mida kasutada"
|
||||
|
||||
msgid "Initialize session from savefile"
|
||||
msgstr "Seansi lähtestamine salvestatud failist"
|
||||
|
||||
msgid "Make X calls synchronous"
|
||||
msgstr "Tee X-väljakutsed sünkroonseks"
|
||||
|
||||
#, c-format
|
||||
msgid "Failed to scan themes directory: %s\n"
|
||||
msgstr "Tõrge teemadekataloogi skannimisel: %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Could not find a theme! Be sure %s exists and contains the usual themes.\n"
|
||||
msgstr ""
|
||||
"Teemat ei leitud! Veendu, et %s on olemas ja sisaldab harilikke teemasid.\n"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"mutter %s\n"
|
||||
"Copyright (C) 2001-%d Havoc Pennington, Red Hat, Inc., and others\n"
|
||||
"This is free software; see the source for copying conditions.\n"
|
||||
"There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A "
|
||||
"PARTICULAR PURPOSE.\n"
|
||||
msgstr ""
|
||||
"mutter %s\n"
|
||||
"Autoriõigused (C) 2001-%d Havoc Pennington, Red Hat, Inc., ja teised\n"
|
||||
"See programm on vaba tarkvara; kopeerimistingimuste kohta vaata\n"
|
||||
"programmi lähteteksti. Sellel programmil pole MINGISUGUST GARANTIID;\n"
|
||||
"isegi MITTE KOMMERTSGARANTIID EGA GARANTIID SOBIVUSELE\n"
|
||||
"TEATUD KINDLAKS EESMÄRGIKS.\n"
|
||||
|
||||
msgid "Print version"
|
||||
msgstr "Versiooni printimine"
|
||||
|
||||
msgid "Comma-separated list of compositor plugins"
|
||||
msgstr "Komaga eraldatud nimekiri komposiitmontaaži pluginatest"
|
||||
|
||||
#.
|
||||
#. * We found it, but it was invalid. Complain.
|
||||
#. *
|
||||
#. * FIXME: This replicates the original behaviour, but in the future
|
||||
#. * we might consider reverting invalid keys to their original values.
|
||||
#. * (We know the old value, so we can look up a suitable string in
|
||||
#. * the symtab.)
|
||||
#. *
|
||||
#. * (Empty comment follows so the translators don't see this.)
|
||||
#.
|
||||
#.
|
||||
#, c-format
|
||||
msgid "GConf key '%s' is set to an invalid value\n"
|
||||
msgstr "GConf võtme '%s' väärtus on vigane\n"
|
||||
|
||||
#, c-format
|
||||
msgid "%d stored in GConf key %s is out of range %d to %d\n"
|
||||
msgstr ""
|
||||
"%d, mis on salvestatud GConf võtmes %s, on väljaspool piirkonda %d - %d\n"
|
||||
|
||||
#, c-format
|
||||
msgid "GConf key \"%s\" is set to an invalid type\n"
|
||||
msgstr "GConf-i võti \"%s\" on määratud vigase tüübiga\n"
|
||||
|
||||
#, c-format
|
||||
msgid "GConf key %s is already in use and can't be used to override %s\n"
|
||||
msgstr ""
|
||||
"GConfi võti %s on juba kasutusel ja sellega ei saa tühistada võtit %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Can't override GConf key, %s not found\n"
|
||||
msgstr "GConfi võtit pole võimalik tühistada, võtit %s ei leitud\n"
|
||||
|
||||
msgid ""
|
||||
"Workarounds for broken applications disabled. Some applications may not "
|
||||
"behave properly.\n"
|
||||
msgstr ""
|
||||
"Ümbernurga parandused vigastele rakendustele on keelatud. Mõned rakendused "
|
||||
"ei pruugi õigesti käituda.\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Could not parse font description \"%s\" from GConf key %s\n"
|
||||
msgstr "Fondi kirjeldust \"%s\" GConf võtmest %s ei saa töödelda\n"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"\"%s\" found in configuration database is not a valid value for mouse button "
|
||||
"modifier\n"
|
||||
msgstr ""
|
||||
"Seadistuste andmebaasist leitud \"%s\" ei ole sobiv väärtus hiireklahvi "
|
||||
"modifikaatoriks\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Error setting number of workspaces to %d: %s\n"
|
||||
msgstr "Viga tööalade arvuks %d määramisel: %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Workspace %d"
|
||||
msgstr "Tööala %d"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"\"%s\" found in configuration database is not a valid value for keybinding "
|
||||
"\"%s\"\n"
|
||||
msgstr ""
|
||||
"Seadistuste andmebaasist leitud \"%s\" ei ole sobiv väärtus kiirklahvile \"%s"
|
||||
"\"\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Error setting name for workspace %d to \"%s\": %s\n"
|
||||
msgstr "Viga tööalale %d nime \"%s\" määramisel: %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Error setting live hidden windows status status: %s\n"
|
||||
msgstr "Viga varjus elushoitavate akende oleku määramisel: %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Error setting no tab popup status: %s\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "Clutter Plugins"
|
||||
msgstr "Clutteri pluginad"
|
||||
#, c-format
|
||||
msgid "Screen %d on display '%s' is invalid\n"
|
||||
msgstr "Ekraan %d kuval '%s' on vigane\n"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Screen %d on display \"%s\" already has a window manager; try using the --"
|
||||
"replace option to replace the current window manager.\n"
|
||||
msgstr ""
|
||||
"Ekraan %d kuval '%s' on juba aknahalduri poolt hallatav. Olemasoleva "
|
||||
"aknahalduri asendamiseks proovi --replace võtit \n"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Could not acquire window manager selection on screen %d display \"%s\"\n"
|
||||
msgstr "Aknahalduri valikut ei saa hankida ekraani %d kuval \"%s\"\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Screen %d on display \"%s\" already has a window manager\n"
|
||||
msgstr "Ekraan %d kuval '%s' on juba aknahalduri poolt hallatav\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Could not release screen %d on display \"%s\"\n"
|
||||
msgstr "Ekraani %d kuval \"%s\" ei saa vabastada\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Could not create directory '%s': %s\n"
|
||||
msgstr "Kataloogi '%s' pole võimalik luua: %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Could not open session file '%s' for writing: %s\n"
|
||||
msgstr "Seansifaili '%s' pole võimalik kirjutamiseks avada: %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Error writing session file '%s': %s\n"
|
||||
msgstr "Viga seansifaili '%s' kirjutamisel: %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Error closing session file '%s': %s\n"
|
||||
msgstr "Viga seansifaili '%s' sulgemisel: %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Failed to parse saved session file: %s\n"
|
||||
msgstr "Viga salvestatud seansifaili analüüsimisel: %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "<mutter_session> attribute seen but we already have the session ID"
|
||||
msgstr "Nähti <mutter_session> atribuuti, aga sessiooni ID on juba määratud"
|
||||
|
||||
#, c-format
|
||||
msgid "Unknown attribute %s on <%s> element"
|
||||
msgstr "Tundmatu atribuut %s <%s> elemendil"
|
||||
|
||||
#, c-format
|
||||
msgid "nested <window> tag"
|
||||
msgstr "pesastatud <window>"
|
||||
|
||||
#, c-format
|
||||
msgid "Unknown element %s"
|
||||
msgstr "Tundmatu element %s"
|
||||
|
||||
msgid ""
|
||||
"These windows do not support "save current setup" and will have to "
|
||||
"be restarted manually next time you log in."
|
||||
msgstr ""
|
||||
"Need aknad ei toeta "praeguse paigutuse salvestamist" ja tuleb "
|
||||
"järgmisel sisselogimisel käsitsi taaskäivitada."
|
||||
|
||||
#, c-format
|
||||
msgid "Failed to open debug log: %s\n"
|
||||
msgstr "Tõrge silumislogi avamisel: %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Failed to fdopen() log file %s: %s\n"
|
||||
msgstr "Tõrge logifaili %s avamisel funktsiooniga fdopen(): %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Opened log file %s\n"
|
||||
msgstr "Avati logifail %s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Mutter was compiled without support for verbose mode\n"
|
||||
msgstr "Mutter kompileeriti ilma jutuka režiimi toeta\n"
|
||||
|
||||
msgid "Window manager: "
|
||||
msgstr "Aknahaldur: "
|
||||
|
||||
msgid "Bug in window manager: "
|
||||
msgstr "Viga aknahalduris: "
|
||||
|
||||
msgid "Window manager warning: "
|
||||
msgstr "Aknahalduri hoiatus: "
|
||||
|
||||
msgid "Window manager error: "
|
||||
msgstr "Aknahalduri viga: "
|
||||
|
||||
#. Translators: This is the title used on dialog boxes
|
||||
msgid "Mutter"
|
||||
msgstr "Mutter"
|
||||
|
||||
#. first time through
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Window %s sets SM_CLIENT_ID on itself, instead of on the WM_CLIENT_LEADER "
|
||||
"window as specified in the ICCCM.\n"
|
||||
msgstr ""
|
||||
"Aken %s määrab SM_CLIENT_ID endale, selle asemel et määrata see "
|
||||
"WM_CLIENT_LEADER aknale, nagu seda kirjeldab ICCCM.\n"
|
||||
|
||||
#. We ignore mwm_has_resize_func because WM_NORMAL_HINTS is the
|
||||
#. * authoritative source for that info. Some apps such as mplayer or
|
||||
#. * xine disable resize via MWM but not WM_NORMAL_HINTS, but that
|
||||
#. * leads to e.g. us not fullscreening their windows. Apps that set
|
||||
#. * MWM but not WM_NORMAL_HINTS are basically broken. We complain
|
||||
#. * about these apps but make them work.
|
||||
#.
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Window %s sets an MWM hint indicating it isn't resizable, but sets min size "
|
||||
"%d x %d and max size %d x %d; this doesn't make much sense.\n"
|
||||
msgstr ""
|
||||
"Aken %s määrab MWM vihje, näidates, et see pole muudetava suurusega, aga "
|
||||
"määrab vähimaks suuruseks %d x %d ja suurimaks suuruseks %d x %d; sel pole "
|
||||
"tähendust.\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Application set a bogus _NET_WM_PID %lu\n"
|
||||
msgstr "Rakendus määras võltsitud _NET_WM_PID %lu\n"
|
||||
|
||||
#, c-format
|
||||
msgid "%s (on %s)"
|
||||
msgstr "%s (masinas %s)"
|
||||
|
||||
#, c-format
|
||||
msgid "Invalid WM_TRANSIENT_FOR window 0x%lx specified for %s.\n"
|
||||
msgstr "Vigane WM_TRANSIENT_FOR aknale 0x%lx määratud %s jaoks.\n"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Window 0x%lx has property %s\n"
|
||||
"that was expected to have type %s format %d\n"
|
||||
"and actually has type %s format %d n_items %d.\n"
|
||||
"This is most likely an application bug, not a window manager bug.\n"
|
||||
"The window has title=\"%s\" class=\"%s\" name=\"%s\"\n"
|
||||
msgstr ""
|
||||
"Aknal 0x%lx on omadus %s,\n"
|
||||
"mis oleks pidanud olema %s tüüpi %d vormingus,\n"
|
||||
"aga tegelikult oli %s tüüpi %d vormingus n_items %d.\n"
|
||||
"See on kõige tõenäolisemalt rakenduse, mitte aknahalduri viga.\n"
|
||||
"Aknal on title=\"%s\" class=\"%s\" name=\"%s\"\n"
|
||||
|
||||
#, c-format
|
||||
msgid "Property %s on window 0x%lx contained invalid UTF-8\n"
|
||||
msgstr "Omadus %s aknal 0x%lx sisaldab vigast UTF-8\n"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Property %s on window 0x%lx contained invalid UTF-8 for item %d in the list\n"
|
||||
msgstr "Omadus %s aknal 0x%lx sisaldab vigast UTF-8 %d kirjele nimekirjas\n"
|
||||
|
||||
msgid "Attach modal dialogs"
|
||||
msgstr "Modaaldialoogide kinnistamine"
|
||||
|
||||
msgid ""
|
||||
"Determines whether hidden windows (i.e., minimized windows and windows on "
|
||||
"other workspaces than the current one) should be kept alive."
|
||||
msgstr ""
|
||||
"Määrab, kas varjatud aknaid (nt minimeeritud ja teistel tööaladel aknad) "
|
||||
"hoitakse elus."
|
||||
|
||||
msgid "Live Hidden Windows"
|
||||
msgstr ""
|
||||
msgstr "Varjatud akende aktiivsus"
|
||||
|
||||
msgid "Modifier to use for extended window management operations"
|
||||
msgstr "Laiendatud aknaoperatsioonide korral kasutatav muuteklahv"
|
||||
|
||||
msgid "Plugins to load for the Clutter-based compositing manager."
|
||||
msgstr "Clutteril põhineva komposiitmontaažihalduri laadimise pluginad."
|
||||
|
||||
# millalgi võiks selle kohta vearaporti kirjutada
|
||||
msgid ""
|
||||
"This key will initiate the \"overlay\", which is a combination window "
|
||||
"overview and application launching system. The default is intended to be the "
|
||||
"\"Windows key\" on PC hardware. It's expected that this binding either the "
|
||||
"default or set to the empty string."
|
||||
msgstr ""
|
||||
"See klahv näitab \"pealiskihti\", milles on koos akende ülevaade ja "
|
||||
"rakenduste käivitamise süsteem. PC-arvutitel on see vaikimisi \"Windowsi "
|
||||
"klahv\". Eeldatavasti määratakse selle seose väärtuseks vaikimisi või tühi "
|
||||
"sõne."
|
||||
|
||||
msgid ""
|
||||
"When true, instead of having independent titlebars, modal dialogs appear "
|
||||
"attached to the titlebar of the parent window and are moved together with "
|
||||
"the parent window."
|
||||
msgstr ""
|
||||
"Kui märgitud, siis eraldi tiitliribade asemel on moodaalsed dialoogid "
|
||||
"emaakna tiitliribade küljes ning liiguvad koos emaaknaga."
|
||||
|
||||
#, c-format
|
||||
msgid "Usage: %s\n"
|
||||
@ -1321,6 +1307,8 @@ msgid ""
|
||||
"\"version\" attribute cannot be used in metacity-theme-1.xml or metacity-"
|
||||
"theme-2.xml"
|
||||
msgstr ""
|
||||
"\"version\" rekvisiiti pole võimalik kasutada ei failis metacity-theme-1.xml "
|
||||
"ega metacity-theme-2.xml"
|
||||
|
||||
#, c-format
|
||||
msgid "Theme requires version %s but latest supported theme version is %d.%d"
|
||||
@ -1444,7 +1432,7 @@ msgid "Border"
|
||||
msgstr "Raam"
|
||||
|
||||
msgid "Attached Modal Dialog"
|
||||
msgstr ""
|
||||
msgstr "Kinnistatud modaaldialoog"
|
||||
|
||||
#, c-format
|
||||
msgid "Button layout test %d"
|
||||
@ -1523,3 +1511,25 @@ msgstr "y väärtus oli %d, oodati väärtust %d"
|
||||
msgid "%d coordinate expressions parsed in %g seconds (%g seconds average)\n"
|
||||
msgstr ""
|
||||
"%d koordinaatide avaldis töödeldi %g sekundiga (keskmine %g sekundit)\n"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Don't make fullscreen windows that are maximized and have no decorations"
|
||||
#~ msgstr "Ei tehta maksimeeritud ilma raamita täisekraanaknaid."
|
||||
|
||||
#~ msgid "Whether window popup/frame should be shown when cycling windows."
|
||||
#~ msgstr "Kas hüpikakent/raami näidatakse akende vahetamisel."
|
||||
|
||||
#~ msgid "Internal argument for GObject introspection"
|
||||
#~ msgstr "GObject enesevaatluse siseargument"
|
||||
|
||||
#~ msgid "Failed to restart: %s\n"
|
||||
#~ msgstr "Tõrge taaskäivitamisel: %s\n"
|
||||
|
||||
#~ msgid "Error setting clutter plugin list: %s\n"
|
||||
#~ msgstr "Viga clutteri pluginate nimekirja määramisel: %s\n"
|
||||
|
||||
#~ msgid "Clutter Plugins"
|
||||
#~ msgstr "Clutteri pluginad"
|
||||
|
||||
#~ msgid "Plugins to load for the Clutter-based compositing manager."
|
||||
#~ msgstr "Clutteril põhineva komposiitmontaažihalduri laadimise pluginad."
|
||||
|
1296
po/pt_BR.po
1296
po/pt_BR.po
File diff suppressed because it is too large
Load Diff
1300
po/zh_CN.po
1300
po/zh_CN.po
File diff suppressed because it is too large
Load Diff
940
po/zh_HK.po
940
po/zh_HK.po
File diff suppressed because it is too large
Load Diff
940
po/zh_TW.po
940
po/zh_TW.po
File diff suppressed because it is too large
Load Diff
215
src/Makefile.am
215
src/Makefile.am
@ -1,11 +1,30 @@
|
||||
# Flag build for parallelism; see https://savannah.gnu.org/patch/?6905
|
||||
.AUTOPARALLEL:
|
||||
|
||||
lib_LTLIBRARIES = libmutter-private.la
|
||||
lib_LTLIBRARIES = libmutter.la
|
||||
|
||||
SUBDIRS=wm-tester tools compositor/plugins
|
||||
|
||||
INCLUDES=@MUTTER_CFLAGS@ -I $(srcdir)/include -I$(srcdir)/compositor -DMUTTER_LIBEXECDIR=\"$(libexecdir)\" -DHOST_ALIAS=\"@HOST_ALIAS@\" -DMUTTER_LOCALEDIR=\"$(prefix)/@DATADIRNAME@/locale\" -DMUTTER_PKGDATADIR=\"$(pkgdatadir)\" -DMUTTER_DATADIR=\"$(datadir)\" -DG_LOG_DOMAIN=\"mutter\" -DSN_API_NOT_YET_FROZEN=1 -DMUTTER_MAJOR_VERSION=$(MUTTER_MAJOR_VERSION) -DMUTTER_MINOR_VERSION=$(MUTTER_MINOR_VERSION) -DMUTTER_MICRO_VERSION=$(MUTTER_MICRO_VERSION) -DMUTTER_PLUGIN_API_VERSION=$(MUTTER_PLUGIN_API_VERSION) -DMUTTER_PKGLIBDIR=\"$(pkglibdir)\" -DMUTTER_PLUGIN_DIR=\"@MUTTER_PLUGIN_DIR@\"
|
||||
INCLUDES= \
|
||||
$(MUTTER_CFLAGS) \
|
||||
-I$(srcdir) \
|
||||
-I$(srcdir)/core \
|
||||
-I$(srcdir)/ui \
|
||||
-I$(srcdir)/compositor \
|
||||
-DMUTTER_LIBEXECDIR=\"$(libexecdir)\" \
|
||||
-DHOST_ALIAS=\"@HOST_ALIAS@\" \
|
||||
-DMUTTER_LOCALEDIR=\"$(prefix)/@DATADIRNAME@/locale\" \
|
||||
-DMUTTER_PKGDATADIR=\"$(pkgdatadir)\" \
|
||||
-DMUTTER_DATADIR=\"$(datadir)\" \
|
||||
-DG_LOG_DOMAIN=\"mutter\" \
|
||||
-DSN_API_NOT_YET_FROZEN=1 \
|
||||
-DMUTTER_MAJOR_VERSION=$(MUTTER_MAJOR_VERSION) \
|
||||
-DMUTTER_MINOR_VERSION=$(MUTTER_MINOR_VERSION) \
|
||||
-DMUTTER_MICRO_VERSION=$(MUTTER_MICRO_VERSION) \
|
||||
-DMUTTER_PLUGIN_API_VERSION=$(MUTTER_PLUGIN_API_VERSION) \
|
||||
-DMUTTER_PKGLIBDIR=\"$(pkglibdir)\" \
|
||||
-DMUTTER_PLUGIN_DIR=\"@MUTTER_PLUGIN_DIR@\" \
|
||||
-DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\"
|
||||
|
||||
mutter_built_sources = \
|
||||
mutter-marshal.h \
|
||||
@ -13,14 +32,14 @@ mutter_built_sources = \
|
||||
mutter-enum-types.h \
|
||||
mutter-enum-types.c
|
||||
|
||||
mutter_SOURCES= \
|
||||
libmutter_la_SOURCES = \
|
||||
core/async-getprop.c \
|
||||
core/async-getprop.h \
|
||||
core/bell.c \
|
||||
core/bell.h \
|
||||
core/boxes.c \
|
||||
core/boxes-private.h \
|
||||
include/boxes.h \
|
||||
meta/boxes.h \
|
||||
compositor/cogl-utils.c \
|
||||
compositor/cogl-utils.h \
|
||||
compositor/compositor.c \
|
||||
@ -46,11 +65,11 @@ mutter_SOURCES= \
|
||||
compositor/meta-window-shape.h \
|
||||
compositor/region-utils.c \
|
||||
compositor/region-utils.h \
|
||||
include/compositor.h \
|
||||
include/meta-plugin.h \
|
||||
include/meta-shadow-factory.h \
|
||||
include/meta-window-actor.h \
|
||||
include/compositor-mutter.h \
|
||||
meta/compositor.h \
|
||||
meta/meta-plugin.h \
|
||||
meta/meta-shadow-factory.h \
|
||||
meta/meta-window-actor.h \
|
||||
meta/compositor-mutter.h \
|
||||
core/above-tab-keycode.c \
|
||||
core/constraints.c \
|
||||
core/constraints.h \
|
||||
@ -58,25 +77,24 @@ mutter_SOURCES= \
|
||||
core/delete.c \
|
||||
core/display.c \
|
||||
core/display-private.h \
|
||||
include/display.h \
|
||||
meta/display.h \
|
||||
ui/draw-workspace.c \
|
||||
ui/draw-workspace.h \
|
||||
core/edge-resistance.c \
|
||||
core/edge-resistance.h \
|
||||
core/errors.c \
|
||||
include/errors.h \
|
||||
meta/errors.h \
|
||||
core/eventqueue.c \
|
||||
core/eventqueue.h \
|
||||
core/frame.c \
|
||||
core/frame-private.h \
|
||||
include/frame.h \
|
||||
core/frame.h \
|
||||
ui/gradient.c \
|
||||
ui/gradient.h \
|
||||
meta/gradient.h \
|
||||
core/group-private.h \
|
||||
core/group-props.c \
|
||||
core/group-props.h \
|
||||
core/group.c \
|
||||
include/group.h \
|
||||
meta/group.h \
|
||||
core/iconcache.c \
|
||||
core/iconcache.h \
|
||||
core/keybindings.c \
|
||||
@ -86,11 +104,11 @@ mutter_SOURCES= \
|
||||
core/place.c \
|
||||
core/place.h \
|
||||
core/prefs.c \
|
||||
include/prefs.h \
|
||||
meta/prefs.h \
|
||||
core/screen.c \
|
||||
core/screen-private.h \
|
||||
include/screen.h \
|
||||
include/types.h \
|
||||
meta/screen.h \
|
||||
meta/types.h \
|
||||
core/session.c \
|
||||
core/session.h \
|
||||
core/stack.c \
|
||||
@ -98,19 +116,19 @@ mutter_SOURCES= \
|
||||
core/stack-tracker.c \
|
||||
core/stack-tracker.h \
|
||||
core/util.c \
|
||||
include/util.h \
|
||||
meta/util.h \
|
||||
core/window-props.c \
|
||||
core/window-props.h \
|
||||
core/window.c \
|
||||
core/window-private.h \
|
||||
include/window.h \
|
||||
meta/window.h \
|
||||
core/workspace.c \
|
||||
core/workspace-private.h \
|
||||
core/xprops.c \
|
||||
include/xprops.h \
|
||||
include/common.h \
|
||||
include/core.h \
|
||||
include/ui.h \
|
||||
core/xprops.h \
|
||||
meta/common.h \
|
||||
core/core.h \
|
||||
ui/ui.h \
|
||||
inlinepixbufs.h \
|
||||
ui/fixedtip.c \
|
||||
ui/fixedtip.h \
|
||||
@ -121,71 +139,55 @@ mutter_SOURCES= \
|
||||
ui/metaaccellabel.c \
|
||||
ui/metaaccellabel.h \
|
||||
ui/resizepopup.c \
|
||||
include/resizepopup.h \
|
||||
ui/resizepopup.h \
|
||||
ui/tabpopup.c \
|
||||
include/tabpopup.h \
|
||||
ui/tabpopup.h \
|
||||
ui/tile-preview.c \
|
||||
include/tile-preview.h \
|
||||
ui/tile-preview.h \
|
||||
ui/theme-parser.c \
|
||||
ui/theme.c \
|
||||
ui/theme.h \
|
||||
meta/theme.h \
|
||||
ui/theme-private.h \
|
||||
ui/ui.c \
|
||||
include/all-keybindings.h \
|
||||
core/all-keybindings.h \
|
||||
meta/preview-widget.h \
|
||||
ui/preview-widget.c \
|
||||
$(mutter_built_sources)
|
||||
|
||||
# by setting libmutter_private_la_CFLAGS, the files shared with
|
||||
# mutter proper will be compiled with different names.
|
||||
libmutter_private_la_CFLAGS =
|
||||
libmutter_private_la_SOURCES= \
|
||||
core/boxes.c \
|
||||
include/boxes.h \
|
||||
ui/gradient.c \
|
||||
ui/gradient.h \
|
||||
core/util.c \
|
||||
include/util.h \
|
||||
include/common.h \
|
||||
ui/preview-widget.c \
|
||||
ui/preview-widget.h \
|
||||
ui/theme-parser.c \
|
||||
ui/theme.c \
|
||||
ui/theme.h
|
||||
|
||||
libmutter_private_la_LDFLAGS = -no-undefined
|
||||
libmutter_private_la_LIBADD = @MUTTER_LIBS@
|
||||
libmutter_la_LDFLAGS = -no-undefined
|
||||
libmutter_la_LIBADD = $(MUTTER_LIBS)
|
||||
|
||||
# Headers installed for plugins; introspected information will
|
||||
# be extracted into Mutter-<version>.gir
|
||||
libmutterinclude_base_headers = \
|
||||
include/boxes.h \
|
||||
ui/gradient.h \
|
||||
include/main.h \
|
||||
include/util.h \
|
||||
include/common.h \
|
||||
ui/theme.h \
|
||||
include/prefs.h \
|
||||
include/window.h \
|
||||
include/workspace.h \
|
||||
include/compositor.h \
|
||||
include/compositor-mutter.h \
|
||||
include/types.h \
|
||||
include/errors.h \
|
||||
include/screen.h \
|
||||
include/display.h \
|
||||
include/group.h \
|
||||
include/keybindings.h \
|
||||
include/meta-plugin.h \
|
||||
include/meta-shadow-factory.h \
|
||||
include/meta-window-actor.h
|
||||
meta/boxes.h \
|
||||
meta/common.h \
|
||||
meta/compositor-mutter.h \
|
||||
meta/compositor.h \
|
||||
meta/display.h \
|
||||
meta/errors.h \
|
||||
meta/gradient.h \
|
||||
meta/group.h \
|
||||
meta/keybindings.h \
|
||||
meta/main.h \
|
||||
meta/meta-plugin.h \
|
||||
meta/meta-shadow-factory.h \
|
||||
meta/meta-window-actor.h \
|
||||
meta/prefs.h \
|
||||
meta/screen.h \
|
||||
meta/theme.h \
|
||||
meta/types.h \
|
||||
meta/util.h \
|
||||
meta/window.h \
|
||||
meta/workspace.h
|
||||
|
||||
# Excluded from scanning for introspection but installed
|
||||
# preview-widget.h: only part of libmutter-private
|
||||
# atomnames.h: macros cause problems for scanning process
|
||||
libmutterinclude_extra_headers = \
|
||||
ui/preview-widget.h \
|
||||
include/atomnames.h
|
||||
meta/preview-widget.h \
|
||||
meta/atomnames.h
|
||||
|
||||
libmutterincludedir = $(includedir)/mutter/mutter-private
|
||||
libmutterincludedir = $(includedir)/mutter/meta
|
||||
|
||||
libmutterinclude_HEADERS = \
|
||||
$(libmutterinclude_base_headers) \
|
||||
@ -196,9 +198,14 @@ mutter_theme_viewer_SOURCES= \
|
||||
|
||||
bin_PROGRAMS=mutter mutter-theme-viewer
|
||||
|
||||
mutter_SOURCES = core/mutter.c
|
||||
mutter_LDADD = $(MUTTER_LIBS) libmutter.la
|
||||
|
||||
if HAVE_INTROSPECTION
|
||||
include $(INTROSPECTION_MAKEFILE)
|
||||
|
||||
api_version = $(MUTTER_MAJOR_VERSION).$(MUTTER_MINOR_VERSION)
|
||||
|
||||
if WITH_INTROSPECTION
|
||||
# These files are in package-private directories, even though they may be used
|
||||
# by plugins. If you're writing a plugin, use g-ir-compiler --add-include-path
|
||||
# and g-ir-compiler --includedir.
|
||||
@ -208,50 +215,32 @@ gir_DATA = Meta-$(api_version).gir
|
||||
typelibdir = $(pkglibdir)
|
||||
typelib_DATA = Meta-$(api_version).typelib
|
||||
|
||||
# We need to strip out the attribute that would point back to libmutter-introspect
|
||||
# so that libgirepository looks for symbols in the executable instead
|
||||
Meta-$(api_version).gir: $(G_IR_SCANNER) mutter $(libmutterinclude_HEADERS) $(mutter_SOURCES) Makefile
|
||||
$(AM_V_GEN) pwd=`pwd` ; \
|
||||
cd $(srcdir) && \
|
||||
$(G_IR_SCANNER) \
|
||||
--namespace=Meta \
|
||||
--nsversion=$(api_version) \
|
||||
--warn-all \
|
||||
--warn-error \
|
||||
--include=GObject-2.0 \
|
||||
--include=Gdk-3.0 \
|
||||
--include=Gtk-3.0 \
|
||||
--include=Clutter-1.0 \
|
||||
--pkg=clutter-1.0 \
|
||||
--pkg=gtk+-3.0 \
|
||||
--include=xlib-2.0 \
|
||||
--include=xfixes-4.0 \
|
||||
--program=$$pwd/mutter \
|
||||
mutter-enum-types.h \
|
||||
$(filter %.c,$(mutter_SOURCES)) \
|
||||
$(libmutterinclude_base_headers) \
|
||||
$(INCLUDES) \
|
||||
-o $$pwd/$@
|
||||
INTROSPECTION_GIRS = Meta-$(api_version).gir
|
||||
|
||||
Meta-$(api_version).gir: libmutter.la
|
||||
@META_GIR@_INCLUDES = GObject-2.0 Gdk-3.0 Gtk-3.0 Clutter-1.0 xlib-2.0 xfixes-4.0
|
||||
@META_GIR@_PACKAGES = clutter-1.0 gtk+-3.0
|
||||
@META_GIR@_CFLAGS = $(INCLUDES)
|
||||
@META_GIR@_LIBS = libmutter.la
|
||||
@META_GIR@_FILES = \
|
||||
mutter-enum-types.h \
|
||||
$(libmutterinclude_base_headers) \
|
||||
$(filter %.c,$(libmutter_la_SOURCES))
|
||||
@META_GIR@_SCANNERFLAGS = --warn-all --warn-error
|
||||
|
||||
Meta-$(api_version).typelib: $(G_IR_COMPILER) Meta-$(api_version).gir
|
||||
$(AM_V_GEN) LD_LIBRARY_PATH=$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}. $(G_IR_COMPILER) Meta-$(api_version).gir -o $@
|
||||
endif
|
||||
|
||||
EFENCE=
|
||||
mutter_LDADD=@MUTTER_LIBS@ $(EFENCE)
|
||||
mutter_LDFLAGS=-export-dynamic
|
||||
mutter_theme_viewer_LDADD= $(MUTTER_LIBS) libmutter.la
|
||||
|
||||
mutter_theme_viewer_LDADD= @MUTTER_LIBS@ libmutter-private.la
|
||||
|
||||
testboxes_SOURCES=include/util.h core/util.c include/boxes.h core/boxes.c core/testboxes.c
|
||||
testgradient_SOURCES=ui/gradient.h ui/gradient.c ui/testgradient.c
|
||||
testasyncgetprop_SOURCES=core/async-getprop.h core/async-getprop.c core/testasyncgetprop.c
|
||||
testboxes_SOURCES = core/testboxes.c
|
||||
testgradient_SOURCES = ui/testgradient.c
|
||||
testasyncgetprop_SOURCES = core/testasyncgetprop.c
|
||||
|
||||
noinst_PROGRAMS=testboxes testgradient testasyncgetprop
|
||||
|
||||
testboxes_LDADD= @MUTTER_LIBS@
|
||||
testgradient_LDADD= @MUTTER_LIBS@
|
||||
testasyncgetprop_LDADD= @MUTTER_LIBS@
|
||||
testboxes_LDADD = $(MUTTER_LIBS) libmutter.la
|
||||
testgradient_LDADD = $(MUTTER_LIBS) libmutter.la
|
||||
testasyncgetprop_LDADD = $(MUTTER_LIBS) libmutter.la
|
||||
|
||||
@INTLTOOL_DESKTOP_RULE@
|
||||
|
||||
@ -265,7 +254,7 @@ wmproperties_in_files=mutter-wm.desktop.in
|
||||
wmproperties_files=$(wmproperties_in_files:.desktop.in=.desktop)
|
||||
wmproperties_DATA = $(wmproperties_files)
|
||||
|
||||
schemadir = @GCONF_SCHEMA_FILE_DIR@
|
||||
schemadir = $(GCONF_SCHEMA_FILE_DIR)
|
||||
schema_in_files = mutter.schemas.in
|
||||
schema_DATA = $(schema_in_files:.schemas.in=.schemas)
|
||||
|
||||
@ -300,7 +289,7 @@ inlinepixbufs.h: $(IMAGES)
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
|
||||
pkgconfig_DATA = libmutter-private.pc mutter-plugins.pc
|
||||
pkgconfig_DATA = libmutter.pc mutter-plugins.pc
|
||||
|
||||
EXTRA_DIST=$(desktopfiles_files) \
|
||||
$(wmproperties_files) \
|
||||
@ -308,7 +297,7 @@ EXTRA_DIST=$(desktopfiles_files) \
|
||||
$(desktopfiles_in_files) \
|
||||
$(wmproperties_in_files) \
|
||||
$(schema_in_files) \
|
||||
libmutter-private.pc.in \
|
||||
libmutter.pc.in \
|
||||
mutter-plugins.pc.in \
|
||||
mutter-enum-types.h.in \
|
||||
mutter-enum-types.c.in \
|
||||
|
@ -5,8 +5,8 @@
|
||||
|
||||
#include <X11/extensions/Xfixes.h>
|
||||
|
||||
#include "compositor.h"
|
||||
#include "display.h"
|
||||
#include <meta/compositor.h>
|
||||
#include <meta/display.h>
|
||||
#include "meta-plugin-manager.h"
|
||||
#include <clutter/clutter.h>
|
||||
|
||||
|
@ -4,19 +4,19 @@
|
||||
|
||||
#include <clutter/x11/clutter-x11.h>
|
||||
|
||||
#include "screen.h"
|
||||
#include "errors.h"
|
||||
#include "window.h"
|
||||
#include <meta/screen.h>
|
||||
#include <meta/errors.h>
|
||||
#include <meta/window.h>
|
||||
#include "compositor-private.h"
|
||||
#include "compositor-mutter.h"
|
||||
#include <meta/compositor-mutter.h>
|
||||
#include "xprops.h"
|
||||
#include "prefs.h"
|
||||
#include "meta-shadow-factory.h"
|
||||
#include <meta/prefs.h>
|
||||
#include <meta/meta-shadow-factory.h>
|
||||
#include "meta-window-actor-private.h"
|
||||
#include "meta-window-group.h"
|
||||
#include "meta-background-actor.h"
|
||||
#include "../core/window-private.h" /* to check window->hidden */
|
||||
#include "../core/display-private.h" /* for meta_display_lookup_x_window() */
|
||||
#include "window-private.h" /* to check window->hidden */
|
||||
#include "display-private.h" /* for meta_display_lookup_x_window() */
|
||||
#include <X11/extensions/shape.h>
|
||||
#include <X11/extensions/Xcomposite.h>
|
||||
|
||||
@ -550,18 +550,7 @@ meta_compositor_manage_screen (MetaCompositor *compositor,
|
||||
|
||||
info->plugin_mgr =
|
||||
meta_plugin_manager_get (screen);
|
||||
|
||||
if (info->plugin_mgr != meta_plugin_manager_get_default ())
|
||||
{
|
||||
/* The default plugin manager has been initialized during
|
||||
* global preferences load.
|
||||
*/
|
||||
if (!meta_plugin_manager_load (info->plugin_mgr))
|
||||
g_critical ("failed to load plugins");
|
||||
}
|
||||
|
||||
if (!meta_plugin_manager_initialize (info->plugin_mgr))
|
||||
g_critical ("failed to initialize plugins");
|
||||
meta_plugin_manager_initialize (info->plugin_mgr);
|
||||
|
||||
/*
|
||||
* Delay the creation of the overlay window as long as we can, to avoid
|
||||
@ -1198,3 +1187,47 @@ meta_get_overlay_window (MetaScreen *screen)
|
||||
|
||||
return info->output;
|
||||
}
|
||||
|
||||
#define FLASH_TIME_MS 50
|
||||
|
||||
static void
|
||||
flash_out_completed (ClutterAnimation *animation,
|
||||
ClutterActor *flash)
|
||||
{
|
||||
clutter_actor_destroy (flash);
|
||||
}
|
||||
|
||||
static void
|
||||
flash_in_completed (ClutterAnimation *animation,
|
||||
ClutterActor *flash)
|
||||
{
|
||||
clutter_actor_animate (flash, CLUTTER_EASE_IN_QUAD,
|
||||
FLASH_TIME_MS,
|
||||
"opacity", 0,
|
||||
"signal-after::completed", flash_out_completed, flash,
|
||||
NULL);
|
||||
}
|
||||
|
||||
void
|
||||
meta_compositor_flash_screen (MetaCompositor *compositor,
|
||||
MetaScreen *screen)
|
||||
{
|
||||
ClutterActor *stage;
|
||||
ClutterActor *flash;
|
||||
ClutterColor black = { 0, 0, 0, 255 };
|
||||
gfloat width, height;
|
||||
|
||||
stage = meta_get_stage_for_screen (screen);
|
||||
clutter_actor_get_size (stage, &width, &height);
|
||||
|
||||
flash = clutter_rectangle_new_with_color (&black);
|
||||
clutter_actor_set_size (flash, width, height);
|
||||
clutter_actor_set_opacity (flash, 0);
|
||||
clutter_container_add_actor (CLUTTER_CONTAINER (stage), flash);
|
||||
|
||||
clutter_actor_animate (flash, CLUTTER_EASE_OUT_QUAD,
|
||||
FLASH_TIME_MS,
|
||||
"opacity", 192,
|
||||
"signal-after::completed", flash_in_completed, flash,
|
||||
NULL);
|
||||
}
|
||||
|
@ -32,7 +32,7 @@
|
||||
|
||||
#include "cogl-utils.h"
|
||||
#include "compositor-private.h"
|
||||
#include "errors.h"
|
||||
#include <meta/errors.h>
|
||||
#include "meta-background-actor.h"
|
||||
|
||||
struct _MetaBackgroundActorClass
|
||||
@ -190,10 +190,14 @@ static void
|
||||
meta_background_actor_paint (ClutterActor *actor)
|
||||
{
|
||||
MetaBackgroundActor *self = META_BACKGROUND_ACTOR (actor);
|
||||
guchar opacity = clutter_actor_get_paint_opacity (actor);
|
||||
int width, height;
|
||||
|
||||
meta_screen_get_size (self->screen, &width, &height);
|
||||
|
||||
cogl_material_set_color4ub (self->material,
|
||||
opacity, opacity, opacity, opacity);
|
||||
|
||||
cogl_set_source (self->material);
|
||||
|
||||
if (self->visible_region)
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include <clutter/clutter.h>
|
||||
|
||||
#include "screen.h"
|
||||
#include <meta/screen.h>
|
||||
|
||||
/**
|
||||
* MetaBackgroundActor:
|
||||
|
@ -21,7 +21,7 @@
|
||||
* 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "meta-plugin.h"
|
||||
#include <meta/meta-plugin.h>
|
||||
#include "meta-module.h"
|
||||
|
||||
#include <gmodule.h>
|
||||
|
@ -24,20 +24,18 @@
|
||||
#include "config.h"
|
||||
#include "compositor-private.h"
|
||||
#include "meta-plugin-manager.h"
|
||||
#include "prefs.h"
|
||||
#include "errors.h"
|
||||
#include "workspace.h"
|
||||
#include <meta/prefs.h>
|
||||
#include <meta/errors.h>
|
||||
#include <meta/workspace.h>
|
||||
#include "meta-module.h"
|
||||
#include "../core/window-private.h"
|
||||
#include "window-private.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <clutter/x11/clutter-x11.h>
|
||||
|
||||
/*
|
||||
* There is only one instace of each module per the process.
|
||||
*/
|
||||
static GHashTable *plugin_modules = NULL;
|
||||
static GSList *plugin_types;
|
||||
|
||||
/*
|
||||
* We have one "default plugin manager" that acts for the first screen,
|
||||
@ -45,270 +43,79 @@ static GHashTable *plugin_modules = NULL;
|
||||
* plugin managers for each screen. (This is ugly. Probably we should
|
||||
* have one plugin manager and only make the plugins per-screen.)
|
||||
*/
|
||||
|
||||
static MetaPluginManager *default_plugin_manager;
|
||||
|
||||
static gboolean meta_plugin_manager_reload (MetaPluginManager *plugin_mgr);
|
||||
|
||||
struct MetaPluginManager
|
||||
{
|
||||
MetaScreen *screen;
|
||||
|
||||
GList /* MetaPlugin */ *plugins; /* TODO -- maybe use hash table */
|
||||
GList *unload; /* Plugins that are disabled and pending unload */
|
||||
|
||||
guint idle_unload_id;
|
||||
GList /* MetaPlugin */ *plugins; /* TODO -- maybe use hash table */
|
||||
};
|
||||
|
||||
/*
|
||||
* Checks that the plugin is compatible with the WM and sets up the plugin
|
||||
* struct.
|
||||
* Loads the given plugin.
|
||||
*/
|
||||
static MetaPlugin *
|
||||
meta_plugin_load (MetaPluginManager *mgr,
|
||||
MetaModule *module,
|
||||
const gchar *params)
|
||||
{
|
||||
MetaPlugin *plugin = NULL;
|
||||
GType plugin_type = meta_module_get_plugin_type (module);
|
||||
|
||||
if (!plugin_type)
|
||||
{
|
||||
g_warning ("Plugin type not registered !!!");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
plugin = g_object_new (plugin_type,
|
||||
"params", params,
|
||||
NULL);
|
||||
|
||||
return plugin;
|
||||
}
|
||||
|
||||
/*
|
||||
* Attempst to unload a plugin; returns FALSE if plugin cannot be unloaded at
|
||||
* present (e.g., and effect is in progress) and should be scheduled for
|
||||
* removal later.
|
||||
*/
|
||||
static gboolean
|
||||
meta_plugin_unload (MetaPlugin *plugin)
|
||||
{
|
||||
if (meta_plugin_running (plugin))
|
||||
{
|
||||
g_object_set (plugin, "disabled", TRUE, NULL);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
g_object_unref (plugin);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/*
|
||||
* Iddle callback to remove plugins that could not be removed directly and are
|
||||
* pending for removal.
|
||||
*/
|
||||
static gboolean
|
||||
meta_plugin_manager_idle_unload (MetaPluginManager *plugin_mgr)
|
||||
{
|
||||
GList *l = plugin_mgr->unload;
|
||||
gboolean dont_remove = TRUE;
|
||||
|
||||
while (l)
|
||||
{
|
||||
MetaPlugin *plugin = l->data;
|
||||
|
||||
if (meta_plugin_unload (plugin))
|
||||
{
|
||||
/* Remove from list */
|
||||
GList *p = l->prev;
|
||||
GList *n = l->next;
|
||||
|
||||
if (!p)
|
||||
plugin_mgr->unload = n;
|
||||
else
|
||||
p->next = n;
|
||||
|
||||
if (n)
|
||||
n->prev = p;
|
||||
|
||||
g_list_free_1 (l);
|
||||
|
||||
l = n;
|
||||
}
|
||||
else
|
||||
l = l->next;
|
||||
}
|
||||
|
||||
if (!plugin_mgr->unload)
|
||||
{
|
||||
/* If no more unloads are pending, remove the handler as well */
|
||||
dont_remove = FALSE;
|
||||
plugin_mgr->idle_unload_id = 0;
|
||||
}
|
||||
|
||||
return dont_remove;
|
||||
}
|
||||
|
||||
/*
|
||||
* Unloads all plugins
|
||||
*/
|
||||
static void
|
||||
meta_plugin_manager_unload (MetaPluginManager *plugin_mgr)
|
||||
{
|
||||
GList *plugins = plugin_mgr->plugins;
|
||||
|
||||
while (plugins)
|
||||
{
|
||||
MetaPlugin *plugin = plugins->data;
|
||||
|
||||
/* If the plugin could not be removed, move it to the unload list */
|
||||
if (!meta_plugin_unload (plugin))
|
||||
{
|
||||
plugin_mgr->unload = g_list_prepend (plugin_mgr->unload, plugin);
|
||||
|
||||
if (!plugin_mgr->idle_unload_id)
|
||||
{
|
||||
plugin_mgr->idle_unload_id = g_idle_add ((GSourceFunc)
|
||||
meta_plugin_manager_idle_unload,
|
||||
plugin_mgr);
|
||||
}
|
||||
}
|
||||
|
||||
plugins = plugins->next;
|
||||
}
|
||||
|
||||
g_list_free (plugin_mgr->plugins);
|
||||
plugin_mgr->plugins = NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
prefs_changed_callback (MetaPreference pref,
|
||||
void *data)
|
||||
{
|
||||
MetaPluginManager *plugin_mgr = data;
|
||||
|
||||
if (pref == META_PREF_CLUTTER_PLUGINS)
|
||||
{
|
||||
meta_plugin_manager_reload (plugin_mgr);
|
||||
}
|
||||
}
|
||||
|
||||
static MetaModule *
|
||||
meta_plugin_manager_get_module (const gchar *path)
|
||||
{
|
||||
MetaModule *module = g_hash_table_lookup (plugin_modules, path);
|
||||
|
||||
if (!module &&
|
||||
(module = g_object_new (META_TYPE_MODULE, "path", path, NULL)))
|
||||
{
|
||||
g_hash_table_insert (plugin_modules, g_strdup (path), module);
|
||||
}
|
||||
|
||||
return module;
|
||||
}
|
||||
|
||||
/*
|
||||
* Loads all plugins listed in gconf registry.
|
||||
*/
|
||||
gboolean
|
||||
meta_plugin_manager_load (MetaPluginManager *plugin_mgr)
|
||||
void
|
||||
meta_plugin_manager_load (MetaPluginManager *plugin_mgr,
|
||||
const gchar *plugin_name)
|
||||
{
|
||||
const gchar *dpath = MUTTER_PLUGIN_DIR "/";
|
||||
GSList *plugins, *fallback = NULL;
|
||||
gchar *path;
|
||||
MetaModule *module;
|
||||
GType plugin_type;
|
||||
|
||||
plugins = meta_prefs_get_clutter_plugins ();
|
||||
if (g_path_is_absolute (plugin_name))
|
||||
path = g_strdup (plugin_name);
|
||||
else
|
||||
path = g_strconcat (dpath, plugin_name, ".so", NULL);
|
||||
|
||||
if (!plugins)
|
||||
module = g_object_new (META_TYPE_MODULE, "path", path, NULL);
|
||||
if (!module || !g_type_module_use (G_TYPE_MODULE (module)))
|
||||
{
|
||||
/*
|
||||
* If no plugins are specified, try to load the default plugin.
|
||||
/* This is fatal under the assumption that a monitoring
|
||||
* process like gnome-session will take over and handle
|
||||
* our untimely exit.
|
||||
*/
|
||||
fallback = g_slist_append (fallback, "default");
|
||||
plugins = fallback;
|
||||
g_printerr ("Unable to load plugin module [%s]: %s",
|
||||
path, g_module_error());
|
||||
exit (1);
|
||||
}
|
||||
|
||||
while (plugins)
|
||||
{
|
||||
gchar *plugin_string;
|
||||
gchar *params;
|
||||
plugin_type = meta_module_get_plugin_type (module);
|
||||
meta_plugin_manager_register (plugin_mgr, plugin_type);
|
||||
|
||||
plugin_string = g_strdup (plugins->data);
|
||||
|
||||
if (plugin_string)
|
||||
{
|
||||
MetaModule *module;
|
||||
gchar *path;
|
||||
|
||||
params = strchr (plugin_string, ':');
|
||||
|
||||
if (params)
|
||||
{
|
||||
*params = 0;
|
||||
++params;
|
||||
}
|
||||
|
||||
if (g_path_is_absolute (plugin_string))
|
||||
path = g_strdup (plugin_string);
|
||||
else
|
||||
path = g_strconcat (dpath, plugin_string, ".so", NULL);
|
||||
|
||||
module = meta_plugin_manager_get_module (path);
|
||||
|
||||
if (module)
|
||||
{
|
||||
gboolean use_succeeded;
|
||||
|
||||
/*
|
||||
* This dlopens the module and registers the plugin type with the
|
||||
* GType system, if the module is not already loaded. When we
|
||||
* create a plugin, the type system also calls g_type_module_use()
|
||||
* to guarantee the module will not be unloaded during the plugin
|
||||
* life time. Consequently we can unuse() the module again.
|
||||
*/
|
||||
use_succeeded = g_type_module_use (G_TYPE_MODULE (module));
|
||||
|
||||
if (use_succeeded)
|
||||
{
|
||||
MetaPlugin *plugin = meta_plugin_load (plugin_mgr, module, params);
|
||||
|
||||
if (plugin)
|
||||
plugin_mgr->plugins = g_list_prepend (plugin_mgr->plugins, plugin);
|
||||
else
|
||||
g_warning ("Plugin load for [%s] failed", path);
|
||||
|
||||
g_type_module_unuse (G_TYPE_MODULE (module));
|
||||
}
|
||||
}
|
||||
else
|
||||
g_warning ("Unable to load plugin module [%s]: %s",
|
||||
path, g_module_error());
|
||||
|
||||
g_free (path);
|
||||
g_free (plugin_string);
|
||||
}
|
||||
|
||||
plugins = plugins->next;
|
||||
}
|
||||
|
||||
|
||||
if (fallback)
|
||||
g_slist_free (fallback);
|
||||
|
||||
if (plugin_mgr->plugins != NULL)
|
||||
{
|
||||
meta_prefs_add_listener (prefs_changed_callback, plugin_mgr);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
g_type_module_unuse (G_TYPE_MODULE (module));
|
||||
g_free (path);
|
||||
}
|
||||
|
||||
gboolean
|
||||
/*
|
||||
* Registers the given plugin type
|
||||
*/
|
||||
void
|
||||
meta_plugin_manager_register (MetaPluginManager *plugin_mgr,
|
||||
GType plugin_type)
|
||||
{
|
||||
MetaPlugin *plugin;
|
||||
|
||||
plugin_types = g_slist_prepend (plugin_types, GSIZE_TO_POINTER (plugin_type));
|
||||
|
||||
plugin = g_object_new (plugin_type, NULL);
|
||||
plugin_mgr->plugins = g_list_prepend (plugin_mgr->plugins, plugin);
|
||||
}
|
||||
|
||||
void
|
||||
meta_plugin_manager_initialize (MetaPluginManager *plugin_mgr)
|
||||
{
|
||||
GList *iter;
|
||||
|
||||
if (!plugin_mgr->plugins)
|
||||
{
|
||||
/*
|
||||
* If no plugins are specified, load the default plugin.
|
||||
*/
|
||||
meta_plugin_manager_load (plugin_mgr, "default");
|
||||
}
|
||||
|
||||
for (iter = plugin_mgr->plugins; iter; iter = iter->next)
|
||||
{
|
||||
MetaPlugin *plugin = (MetaPlugin*) iter->data;
|
||||
@ -321,26 +128,6 @@ meta_plugin_manager_initialize (MetaPluginManager *plugin_mgr)
|
||||
if (klass->start)
|
||||
klass->start (plugin);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/*
|
||||
* Reloads all plugins
|
||||
*/
|
||||
static gboolean
|
||||
meta_plugin_manager_reload (MetaPluginManager *plugin_mgr)
|
||||
{
|
||||
/* TODO -- brute force; should we build a list of plugins to load and list of
|
||||
* plugins to unload? We are probably not going to have large numbers of
|
||||
* plugins loaded at the same time, so it might not be worth it.
|
||||
*/
|
||||
|
||||
/* Prevent stale grabs on unloaded plugins */
|
||||
meta_check_end_modal (plugin_mgr->screen);
|
||||
|
||||
meta_plugin_manager_unload (plugin_mgr);
|
||||
return meta_plugin_manager_load (plugin_mgr);
|
||||
}
|
||||
|
||||
static MetaPluginManager *
|
||||
@ -348,15 +135,8 @@ meta_plugin_manager_new (MetaScreen *screen)
|
||||
{
|
||||
MetaPluginManager *plugin_mgr;
|
||||
|
||||
if (!plugin_modules)
|
||||
{
|
||||
plugin_modules = g_hash_table_new_full (g_str_hash, g_str_equal, g_free,
|
||||
NULL);
|
||||
}
|
||||
|
||||
plugin_mgr = g_new0 (MetaPluginManager, 1);
|
||||
|
||||
plugin_mgr->screen = screen;
|
||||
plugin_mgr->screen = screen;
|
||||
|
||||
if (screen)
|
||||
g_object_set_data (G_OBJECT (screen), "meta-plugin-manager", plugin_mgr);
|
||||
@ -397,7 +177,20 @@ meta_plugin_manager_get (MetaScreen *screen)
|
||||
}
|
||||
else
|
||||
{
|
||||
return meta_plugin_manager_new (screen);
|
||||
GSList *iter;
|
||||
GType plugin_type;
|
||||
MetaPlugin *plugin;
|
||||
|
||||
plugin_mgr = meta_plugin_manager_new (screen);
|
||||
|
||||
for (iter = plugin_types; iter; iter = iter->next)
|
||||
{
|
||||
plugin_type = (GType)GPOINTER_TO_SIZE (iter->data);
|
||||
plugin = g_object_new (plugin_type, "screen", screen, NULL);
|
||||
plugin_mgr->plugins = g_list_prepend (plugin_mgr->plugins, plugin);
|
||||
}
|
||||
|
||||
return plugin_mgr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -24,11 +24,11 @@
|
||||
#ifndef META_PLUGIN_MANAGER_H_
|
||||
#define META_PLUGIN_MANAGER_H_
|
||||
|
||||
#include "types.h"
|
||||
#include "screen.h"
|
||||
#include <meta/types.h>
|
||||
#include <meta/screen.h>
|
||||
|
||||
#define META_PLUGIN_FROM_MANAGER_
|
||||
#include "meta-plugin.h"
|
||||
#include <meta/meta-plugin.h>
|
||||
#undef META_PLUGIN_FROM_MANAGER_
|
||||
|
||||
#define META_PLUGIN_MINIMIZE (1<<0)
|
||||
@ -49,8 +49,12 @@ typedef struct MetaPluginManager MetaPluginManager;
|
||||
MetaPluginManager * meta_plugin_manager_get (MetaScreen *screen);
|
||||
MetaPluginManager * meta_plugin_manager_get_default (void);
|
||||
|
||||
gboolean meta_plugin_manager_load (MetaPluginManager *mgr);
|
||||
gboolean meta_plugin_manager_initialize (MetaPluginManager *plugin_mgr);
|
||||
void meta_plugin_manager_load (MetaPluginManager *mgr,
|
||||
const gchar *plugin_name);
|
||||
void meta_plugin_manager_register (MetaPluginManager *mgr,
|
||||
GType plugin_type);
|
||||
void meta_plugin_manager_initialize (MetaPluginManager *mgr);
|
||||
|
||||
gboolean meta_plugin_manager_event_simple (MetaPluginManager *mgr,
|
||||
MetaWindowActor *actor,
|
||||
unsigned long event);
|
||||
|
@ -21,9 +21,10 @@
|
||||
* 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "meta-plugin.h"
|
||||
#include "screen.h"
|
||||
#include "display.h"
|
||||
#include <meta/meta-plugin.h>
|
||||
#include "meta-plugin-manager.h"
|
||||
#include <meta/screen.h>
|
||||
#include <meta/display.h>
|
||||
|
||||
#include <string.h>
|
||||
#include <X11/Xlib.h>
|
||||
@ -43,7 +44,6 @@ enum
|
||||
{
|
||||
PROP_0,
|
||||
PROP_SCREEN,
|
||||
PROP_PARAMS,
|
||||
PROP_FEATURES,
|
||||
PROP_DISABLED,
|
||||
PROP_DEBUG_MODE,
|
||||
@ -52,7 +52,6 @@ enum
|
||||
struct _MetaPluginPrivate
|
||||
{
|
||||
MetaScreen *screen;
|
||||
gchar *params;
|
||||
gulong features;
|
||||
|
||||
gint running;
|
||||
@ -61,6 +60,46 @@ struct _MetaPluginPrivate
|
||||
gboolean debug : 1;
|
||||
};
|
||||
|
||||
static void
|
||||
meta_plugin_set_features (MetaPlugin *plugin)
|
||||
{
|
||||
MetaPluginPrivate *priv = plugin->priv;
|
||||
MetaPluginClass *klass = META_PLUGIN_GET_CLASS (plugin);
|
||||
|
||||
priv->features = 0;
|
||||
|
||||
/*
|
||||
* Feature flags: identify events that the plugin can handle; a plugin can
|
||||
* handle one or more events.
|
||||
*/
|
||||
if (klass->minimize)
|
||||
priv->features |= META_PLUGIN_MINIMIZE;
|
||||
|
||||
if (klass->maximize)
|
||||
priv->features |= META_PLUGIN_MAXIMIZE;
|
||||
|
||||
if (klass->unmaximize)
|
||||
priv->features |= META_PLUGIN_UNMAXIMIZE;
|
||||
|
||||
if (klass->map)
|
||||
priv->features |= META_PLUGIN_MAP;
|
||||
|
||||
if (klass->destroy)
|
||||
priv->features |= META_PLUGIN_DESTROY;
|
||||
|
||||
if (klass->switch_workspace)
|
||||
priv->features |= META_PLUGIN_SWITCH_WORKSPACE;
|
||||
}
|
||||
|
||||
static void
|
||||
meta_plugin_constructed (GObject *object)
|
||||
{
|
||||
meta_plugin_set_features (META_PLUGIN (object));
|
||||
|
||||
if (G_OBJECT_CLASS (meta_plugin_parent_class)->constructed)
|
||||
G_OBJECT_CLASS (meta_plugin_parent_class)->constructed (object);
|
||||
}
|
||||
|
||||
static void
|
||||
meta_plugin_dispose (GObject *object)
|
||||
{
|
||||
@ -70,97 +109,9 @@ meta_plugin_dispose (GObject *object)
|
||||
static void
|
||||
meta_plugin_finalize (GObject *object)
|
||||
{
|
||||
MetaPluginPrivate *priv = META_PLUGIN (object)->priv;
|
||||
|
||||
g_free (priv->params);
|
||||
priv->params = NULL;
|
||||
|
||||
G_OBJECT_CLASS (meta_plugin_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
static void
|
||||
meta_plugin_parse_params (MetaPlugin *plugin)
|
||||
{
|
||||
char *p;
|
||||
gulong features = 0;
|
||||
MetaPluginPrivate *priv = plugin->priv;
|
||||
MetaPluginClass *klass = META_PLUGIN_GET_CLASS (plugin);
|
||||
|
||||
/*
|
||||
* Feature flags: identify events that the plugin can handle; a plugin can
|
||||
* handle one or more events.
|
||||
*/
|
||||
if (klass->minimize)
|
||||
features |= META_PLUGIN_MINIMIZE;
|
||||
|
||||
if (klass->maximize)
|
||||
features |= META_PLUGIN_MAXIMIZE;
|
||||
|
||||
if (klass->unmaximize)
|
||||
features |= META_PLUGIN_UNMAXIMIZE;
|
||||
|
||||
if (klass->map)
|
||||
features |= META_PLUGIN_MAP;
|
||||
|
||||
if (klass->destroy)
|
||||
features |= META_PLUGIN_DESTROY;
|
||||
|
||||
if (klass->switch_workspace)
|
||||
features |= META_PLUGIN_SWITCH_WORKSPACE;
|
||||
|
||||
if (priv->params)
|
||||
{
|
||||
gboolean debug = FALSE;
|
||||
|
||||
if ((p = strstr (priv->params, "disable:")))
|
||||
{
|
||||
gchar *d = g_strdup (p+8);
|
||||
|
||||
p = strchr (d, ';');
|
||||
|
||||
if (p)
|
||||
*p = 0;
|
||||
|
||||
if (strstr (d, "minimize"))
|
||||
features &= ~ META_PLUGIN_MINIMIZE;
|
||||
|
||||
if (strstr (d, "maximize"))
|
||||
features &= ~ META_PLUGIN_MAXIMIZE;
|
||||
|
||||
if (strstr (d, "unmaximize"))
|
||||
features &= ~ META_PLUGIN_UNMAXIMIZE;
|
||||
|
||||
if (strstr (d, "map"))
|
||||
features &= ~ META_PLUGIN_MAP;
|
||||
|
||||
if (strstr (d, "destroy"))
|
||||
features &= ~ META_PLUGIN_DESTROY;
|
||||
|
||||
if (strstr (d, "switch-workspace"))
|
||||
features &= ~META_PLUGIN_SWITCH_WORKSPACE;
|
||||
|
||||
g_free (d);
|
||||
}
|
||||
|
||||
if (strstr (priv->params, "debug"))
|
||||
debug = TRUE;
|
||||
|
||||
if (debug != priv->debug)
|
||||
{
|
||||
priv->debug = debug;
|
||||
|
||||
g_object_notify (G_OBJECT (plugin), "debug-mode");
|
||||
}
|
||||
}
|
||||
|
||||
if (features != priv->features)
|
||||
{
|
||||
priv->features = features;
|
||||
|
||||
g_object_notify (G_OBJECT (plugin), "features");
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
meta_plugin_set_property (GObject *object,
|
||||
guint prop_id,
|
||||
@ -174,10 +125,6 @@ meta_plugin_set_property (GObject *object,
|
||||
case PROP_SCREEN:
|
||||
priv->screen = g_value_get_object (value);
|
||||
break;
|
||||
case PROP_PARAMS:
|
||||
priv->params = g_value_dup_string (value);
|
||||
meta_plugin_parse_params (META_PLUGIN (object));
|
||||
break;
|
||||
case PROP_DISABLED:
|
||||
priv->disabled = g_value_get_boolean (value);
|
||||
break;
|
||||
@ -203,9 +150,6 @@ meta_plugin_get_property (GObject *object,
|
||||
case PROP_SCREEN:
|
||||
g_value_set_object (value, priv->screen);
|
||||
break;
|
||||
case PROP_PARAMS:
|
||||
g_value_set_string (value, priv->params);
|
||||
break;
|
||||
case PROP_DISABLED:
|
||||
g_value_set_boolean (value, priv->disabled);
|
||||
break;
|
||||
@ -227,6 +171,7 @@ meta_plugin_class_init (MetaPluginClass *klass)
|
||||
{
|
||||
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
||||
|
||||
gobject_class->constructed = meta_plugin_constructed;
|
||||
gobject_class->finalize = meta_plugin_finalize;
|
||||
gobject_class->dispose = meta_plugin_dispose;
|
||||
gobject_class->set_property = meta_plugin_set_property;
|
||||
@ -240,15 +185,6 @@ meta_plugin_class_init (MetaPluginClass *klass)
|
||||
META_TYPE_SCREEN,
|
||||
G_PARAM_READWRITE));
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_PARAMS,
|
||||
g_param_spec_string ("params",
|
||||
"Parameters",
|
||||
"Plugin Parameters",
|
||||
NULL,
|
||||
G_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_FEATURES,
|
||||
g_param_spec_ulong ("features",
|
||||
@ -613,3 +549,18 @@ meta_plugin_get_screen (MetaPlugin *plugin)
|
||||
return priv->screen;
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_plugin_type_register:
|
||||
* @plugin_type: a #MetaPlugin type
|
||||
*
|
||||
* Register @plugin_type as a compositor plugin type to be used.
|
||||
* You must call this before calling meta_init().
|
||||
*/
|
||||
void
|
||||
meta_plugin_type_register (GType plugin_type)
|
||||
{
|
||||
MetaPluginManager *plugin_manager;
|
||||
|
||||
plugin_manager = meta_plugin_manager_get_default ();
|
||||
meta_plugin_manager_register (plugin_manager, plugin_type);
|
||||
}
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include <cairo.h>
|
||||
#include <clutter/clutter.h>
|
||||
#include "meta-window-shape.h"
|
||||
#include "meta-shadow-factory.h"
|
||||
#include <meta/meta-shadow-factory.h>
|
||||
|
||||
/**
|
||||
* MetaShadow:
|
||||
|
@ -31,6 +31,8 @@
|
||||
#include <clutter/clutter.h>
|
||||
#ifdef HAVE_GLX_TEXTURE_PIXMAP
|
||||
#include <clutter/glx/clutter-glx.h>
|
||||
#else
|
||||
#include <clutter/x11/clutter-x11.h>
|
||||
#endif /* HAVE_GLX_TEXTURE_PIXMAP */
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include <config.h>
|
||||
|
||||
#include <X11/extensions/Xdamage.h>
|
||||
#include "compositor-mutter.h"
|
||||
#include <meta/compositor-mutter.h>
|
||||
|
||||
MetaWindowActor *meta_window_actor_new (MetaWindow *window);
|
||||
|
||||
|
@ -13,10 +13,10 @@
|
||||
#include <clutter/x11/clutter-x11.h>
|
||||
#include <gdk/gdk.h> /* for gdk_rectangle_union() */
|
||||
|
||||
#include "display.h"
|
||||
#include "errors.h"
|
||||
#include <meta/display.h>
|
||||
#include <meta/errors.h>
|
||||
#include "frame.h"
|
||||
#include "window.h"
|
||||
#include <meta/window.h>
|
||||
#include "xprops.h"
|
||||
|
||||
#include "compositor-private.h"
|
||||
@ -25,6 +25,7 @@
|
||||
#include "meta-window-actor-private.h"
|
||||
|
||||
enum {
|
||||
POSITION_CHANGED,
|
||||
SIZE_CHANGED,
|
||||
LAST_SIGNAL
|
||||
};
|
||||
@ -284,6 +285,13 @@ meta_window_actor_class_init (MetaWindowActorClass *klass)
|
||||
PROP_SHADOW_CLASS,
|
||||
pspec);
|
||||
|
||||
signals[POSITION_CHANGED] =
|
||||
g_signal_new ("position-changed",
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
0, NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
G_TYPE_NONE, 0);
|
||||
signals[SIZE_CHANGED] =
|
||||
g_signal_new ("size-changed",
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
@ -365,6 +373,14 @@ window_decorated_notify (MetaWindow *mw,
|
||||
meta_window_actor_constructed (G_OBJECT (self));
|
||||
}
|
||||
|
||||
static void
|
||||
window_appears_focused_notify (MetaWindow *mw,
|
||||
GParamSpec *arg1,
|
||||
gpointer data)
|
||||
{
|
||||
clutter_actor_queue_redraw (CLUTTER_ACTOR (data));
|
||||
}
|
||||
|
||||
static void
|
||||
meta_window_actor_constructed (GObject *object)
|
||||
{
|
||||
@ -395,8 +411,6 @@ meta_window_actor_constructed (GObject *object)
|
||||
if (format && format->type == PictTypeDirect && format->direct.alphaMask)
|
||||
priv->argb32 = TRUE;
|
||||
|
||||
meta_window_actor_update_opacity (self);
|
||||
|
||||
if (!priv->actor)
|
||||
{
|
||||
priv->actor = meta_shaped_texture_new ();
|
||||
@ -414,6 +428,8 @@ meta_window_actor_constructed (GObject *object)
|
||||
|
||||
g_signal_connect (priv->window, "notify::decorated",
|
||||
G_CALLBACK (window_decorated_notify), self);
|
||||
g_signal_connect (priv->window, "notify::appears-focused",
|
||||
G_CALLBACK (window_appears_focused_notify), self);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -424,7 +440,7 @@ meta_window_actor_constructed (GObject *object)
|
||||
clutter_actor_raise_top (priv->actor);
|
||||
}
|
||||
|
||||
|
||||
meta_window_actor_update_opacity (self);
|
||||
meta_window_actor_update_shape (self, priv->shaped);
|
||||
}
|
||||
|
||||
@ -489,6 +505,12 @@ meta_window_actor_dispose (GObject *object)
|
||||
|
||||
info->windows = g_list_remove (info->windows, (gconstpointer) self);
|
||||
|
||||
if (priv->window)
|
||||
{
|
||||
g_object_unref (priv->window);
|
||||
priv->window = NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* Release the extra reference we took on the actor.
|
||||
*/
|
||||
@ -521,7 +543,11 @@ meta_window_actor_set_property (GObject *object,
|
||||
switch (prop_id)
|
||||
{
|
||||
case PROP_META_WINDOW:
|
||||
priv->window = g_value_get_object (value);
|
||||
{
|
||||
if (priv->window)
|
||||
g_object_unref (priv->window);
|
||||
priv->window = g_value_dup_object (value);
|
||||
}
|
||||
break;
|
||||
case PROP_META_SCREEN:
|
||||
priv->screen = g_value_get_pointer (value);
|
||||
@ -697,7 +723,7 @@ meta_window_actor_paint (ClutterActor *actor)
|
||||
params.y_offset + shape_bounds.y,
|
||||
shape_bounds.width,
|
||||
shape_bounds.height,
|
||||
(clutter_actor_get_paint_opacity (actor) * params.opacity) / 255,
|
||||
(clutter_actor_get_paint_opacity (actor) * params.opacity * priv->opacity) / (255 * 255),
|
||||
priv->shadow_clip);
|
||||
}
|
||||
|
||||
@ -1332,6 +1358,8 @@ meta_window_actor_sync_actor_position (MetaWindowActor *self)
|
||||
window_rect.x, window_rect.y);
|
||||
clutter_actor_set_size (CLUTTER_ACTOR (self),
|
||||
window_rect.width, window_rect.height);
|
||||
|
||||
g_signal_emit (self, signals[POSITION_CHANGED], 0);
|
||||
}
|
||||
|
||||
void
|
||||
@ -1660,7 +1688,7 @@ meta_window_actor_get_obscured_region (MetaWindowActor *self)
|
||||
{
|
||||
MetaWindowActorPrivate *priv = self->priv;
|
||||
|
||||
if (!priv->argb32 && priv->back_pixmap)
|
||||
if (!priv->argb32 && priv->opacity == 0xff && priv->back_pixmap)
|
||||
{
|
||||
if (priv->shaped)
|
||||
return priv->shape_region;
|
||||
@ -2117,5 +2145,5 @@ meta_window_actor_update_opacity (MetaWindowActor *self)
|
||||
opacity = 255;
|
||||
|
||||
self->priv->opacity = opacity;
|
||||
clutter_actor_set_opacity (CLUTTER_ACTOR (self), opacity);
|
||||
clutter_actor_set_opacity (self->priv->actor, opacity);
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#include <clutter/clutter.h>
|
||||
|
||||
#include "screen.h"
|
||||
#include <meta/screen.h>
|
||||
|
||||
/**
|
||||
* MetaWindowGroup:
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
pkglibdir=@MUTTER_PLUGIN_DIR@
|
||||
|
||||
INCLUDES=@MUTTER_CFLAGS@ -I $(top_srcdir)/src/include -DMUTTER_LIBEXECDIR=\"$(libexecdir)\" -DHOST_ALIAS=\"@HOST_ALIAS@\" -DMUTTER_LOCALEDIR=\"$(prefix)/@DATADIRNAME@/locale\" -DMUTTER_PKGDATADIR=\"$(pkgdatadir)\" -DMUTTER_DATADIR=\"$(datadir)\" -DG_LOG_DOMAIN=\"mutter\" -DSN_API_NOT_YET_FROZEN=1 -DMUTTER_MAJOR_VERSION=$(MUTTER_MAJOR_VERSION) -DMUTTER_MINOR_VERSION=$(MUTTER_MINOR_VERSION) -DMUTTER_MICRO_VERSION=$(MUTTER_MICRO_VERSION) -DMUTTER_PLUGIN_API_VERSION=$(MUTTER_PLUGIN_API_VERSION) -DMUTTER_PLUGIN_DIR=\"@MUTTER_PLUGIN_DIR@\"
|
||||
INCLUDES=@MUTTER_CFLAGS@ -I $(top_srcdir)/src -DMUTTER_LIBEXECDIR=\"$(libexecdir)\" -DHOST_ALIAS=\"@HOST_ALIAS@\" -DMUTTER_LOCALEDIR=\"$(prefix)/@DATADIRNAME@/locale\" -DMUTTER_PKGDATADIR=\"$(pkgdatadir)\" -DMUTTER_DATADIR=\"$(datadir)\" -DG_LOG_DOMAIN=\"mutter\" -DSN_API_NOT_YET_FROZEN=1 -DMUTTER_MAJOR_VERSION=$(MUTTER_MAJOR_VERSION) -DMUTTER_MINOR_VERSION=$(MUTTER_MINOR_VERSION) -DMUTTER_MICRO_VERSION=$(MUTTER_MICRO_VERSION) -DMUTTER_PLUGIN_API_VERSION=$(MUTTER_PLUGIN_API_VERSION) -DMUTTER_PLUGIN_DIR=\"@MUTTER_PLUGIN_DIR@\"
|
||||
|
||||
default_la_CFLAGS = -fPIC
|
||||
default_la_SOURCES = default.c
|
||||
|
@ -1,41 +0,0 @@
|
||||
|
||||
Plugins implement effects associated with WM events, such as window map,
|
||||
minimizing, maximizing, unmaximizing, destruction and workspace switching. The
|
||||
plugin API is documented in src/include/compositor-clutter-plugin.h; in
|
||||
addition the simple plugin can be used as a reference implementation.
|
||||
|
||||
The API is intended to be generic, exposing no implementation details of the WM
|
||||
to the plugins; this will facilitate reuse without modification with another WM
|
||||
(there are plans to use the same plugin API with Matchbox 2).
|
||||
|
||||
Multiple plugins can implement the same effect and be loaded at the same time;
|
||||
however, stacking arbitrary effects in this way might not work as expected;
|
||||
this is particularly true of more complex effects, such as those for workspace
|
||||
switching.
|
||||
|
||||
Plugins are installed in ${prefix}/lib/metacity/plugins/clutter; from there the
|
||||
WM will load plugins listed in the clutter_plugins key in the Metacity gconf
|
||||
general preferences group. Each entry in preferences has the format
|
||||
|
||||
'name: optional parameters'
|
||||
|
||||
where 'name' is the name of the library without the .so suffix.
|
||||
|
||||
As noted above, additional parameters can be passed to the plugin via the
|
||||
preference key. In such case, the plugin name is immediately followed by a
|
||||
colon, separating it from the parameters. Two common parameters should be
|
||||
handled by all plugins:
|
||||
|
||||
'debug' indicates that the plugin is run in a debug mode (what exactly that
|
||||
means is left to the plugin to determine).
|
||||
|
||||
'disable' parameter indicates which effects within the plugin should be
|
||||
disabled; the format of the disable parameter is
|
||||
|
||||
'disable: effect1[, effect2];'
|
||||
|
||||
where effect1, etc., matches the effects listed in the
|
||||
compositor-clutter-plugin.h file (currently one of 'map', 'destroy',
|
||||
'maximize', 'unmaximize', 'switch-workspace'). Example 'disable:
|
||||
minimize, maximize;'.
|
||||
|
@ -21,8 +21,8 @@
|
||||
* 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "meta-plugin.h"
|
||||
#include "window.h"
|
||||
#include <meta/meta-plugin.h>
|
||||
#include <meta/window.h>
|
||||
|
||||
#include <libintl.h>
|
||||
#define _(x) dgettext (GETTEXT_PACKAGE, x)
|
||||
|
@ -248,7 +248,6 @@ expand_region_inverse (cairo_region_t *region,
|
||||
MetaRegionBuilder builder;
|
||||
MetaRegionIterator iter;
|
||||
cairo_rectangle_int_t extents;
|
||||
cairo_region_t *chunk;
|
||||
|
||||
int last_x;
|
||||
|
||||
@ -268,16 +267,11 @@ expand_region_inverse (cairo_region_t *region,
|
||||
extents.x, extents.y + extents.height, extents.width, 1,
|
||||
x_amount, y_amount, flip);
|
||||
|
||||
chunk = NULL;
|
||||
|
||||
last_x = extents.x;
|
||||
for (meta_region_iterator_init (&iter, region);
|
||||
!meta_region_iterator_at_end (&iter);
|
||||
meta_region_iterator_next (&iter))
|
||||
{
|
||||
if (chunk == NULL)
|
||||
chunk = cairo_region_create ();
|
||||
|
||||
if (iter.rectangle.x > last_x)
|
||||
add_expanded_rect (&builder,
|
||||
last_x, iter.rectangle.y,
|
||||
|
@ -76,6 +76,8 @@ compute_above_tab_keycode (Display *xdisplay)
|
||||
keyboard = XkbGetKeyboard (xdisplay,
|
||||
XkbGBN_ClientSymbolsMask | XkbGBN_KeyNamesMask | XkbGBN_GeometryMask,
|
||||
XkbUseCoreKbd);
|
||||
if (!keyboard)
|
||||
return best_keycode;
|
||||
|
||||
geometry = keyboard->geom;
|
||||
|
||||
|
@ -146,7 +146,7 @@ keybind (switch_to_workspace_down, handle_switch_to_workspace,
|
||||
*/
|
||||
|
||||
keybind (switch_group, handle_switch, META_TAB_LIST_GROUP,
|
||||
BINDING_REVERSES, NULL,
|
||||
BINDING_REVERSES, "<Alt>Above_Tab",
|
||||
_("Move between windows of an application, using a popup window"))
|
||||
keybind (switch_group_backward, handle_switch, META_TAB_LIST_GROUP,
|
||||
REVERSES_AND_REVERSED, NULL,
|
||||
@ -167,7 +167,7 @@ keybind (switch_panels_backward, handle_switch, META_TAB_LIST_DOCKS,
|
||||
"using a popup window"))
|
||||
|
||||
keybind (cycle_group, handle_cycle, META_TAB_LIST_GROUP,
|
||||
BINDING_REVERSES, "<Alt>Above_Tab",
|
||||
BINDING_REVERSES, "<Alt>F6",
|
||||
_("Move between windows of an application immediately"))
|
||||
keybind (cycle_group_backward, handle_cycle, META_TAB_LIST_GROUP,
|
||||
REVERSES_AND_REVERSED, NULL,
|
@ -51,7 +51,7 @@
|
||||
#include <config.h>
|
||||
#include "bell.h"
|
||||
#include "screen-private.h"
|
||||
#include "prefs.h"
|
||||
#include <meta/prefs.h>
|
||||
#ifdef HAVE_LIBCANBERRA
|
||||
#include <canberra-gtk.h>
|
||||
#endif
|
||||
@ -149,7 +149,7 @@ bell_flash_screen (MetaDisplay *display,
|
||||
#ifdef HAVE_XKB
|
||||
static void
|
||||
bell_flash_fullscreen (MetaDisplay *display,
|
||||
XkbAnyEvent *xkb_ev)
|
||||
XkbAnyEvent *xkb_ev)
|
||||
{
|
||||
XkbBellNotifyEvent *xkb_bell_ev = (XkbBellNotifyEvent *) xkb_ev;
|
||||
MetaScreen *screen;
|
||||
@ -159,7 +159,12 @@ bell_flash_fullscreen (MetaDisplay *display,
|
||||
{
|
||||
screen = meta_display_screen_for_xwindow (display, xkb_bell_ev->window);
|
||||
if (screen)
|
||||
bell_flash_screen (display, screen);
|
||||
{
|
||||
if (display->compositor)
|
||||
meta_compositor_flash_screen (display->compositor, screen);
|
||||
else
|
||||
bell_flash_screen (display, screen);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -167,7 +172,10 @@ bell_flash_fullscreen (MetaDisplay *display,
|
||||
while (screen_list)
|
||||
{
|
||||
screen = (MetaScreen *) screen_list->data;
|
||||
bell_flash_screen (display, screen);
|
||||
if (display->compositor)
|
||||
meta_compositor_flash_screen (display->compositor, screen);
|
||||
else
|
||||
bell_flash_screen (display, screen);
|
||||
screen_list = screen_list->next;
|
||||
}
|
||||
}
|
||||
|
@ -36,7 +36,7 @@
|
||||
#include <X11/XKBlib.h>
|
||||
#endif
|
||||
#include "display-private.h"
|
||||
#include "frame-private.h"
|
||||
#include "frame.h"
|
||||
|
||||
#ifdef HAVE_XKB
|
||||
/**
|
||||
|
@ -25,8 +25,8 @@
|
||||
#define META_BOXES_PRIVATE_H
|
||||
|
||||
#include <glib-object.h>
|
||||
#include "common.h"
|
||||
#include "boxes.h"
|
||||
#include <meta/common.h>
|
||||
#include <meta/boxes.h>
|
||||
|
||||
#define BOX_LEFT(box) ((box).x) /* Leftmost pixel of rect */
|
||||
#define BOX_RIGHT(box) ((box).x + (box).width) /* One pixel past right */
|
||||
|
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include "boxes-private.h"
|
||||
#include "util.h"
|
||||
#include <meta/util.h>
|
||||
#include <X11/Xutil.h> /* Just for the definition of the various gravities */
|
||||
|
||||
/* It would make sense to use GSlice here, but until we clean up the
|
||||
@ -179,6 +179,16 @@ meta_rectangle_area (const MetaRectangle *rect)
|
||||
return rect->width * rect->height;
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_rectangle_intersect:
|
||||
* @src1: a #MetaRectangle
|
||||
* @src2: another #MetaRectangle
|
||||
* @dest: (out caller-allocates): an empty #MetaRectangle, to be filled
|
||||
* with the coordinates of the intersection.
|
||||
*
|
||||
* Returns: TRUE is some intersection exists and is not degenerate, FALSE
|
||||
* otherwise.
|
||||
*/
|
||||
gboolean
|
||||
meta_rectangle_intersect (const MetaRectangle *src1,
|
||||
const MetaRectangle *src2,
|
||||
@ -226,6 +236,13 @@ meta_rectangle_equal (const MetaRectangle *src1,
|
||||
(src1->height == src2->height));
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_rectangle_union:
|
||||
* @rect1: a #MetaRectangle
|
||||
* @rect2: another #MetaRectangle
|
||||
* @dest: (out caller-allocates): an empty #MetaRectangle, to be filled
|
||||
* with the coordinates of the bounding box.
|
||||
*/
|
||||
void
|
||||
meta_rectangle_union (const MetaRectangle *rect1,
|
||||
const MetaRectangle *rect2,
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include "constraints.h"
|
||||
#include "workspace-private.h"
|
||||
#include "place.h"
|
||||
#include "prefs.h"
|
||||
#include <meta/prefs.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
@ -142,6 +142,11 @@ typedef struct
|
||||
GList *usable_screen_region;
|
||||
GList *usable_monitor_region;
|
||||
} ConstraintInfo;
|
||||
|
||||
static gboolean do_screen_and_monitor_relative_constraints (MetaWindow *window,
|
||||
GList *region_spanning_rectangles,
|
||||
ConstraintInfo *info,
|
||||
gboolean check_only);
|
||||
static gboolean constrain_modal_dialog (MetaWindow *window,
|
||||
ConstraintInfo *info,
|
||||
ConstraintPriority priority,
|
||||
@ -776,7 +781,12 @@ constrain_modal_dialog (MetaWindow *window,
|
||||
|
||||
info->current.y = y;
|
||||
info->current.x = x;
|
||||
return TRUE;
|
||||
/* The calculated position above may need adjustment to make sure the
|
||||
* dialog does not end up partially off-screen */
|
||||
return do_screen_and_monitor_relative_constraints (window,
|
||||
info->usable_screen_region,
|
||||
info,
|
||||
check_only);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
@ -25,9 +25,9 @@
|
||||
#ifndef META_CONSTRAINTS_H
|
||||
#define META_CONSTRAINTS_H
|
||||
|
||||
#include "util.h"
|
||||
#include <meta/util.h>
|
||||
#include "window-private.h"
|
||||
#include "frame-private.h"
|
||||
#include "frame.h"
|
||||
|
||||
typedef enum
|
||||
{
|
||||
|
@ -25,10 +25,10 @@
|
||||
|
||||
#include <config.h>
|
||||
#include "core.h"
|
||||
#include "frame-private.h"
|
||||
#include "frame.h"
|
||||
#include "workspace-private.h"
|
||||
#include "prefs.h"
|
||||
#include "errors.h"
|
||||
#include <meta/prefs.h>
|
||||
#include <meta/errors.h>
|
||||
|
||||
/* Looks up the MetaWindow representing the frame of the given X window.
|
||||
* Used as a helper function by a bunch of the functions below.
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
/* Don't include core headers here */
|
||||
#include <gdk/gdkx.h>
|
||||
#include "common.h"
|
||||
#include <meta/common.h>
|
||||
|
||||
typedef enum
|
||||
{
|
@ -25,10 +25,10 @@
|
||||
#define _XOPEN_SOURCE /* for kill() */
|
||||
|
||||
#include <config.h>
|
||||
#include "util.h"
|
||||
#include <meta/util.h>
|
||||
#include "window-private.h"
|
||||
#include "errors.h"
|
||||
#include "workspace.h"
|
||||
#include <meta/errors.h>
|
||||
#include <meta/workspace.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
@ -103,8 +103,8 @@ delete_ping_timeout_func (MetaDisplay *display,
|
||||
|
||||
dialog_pid =
|
||||
meta_show_dialog ("--question",
|
||||
window_content, 0,
|
||||
window->screen->number,
|
||||
window_content, NULL,
|
||||
window->screen->screen_name,
|
||||
_("_Wait"), _("_Force Quit"), window->xwindow,
|
||||
NULL, NULL);
|
||||
|
||||
|
@ -34,11 +34,11 @@
|
||||
#include <glib.h>
|
||||
#include <X11/Xlib.h>
|
||||
#include "eventqueue.h"
|
||||
#include "common.h"
|
||||
#include "boxes.h"
|
||||
#include "display.h"
|
||||
#include <meta/common.h>
|
||||
#include <meta/boxes.h>
|
||||
#include <meta/display.h>
|
||||
#include "keybindings-private.h"
|
||||
#include "prefs.h"
|
||||
#include <meta/prefs.h>
|
||||
|
||||
#ifdef HAVE_STARTUP_NOTIFICATION
|
||||
#include <libsn/sn.h>
|
||||
@ -99,7 +99,7 @@ struct _MetaDisplay
|
||||
* class is constructed.
|
||||
*/
|
||||
#define item(x) Atom atom_##x;
|
||||
#include "atomnames.h"
|
||||
#include <meta/atomnames.h>
|
||||
#undef item
|
||||
|
||||
/* This is the actual window from focus events,
|
||||
|
@ -34,21 +34,21 @@
|
||||
|
||||
#include <config.h>
|
||||
#include "display-private.h"
|
||||
#include "util.h"
|
||||
#include "main.h"
|
||||
#include <meta/util.h>
|
||||
#include <meta/main.h>
|
||||
#include "screen-private.h"
|
||||
#include "window-private.h"
|
||||
#include "window-props.h"
|
||||
#include "group-props.h"
|
||||
#include "frame-private.h"
|
||||
#include "errors.h"
|
||||
#include "frame.h"
|
||||
#include <meta/errors.h>
|
||||
#include "keybindings-private.h"
|
||||
#include "prefs.h"
|
||||
#include <meta/prefs.h>
|
||||
#include "resizepopup.h"
|
||||
#include "xprops.h"
|
||||
#include "workspace-private.h"
|
||||
#include "bell.h"
|
||||
#include "compositor.h"
|
||||
#include <meta/compositor.h>
|
||||
#include <X11/Xatom.h>
|
||||
#include <X11/cursorfont.h>
|
||||
#ifdef HAVE_SOLARIS_XINERAMA
|
||||
@ -417,7 +417,7 @@ meta_display_open (void)
|
||||
/* A list of all atom names, so that we can intern them in one go. */
|
||||
char *atom_names[] = {
|
||||
#define item(x) #x,
|
||||
#include "atomnames.h"
|
||||
#include <meta/atomnames.h>
|
||||
#undef item
|
||||
};
|
||||
Atom atoms[G_N_ELEMENTS(atom_names)];
|
||||
@ -490,7 +490,7 @@ meta_display_open (void)
|
||||
{
|
||||
int i = 0;
|
||||
#define item(x) the_display->atom_##x = atoms[i++];
|
||||
#include "atomnames.h"
|
||||
#include <meta/atomnames.h>
|
||||
#undef item
|
||||
}
|
||||
|
||||
@ -1746,9 +1746,10 @@ event_callback (XEvent *event,
|
||||
* we can get into a confused state. So if a keybinding is
|
||||
* handled (because it's one of our hot-keys, or because we are
|
||||
* in a keyboard-grabbed mode like moving a window, we don't
|
||||
* want to pass the key event to the compositor at all.
|
||||
* want to pass the key event to the compositor or GTK+ at all.
|
||||
*/
|
||||
bypass_compositor = meta_display_process_key_event (display, window, event);
|
||||
if (meta_display_process_key_event (display, window, event))
|
||||
filter_out_event = bypass_compositor = TRUE;
|
||||
break;
|
||||
case ButtonPress:
|
||||
if (display->grab_op == META_GRAB_OP_COMPOSITOR)
|
||||
@ -2523,12 +2524,6 @@ event_callback (XEvent *event,
|
||||
meta_workspace_focus_default_window (screen->active_workspace, NULL, timestamp);
|
||||
}
|
||||
}
|
||||
else if (event->xclient.message_type ==
|
||||
display->atom__MUTTER_RESTART_MESSAGE)
|
||||
{
|
||||
meta_verbose ("Received restart request\n");
|
||||
meta_restart ();
|
||||
}
|
||||
else if (event->xclient.message_type ==
|
||||
display->atom__MUTTER_RELOAD_THEME_MESSAGE)
|
||||
{
|
||||
@ -3499,6 +3494,7 @@ meta_display_begin_grab_op (MetaDisplay *display,
|
||||
int root_x,
|
||||
int root_y)
|
||||
{
|
||||
MetaWindow *grab_window = NULL;
|
||||
Window grab_xwindow;
|
||||
|
||||
meta_topic (META_DEBUG_WINDOW_OPS,
|
||||
@ -3528,14 +3524,25 @@ meta_display_begin_grab_op (MetaDisplay *display,
|
||||
}
|
||||
}
|
||||
|
||||
/* If window is a modal dialog attached to its parent,
|
||||
* grab the parent instead for moving.
|
||||
*/
|
||||
if (meta_prefs_get_attach_modal_dialogs () &&
|
||||
window && window->type == META_WINDOW_MODAL_DIALOG &&
|
||||
meta_grab_op_is_moving (op))
|
||||
grab_window = meta_window_get_transient_for (window);
|
||||
|
||||
if (grab_window == NULL)
|
||||
grab_window = window;
|
||||
|
||||
/* FIXME:
|
||||
* If we have no MetaWindow we do our best
|
||||
* and try to do the grab on the RootWindow.
|
||||
* This will fail if anyone else has any
|
||||
* key grab on the RootWindow.
|
||||
*/
|
||||
if (window)
|
||||
grab_xwindow = window->frame ? window->frame->xwindow : window->xwindow;
|
||||
if (grab_window)
|
||||
grab_xwindow = grab_window->frame ? grab_window->frame->xwindow : grab_window->xwindow;
|
||||
else
|
||||
grab_xwindow = screen->xroot;
|
||||
|
||||
@ -3557,9 +3564,9 @@ meta_display_begin_grab_op (MetaDisplay *display,
|
||||
/* Grab keys for keyboard ops and mouse move/resizes; see #126497 */
|
||||
if (grab_op_is_keyboard (op) || grab_op_is_mouse_only (op))
|
||||
{
|
||||
if (window)
|
||||
if (grab_window)
|
||||
display->grab_have_keyboard =
|
||||
meta_window_grab_all_keys (window, timestamp);
|
||||
meta_window_grab_all_keys (grab_window, timestamp);
|
||||
|
||||
else
|
||||
display->grab_have_keyboard =
|
||||
@ -3576,7 +3583,7 @@ meta_display_begin_grab_op (MetaDisplay *display,
|
||||
}
|
||||
|
||||
display->grab_op = op;
|
||||
display->grab_window = window;
|
||||
display->grab_window = grab_window;
|
||||
display->grab_screen = screen;
|
||||
display->grab_xwindow = grab_xwindow;
|
||||
display->grab_button = button;
|
||||
|
@ -23,7 +23,7 @@
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include "errors.h"
|
||||
#include <meta/errors.h>
|
||||
#include "display-private.h"
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -24,9 +24,9 @@
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include "frame-private.h"
|
||||
#include "frame.h"
|
||||
#include "bell.h"
|
||||
#include "errors.h"
|
||||
#include <meta/errors.h>
|
||||
#include "keybindings-private.h"
|
||||
|
||||
#include <X11/extensions/Xrender.h>
|
||||
@ -282,7 +282,7 @@ meta_frame_get_flags (MetaFrame *frame)
|
||||
if (frame->window->shaded)
|
||||
flags |= META_FRAME_SHADED;
|
||||
|
||||
if (frame->window->on_all_workspaces)
|
||||
if (frame->window->on_all_workspaces_requested)
|
||||
flags |= META_FRAME_STUCK;
|
||||
|
||||
/* FIXME: Should we have some kind of UI for windows that are just vertically
|
||||
|
@ -24,7 +24,6 @@
|
||||
#ifndef META_FRAME_PRIVATE_H
|
||||
#define META_FRAME_PRIVATE_H
|
||||
|
||||
#include "frame.h"
|
||||
#include "window-private.h"
|
||||
|
||||
typedef struct _MetaFrameGeometry MetaFrameGeometry;
|
||||
@ -68,7 +67,8 @@ void meta_window_ensure_frame (MetaWindow *window);
|
||||
void meta_window_destroy_frame (MetaWindow *window);
|
||||
void meta_frame_queue_draw (MetaFrame *frame);
|
||||
|
||||
MetaFrameFlags meta_frame_get_flags (MetaFrame *frame);
|
||||
MetaFrameFlags meta_frame_get_flags (MetaFrame *frame);
|
||||
Window meta_frame_get_xwindow (MetaFrame *frame);
|
||||
|
||||
/* These should ONLY be called from meta_window_move_resize_internal */
|
||||
void meta_frame_calc_geometry (MetaFrame *frame,
|
@ -24,7 +24,7 @@
|
||||
#ifndef META_GROUP_PRIVATE_H
|
||||
#define META_GROUP_PRIVATE_H
|
||||
|
||||
#include "group.h"
|
||||
#include <meta/group.h>
|
||||
|
||||
struct _MetaGroup
|
||||
{
|
||||
|
@ -24,7 +24,7 @@
|
||||
#ifndef META_GROUP_PROPS_H
|
||||
#define META_GROUP_PROPS_H
|
||||
|
||||
#include "group.h"
|
||||
#include <meta/group.h>
|
||||
#include "window-private.h"
|
||||
|
||||
void meta_group_reload_property (MetaGroup *group,
|
||||
|
@ -23,11 +23,11 @@
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include "util.h"
|
||||
#include <meta/util.h>
|
||||
#include "group-private.h"
|
||||
#include "group-props.h"
|
||||
#include "window-private.h"
|
||||
#include "window.h"
|
||||
#include <meta/window.h>
|
||||
|
||||
static MetaGroup*
|
||||
meta_group_new (MetaDisplay *display,
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include <config.h>
|
||||
#include "iconcache.h"
|
||||
#include "ui.h"
|
||||
#include "errors.h"
|
||||
#include <meta/errors.h>
|
||||
|
||||
#include <X11/Xatom.h>
|
||||
|
||||
@ -323,6 +323,40 @@ get_pixmap_geometry (MetaDisplay *display,
|
||||
*d = depth;
|
||||
}
|
||||
|
||||
static void
|
||||
apply_foreground_background (GdkPixbuf *pixbuf)
|
||||
{
|
||||
int w, h;
|
||||
int i, j;
|
||||
guchar *pixels;
|
||||
int stride;
|
||||
|
||||
w = gdk_pixbuf_get_width (pixbuf);
|
||||
h = gdk_pixbuf_get_height (pixbuf);
|
||||
pixels = gdk_pixbuf_get_pixels (pixbuf);
|
||||
stride = gdk_pixbuf_get_rowstride (pixbuf);
|
||||
|
||||
i = 0;
|
||||
while (i < h)
|
||||
{
|
||||
j = 0;
|
||||
while (j < w)
|
||||
{
|
||||
guchar *p = pixels + i * stride + j * 4;
|
||||
if (p[3] == 0)
|
||||
p[0] = p[1] = p[2] = 0xff; /* white background */
|
||||
else
|
||||
p[0] = p[1] = p[2] = 0x00; /* black foreground */
|
||||
|
||||
p[3] = 0xff;
|
||||
|
||||
++j;
|
||||
}
|
||||
|
||||
++i;
|
||||
}
|
||||
}
|
||||
|
||||
static GdkPixbuf*
|
||||
apply_mask (GdkPixbuf *pixbuf,
|
||||
GdkPixbuf *mask)
|
||||
@ -352,16 +386,10 @@ apply_mask (GdkPixbuf *pixbuf,
|
||||
j = 0;
|
||||
while (j < w)
|
||||
{
|
||||
guchar *s = src + i * src_stride + j * 3;
|
||||
guchar *s = src + i * src_stride + j * 4;
|
||||
guchar *d = dest + i * dest_stride + j * 4;
|
||||
|
||||
/* s[0] == s[1] == s[2], they are 255 if the bit was set, 0
|
||||
* otherwise
|
||||
*/
|
||||
if (s[0] == 0)
|
||||
d[3] = 0; /* transparent */
|
||||
else
|
||||
d[3] = 255; /* opaque */
|
||||
d[3] = s[3];
|
||||
|
||||
++j;
|
||||
}
|
||||
@ -385,25 +413,32 @@ try_pixmap_and_mask (MetaDisplay *display,
|
||||
{
|
||||
GdkPixbuf *unscaled = NULL;
|
||||
GdkPixbuf *mask = NULL;
|
||||
int w, h;
|
||||
int w, h, d;
|
||||
|
||||
if (src_pixmap == None)
|
||||
return FALSE;
|
||||
|
||||
meta_error_trap_push (display);
|
||||
|
||||
get_pixmap_geometry (display, src_pixmap, &w, &h, NULL);
|
||||
get_pixmap_geometry (display, src_pixmap, &w, &h, &d);
|
||||
|
||||
unscaled = meta_gdk_pixbuf_get_from_pixmap (src_pixmap,
|
||||
0, 0,
|
||||
w, h);
|
||||
|
||||
/* A depth 1 pixmap has 0 background, and 1 foreground, but
|
||||
* cairo and meta_gdk_pixbuf_get_from_pixmap consider it
|
||||
* to be 0 transparent, 1 opaque */
|
||||
if (d == 1)
|
||||
apply_foreground_background (unscaled);
|
||||
|
||||
if (unscaled && src_mask != None)
|
||||
{
|
||||
get_pixmap_geometry (display, src_mask, &w, &h, NULL);
|
||||
mask = meta_gdk_pixbuf_get_from_pixmap (src_mask,
|
||||
0, 0,
|
||||
w, h);
|
||||
get_pixmap_geometry (display, src_mask, &w, &h, &d);
|
||||
if (d == 1)
|
||||
mask = meta_gdk_pixbuf_get_from_pixmap (src_mask,
|
||||
0, 0,
|
||||
w, h);
|
||||
}
|
||||
|
||||
meta_error_trap_pop (display);
|
||||
|
@ -29,7 +29,7 @@
|
||||
#ifndef META_KEYBINDINGS_PRIVATE_H
|
||||
#define META_KEYBINDINGS_PRIVATE_H
|
||||
|
||||
#include "keybindings.h"
|
||||
#include <meta/keybindings.h>
|
||||
|
||||
void meta_display_init_keys (MetaDisplay *display);
|
||||
void meta_display_shutdown_keys (MetaDisplay *display);
|
||||
|
@ -29,13 +29,13 @@
|
||||
#include <config.h>
|
||||
#include "keybindings-private.h"
|
||||
#include "workspace-private.h"
|
||||
#include "errors.h"
|
||||
#include <meta/errors.h>
|
||||
#include "edge-resistance.h"
|
||||
#include "ui.h"
|
||||
#include "frame-private.h"
|
||||
#include "frame.h"
|
||||
#include "place.h"
|
||||
#include "prefs.h"
|
||||
#include "util.h"
|
||||
#include <meta/prefs.h>
|
||||
#include <meta/util.h>
|
||||
|
||||
#include <X11/keysym.h>
|
||||
#include <string.h>
|
||||
@ -2444,7 +2444,7 @@ static void
|
||||
error_on_command (int command_index,
|
||||
const char *command,
|
||||
const char *message,
|
||||
int screen_number,
|
||||
MetaScreen *screen,
|
||||
guint32 timestamp)
|
||||
{
|
||||
if (command_index < 0)
|
||||
@ -2473,7 +2473,7 @@ error_on_command (int command_index,
|
||||
meta_show_dialog ("--error",
|
||||
text,
|
||||
NULL,
|
||||
screen_number,
|
||||
screen->screen_name,
|
||||
NULL, NULL, 0,
|
||||
NULL, NULL);
|
||||
|
||||
@ -2485,7 +2485,7 @@ error_on_command (int command_index,
|
||||
meta_show_dialog ("--error",
|
||||
message,
|
||||
NULL,
|
||||
screen_number,
|
||||
screen->screen_name,
|
||||
NULL, NULL, 0,
|
||||
NULL, NULL);
|
||||
}
|
||||
@ -2557,7 +2557,7 @@ handle_run_command (MetaDisplay *display,
|
||||
|
||||
s = g_strdup_printf (_("No command %d has been defined.\n"),
|
||||
which + 1);
|
||||
error_on_command (which, NULL, s, screen->number, event->xkey.time);
|
||||
error_on_command (which, NULL, s, screen, event->xkey.time);
|
||||
g_free (s);
|
||||
|
||||
return;
|
||||
@ -2566,7 +2566,7 @@ handle_run_command (MetaDisplay *display,
|
||||
err = NULL;
|
||||
if (!meta_spawn_command_line_async_on_screen (command, screen, &err))
|
||||
{
|
||||
error_on_command (which, command, err->message, screen->number, event->xkey.time);
|
||||
error_on_command (which, command, err->message, screen, event->xkey.time);
|
||||
|
||||
g_error_free (err);
|
||||
}
|
||||
@ -3341,7 +3341,7 @@ handle_toggle_on_all_workspaces (MetaDisplay *display,
|
||||
MetaKeyBinding *binding,
|
||||
gpointer dummy)
|
||||
{
|
||||
if (window->on_all_workspaces)
|
||||
if (window->on_all_workspaces_requested)
|
||||
meta_window_unstick (window);
|
||||
else
|
||||
meta_window_stick (window);
|
||||
@ -3568,7 +3568,7 @@ handle_run_terminal (MetaDisplay *display,
|
||||
"keybinding press\n");
|
||||
|
||||
s = g_strdup_printf (_("No terminal command has been defined.\n"));
|
||||
error_on_command (-1, NULL, s, screen->number, event->xkey.time);
|
||||
error_on_command (-1, NULL, s, screen, event->xkey.time);
|
||||
g_free (s);
|
||||
|
||||
return;
|
||||
@ -3577,7 +3577,7 @@ handle_run_terminal (MetaDisplay *display,
|
||||
err = NULL;
|
||||
if (!meta_spawn_command_line_async_on_screen (command, screen, &err))
|
||||
{
|
||||
error_on_command (-1, command, err->message, screen->number,
|
||||
error_on_command (-1, command, err->message, screen,
|
||||
event->xkey.time);
|
||||
|
||||
g_error_free (err);
|
||||
|
382
src/core/main.c
382
src/core/main.c
@ -45,14 +45,14 @@
|
||||
#define _SVID_SOURCE /* for putenv() and some signal-related functions */
|
||||
|
||||
#include <config.h>
|
||||
#include "main.h"
|
||||
#include "util.h"
|
||||
#include <meta/main.h>
|
||||
#include <meta/util.h>
|
||||
#include "display-private.h"
|
||||
#include "errors.h"
|
||||
#include <meta/errors.h>
|
||||
#include "ui.h"
|
||||
#include "session.h"
|
||||
#include "prefs.h"
|
||||
#include "compositor.h"
|
||||
#include <meta/prefs.h>
|
||||
#include <meta/compositor.h>
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <gdk/gdkx.h>
|
||||
@ -75,7 +75,6 @@
|
||||
|
||||
#ifdef HAVE_INTROSPECTION
|
||||
#include <girepository.h>
|
||||
#include "compositor/meta-plugin-manager.h"
|
||||
#endif
|
||||
|
||||
/**
|
||||
@ -89,12 +88,6 @@ static MetaExitCode meta_exit_code = META_EXIT_SUCCESS;
|
||||
*/
|
||||
static GMainLoop *meta_main_loop = NULL;
|
||||
|
||||
/**
|
||||
* If set, Mutter will spawn an identical copy of itself immediately
|
||||
* before quitting.
|
||||
*/
|
||||
static gboolean meta_restart_after_quit = FALSE;
|
||||
|
||||
static void prefs_changed_callback (MetaPreference pref,
|
||||
gpointer data);
|
||||
|
||||
@ -118,23 +111,6 @@ log_handler (const gchar *log_domain,
|
||||
meta_print_backtrace ();
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints the version notice. This is shown when Mutter is called
|
||||
* with the --version switch.
|
||||
*/
|
||||
static void
|
||||
version (void)
|
||||
{
|
||||
const int latest_year = 2010;
|
||||
|
||||
g_print (_("mutter %s\n"
|
||||
"Copyright (C) 2001-%d Havoc Pennington, Red Hat, Inc., and others\n"
|
||||
"This is free software; see the source for copying conditions.\n"
|
||||
"There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"),
|
||||
VERSION, latest_year);
|
||||
exit (0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints a list of which configure script options were used to
|
||||
* build this copy of Mutter. This is actually always called
|
||||
@ -214,131 +190,72 @@ meta_print_self_identity (void)
|
||||
|
||||
/**
|
||||
* The set of possible options that can be set on Mutter's
|
||||
* command line. This type exists so that meta_parse_options() can
|
||||
* write to an instance of it.
|
||||
* command line.
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
gchar *save_file;
|
||||
gchar *display_name;
|
||||
gchar *client_id;
|
||||
gchar *mutter_plugins;
|
||||
gboolean replace_wm;
|
||||
gboolean disable_sm;
|
||||
gboolean print_version;
|
||||
gboolean sync;
|
||||
gboolean composite;
|
||||
gboolean no_composite;
|
||||
gboolean no_force_fullscreen;
|
||||
gboolean no_tab_popup;
|
||||
gchar *introspect;
|
||||
} MetaArguments;
|
||||
static gchar *opt_save_file;
|
||||
static gchar *opt_display_name;
|
||||
static gchar *opt_client_id;
|
||||
static gboolean opt_replace_wm;
|
||||
static gboolean opt_disable_sm;
|
||||
static gboolean opt_sync;
|
||||
|
||||
#define COMPOSITE_OPTS_FLAGS 0
|
||||
static GOptionEntry meta_options[] = {
|
||||
{
|
||||
"sm-disable", 0, 0, G_OPTION_ARG_NONE,
|
||||
&opt_disable_sm,
|
||||
N_("Disable connection to session manager"),
|
||||
NULL
|
||||
},
|
||||
{
|
||||
"replace", 0, 0, G_OPTION_ARG_NONE,
|
||||
&opt_replace_wm,
|
||||
N_("Replace the running window manager"),
|
||||
NULL
|
||||
},
|
||||
{
|
||||
"sm-client-id", 0, 0, G_OPTION_ARG_STRING,
|
||||
&opt_client_id,
|
||||
N_("Specify session management ID"),
|
||||
"ID"
|
||||
},
|
||||
{
|
||||
"display", 'd', 0, G_OPTION_ARG_STRING,
|
||||
&opt_display_name, N_("X Display to use"),
|
||||
"DISPLAY"
|
||||
},
|
||||
{
|
||||
"sm-save-file", 0, 0, G_OPTION_ARG_FILENAME,
|
||||
&opt_save_file,
|
||||
N_("Initialize session from savefile"),
|
||||
"FILE"
|
||||
},
|
||||
{
|
||||
"sync", 0, 0, G_OPTION_ARG_NONE,
|
||||
&opt_sync,
|
||||
N_("Make X calls synchronous"),
|
||||
NULL
|
||||
},
|
||||
{NULL}
|
||||
};
|
||||
|
||||
/**
|
||||
* Parses argc and argv and returns the
|
||||
* arguments that Mutter understands in meta_args.
|
||||
* meta_get_option_context: (skip)
|
||||
*
|
||||
* The strange call signature has to be written like it is so
|
||||
* that g_option_context_parse() gets a chance to modify argc and
|
||||
* argv.
|
||||
* Returns a #GOptionContext initialized with mutter-related options.
|
||||
* Parse the command-line args with this before calling meta_init().
|
||||
*
|
||||
* \param argc Pointer to the number of arguments Mutter was given
|
||||
* \param argv Pointer to the array of arguments Mutter was given
|
||||
* \param meta_args The result of parsing the arguments.
|
||||
**/
|
||||
static GOptionContext *
|
||||
meta_parse_options (int *argc, char ***argv,
|
||||
MetaArguments *meta_args)
|
||||
* Return value: the #GOptionContext
|
||||
*/
|
||||
GOptionContext *
|
||||
meta_get_option_context (void)
|
||||
{
|
||||
MetaArguments my_args = {NULL, NULL, NULL, NULL,
|
||||
FALSE, FALSE, FALSE, FALSE, FALSE};
|
||||
GOptionEntry options[] = {
|
||||
{
|
||||
"sm-disable", 0, 0, G_OPTION_ARG_NONE,
|
||||
&my_args.disable_sm,
|
||||
N_("Disable connection to session manager"),
|
||||
NULL
|
||||
},
|
||||
{
|
||||
"replace", 0, 0, G_OPTION_ARG_NONE,
|
||||
&my_args.replace_wm,
|
||||
N_("Replace the running window manager with Mutter"),
|
||||
NULL
|
||||
},
|
||||
{
|
||||
"sm-client-id", 0, 0, G_OPTION_ARG_STRING,
|
||||
&my_args.client_id,
|
||||
N_("Specify session management ID"),
|
||||
"ID"
|
||||
},
|
||||
{
|
||||
"display", 'd', 0, G_OPTION_ARG_STRING,
|
||||
&my_args.display_name, N_("X Display to use"),
|
||||
"DISPLAY"
|
||||
},
|
||||
{
|
||||
"sm-save-file", 0, 0, G_OPTION_ARG_FILENAME,
|
||||
&my_args.save_file,
|
||||
N_("Initialize session from savefile"),
|
||||
"FILE"
|
||||
},
|
||||
{
|
||||
"version", 0, 0, G_OPTION_ARG_NONE,
|
||||
&my_args.print_version,
|
||||
N_("Print version"),
|
||||
NULL
|
||||
},
|
||||
{
|
||||
"sync", 0, 0, G_OPTION_ARG_NONE,
|
||||
&my_args.sync,
|
||||
N_("Make X calls synchronous"),
|
||||
NULL
|
||||
},
|
||||
{
|
||||
"no-force-fullscreen", 0, COMPOSITE_OPTS_FLAGS, G_OPTION_ARG_NONE,
|
||||
&my_args.no_force_fullscreen,
|
||||
N_("Don't make fullscreen windows that are maximized and have no decorations"),
|
||||
NULL
|
||||
},
|
||||
{
|
||||
"mutter-plugins", 0, 0, G_OPTION_ARG_STRING,
|
||||
&my_args.mutter_plugins,
|
||||
N_("Comma-separated list of compositor plugins"),
|
||||
"PLUGINS"
|
||||
},
|
||||
{
|
||||
"no-tab-popup", 0, 0, G_OPTION_ARG_NONE,
|
||||
&my_args.no_tab_popup,
|
||||
N_("Whether window popup/frame should be shown when cycling windows."),
|
||||
NULL
|
||||
},
|
||||
#ifdef HAVE_INTROSPECTION
|
||||
{
|
||||
"introspect-dump", 0, 0, G_OPTION_ARG_STRING,
|
||||
&my_args.introspect,
|
||||
N_("Internal argument for GObject introspection"), "INTROSPECT"
|
||||
},
|
||||
#endif
|
||||
{NULL}
|
||||
};
|
||||
GOptionContext *ctx;
|
||||
GError *error = NULL;
|
||||
|
||||
ctx = g_option_context_new (NULL);
|
||||
g_option_context_add_main_entries (ctx, options, "mutter");
|
||||
g_option_context_add_main_entries (ctx, meta_options, GETTEXT_PACKAGE);
|
||||
g_option_context_add_group (ctx, clutter_get_option_group_without_init ());
|
||||
g_option_context_add_group (ctx, cogl_get_option_group ());
|
||||
|
||||
if (!g_option_context_parse (ctx, argc, argv, &error))
|
||||
{
|
||||
g_print ("mutter: %s\n", error->message);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/* Return the parsed options through the meta_args param. */
|
||||
*meta_args = my_args;
|
||||
return ctx;
|
||||
}
|
||||
|
||||
@ -387,12 +304,12 @@ static GSourceFuncs event_funcs = {
|
||||
};
|
||||
|
||||
static void
|
||||
meta_clutter_init (GOptionContext *ctx, int *argc, char ***argv)
|
||||
meta_clutter_init (void)
|
||||
{
|
||||
clutter_x11_set_display (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()));
|
||||
clutter_x11_disable_event_retrieval ();
|
||||
|
||||
if (CLUTTER_INIT_SUCCESS == clutter_init (argc, argv))
|
||||
if (CLUTTER_INIT_SUCCESS == clutter_init (NULL, NULL))
|
||||
{
|
||||
GSource *source = g_source_new (&event_funcs, sizeof (GSource));
|
||||
g_source_attach (source, NULL);
|
||||
@ -431,8 +348,6 @@ meta_finalize (void)
|
||||
if (display)
|
||||
meta_display_close (display,
|
||||
CurrentTime); /* I doubt correct timestamps matter here */
|
||||
|
||||
meta_session_shutdown ();
|
||||
}
|
||||
|
||||
static int sigterm_pipe_fds[2] = { -1, -1 };
|
||||
@ -458,33 +373,18 @@ on_sigterm (void)
|
||||
}
|
||||
|
||||
/**
|
||||
* This is where the story begins. It parses commandline options and
|
||||
* environment variables, sets up the screen, hands control off to
|
||||
* GTK, and cleans up afterwards.
|
||||
* meta_init: (skip)
|
||||
*
|
||||
* \param argc Number of arguments (as usual)
|
||||
* \param argv Array of arguments (as usual)
|
||||
*
|
||||
* \bug It's a bit long. It would be good to split it out into separate
|
||||
* functions.
|
||||
* Initialize mutter. Call this after meta_get_option_context() and
|
||||
* meta_plugin_type_register(), and before meta_run().
|
||||
*/
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
void
|
||||
meta_init (void)
|
||||
{
|
||||
struct sigaction act;
|
||||
sigset_t empty_mask;
|
||||
MetaArguments meta_args;
|
||||
const gchar *log_domains[] = {
|
||||
NULL, G_LOG_DOMAIN, "Gtk", "Gdk", "GLib",
|
||||
"Pango", "GLib-GObject", "GThread"
|
||||
};
|
||||
guint i;
|
||||
GIOChannel *channel;
|
||||
GOptionContext *ctx;
|
||||
|
||||
if (!g_thread_supported ())
|
||||
g_thread_init (NULL);
|
||||
|
||||
if (setlocale (LC_ALL, "") == NULL)
|
||||
meta_warning ("Locale not understood by C library, internationalization will not work\n");
|
||||
|
||||
@ -528,103 +428,61 @@ main (int argc, char **argv)
|
||||
meta_warning ("Could not change to home directory %s.\n",
|
||||
g_get_home_dir ());
|
||||
|
||||
g_type_init ();
|
||||
|
||||
meta_print_self_identity ();
|
||||
|
||||
bindtextdomain (GETTEXT_PACKAGE, MUTTER_LOCALEDIR);
|
||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||
textdomain (GETTEXT_PACKAGE);
|
||||
|
||||
/* Parse command line arguments.*/
|
||||
ctx = meta_parse_options (&argc, &argv, &meta_args);
|
||||
|
||||
/* This must come before the introspect below, so we load all the plugins
|
||||
* in order to get their get_type functions.
|
||||
*/
|
||||
if (meta_args.mutter_plugins)
|
||||
{
|
||||
char **plugins = g_strsplit (meta_args.mutter_plugins, ",", -1);
|
||||
char **plugin;
|
||||
GSList *plugins_list = NULL;
|
||||
|
||||
for (plugin = plugins; *plugin; plugin++)
|
||||
{
|
||||
g_strstrip (*plugin);
|
||||
plugins_list = g_slist_prepend (plugins_list, *plugin);
|
||||
}
|
||||
|
||||
plugins_list = g_slist_reverse (plugins_list);
|
||||
meta_prefs_override_clutter_plugins (plugins_list);
|
||||
|
||||
g_slist_free(plugins_list);
|
||||
g_strfreev (plugins);
|
||||
}
|
||||
|
||||
#ifdef HAVE_INTROSPECTION
|
||||
g_irepository_prepend_search_path (MUTTER_PKGLIBDIR);
|
||||
if (meta_args.introspect)
|
||||
{
|
||||
GError *error = NULL;
|
||||
if (meta_args.mutter_plugins)
|
||||
{
|
||||
/* We need to load all plugins so that we can call their
|
||||
* get_type functions. We do not call
|
||||
* mutter_plugin_manager_initialize because almost nothing else
|
||||
* is initialized at this point, and we don't plan to run any real
|
||||
* plugin code.
|
||||
*/
|
||||
MetaPluginManager *mgr = meta_plugin_manager_get_default ();
|
||||
if (!meta_plugin_manager_load (mgr))
|
||||
g_critical ("failed to load plugins");
|
||||
}
|
||||
if (!g_irepository_dump (meta_args.introspect, &error))
|
||||
{
|
||||
g_printerr ("failed to dump: %s\n", error->message);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
meta_set_syncing (meta_args.sync || (g_getenv ("MUTTER_SYNC") != NULL));
|
||||
meta_set_syncing (opt_sync || (g_getenv ("MUTTER_SYNC") != NULL));
|
||||
|
||||
if (meta_args.print_version)
|
||||
version ();
|
||||
|
||||
meta_select_display (meta_args.display_name);
|
||||
meta_select_display (opt_display_name);
|
||||
|
||||
if (meta_args.replace_wm)
|
||||
if (opt_replace_wm)
|
||||
meta_set_replace_current_wm (TRUE);
|
||||
|
||||
if (meta_args.save_file && meta_args.client_id)
|
||||
if (opt_save_file && opt_client_id)
|
||||
meta_fatal ("Can't specify both SM save file and SM client id\n");
|
||||
|
||||
meta_main_loop = g_main_loop_new (NULL, FALSE);
|
||||
|
||||
meta_ui_init (&argc, &argv);
|
||||
meta_ui_init ();
|
||||
|
||||
/*
|
||||
* Clutter can only be initialized after the UI.
|
||||
*/
|
||||
meta_clutter_init (ctx, &argc, &argv);
|
||||
meta_clutter_init ();
|
||||
}
|
||||
|
||||
g_option_context_free (ctx);
|
||||
/**
|
||||
* meta_run: (skip)
|
||||
*
|
||||
* Runs mutter. Call this after completing your own initialization.
|
||||
*
|
||||
* Return value: mutter's exit status
|
||||
*/
|
||||
int
|
||||
meta_run (void)
|
||||
{
|
||||
const gchar *log_domains[] = {
|
||||
NULL, G_LOG_DOMAIN, "Gtk", "Gdk", "GLib",
|
||||
"Pango", "GLib-GObject", "GThread"
|
||||
};
|
||||
guint i;
|
||||
|
||||
/* Load prefs */
|
||||
meta_prefs_init ();
|
||||
meta_prefs_add_listener (prefs_changed_callback, NULL);
|
||||
|
||||
|
||||
#if 1
|
||||
|
||||
for (i=0; i<G_N_ELEMENTS(log_domains); i++)
|
||||
g_log_set_handler (log_domains[i],
|
||||
G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL | G_LOG_FLAG_RECURSION,
|
||||
log_handler, NULL);
|
||||
|
||||
#endif
|
||||
|
||||
if (g_getenv ("MUTTER_G_FATAL_WARNINGS") != NULL)
|
||||
g_log_set_always_fatal (G_LOG_LEVEL_MASK);
|
||||
|
||||
@ -668,38 +526,30 @@ main (int argc, char **argv)
|
||||
* or we might try to manage a window before we have the session
|
||||
* info
|
||||
*/
|
||||
if (!meta_args.disable_sm)
|
||||
if (!opt_disable_sm)
|
||||
{
|
||||
if (meta_args.client_id == NULL)
|
||||
if (opt_client_id == NULL)
|
||||
{
|
||||
const gchar *desktop_autostart_id;
|
||||
|
||||
desktop_autostart_id = g_getenv ("DESKTOP_AUTOSTART_ID");
|
||||
|
||||
if (desktop_autostart_id != NULL)
|
||||
meta_args.client_id = g_strdup (desktop_autostart_id);
|
||||
opt_client_id = g_strdup (desktop_autostart_id);
|
||||
}
|
||||
|
||||
/* Unset DESKTOP_AUTOSTART_ID in order to avoid child processes to
|
||||
* use the same client id. */
|
||||
g_unsetenv ("DESKTOP_AUTOSTART_ID");
|
||||
|
||||
meta_session_init (meta_args.client_id, meta_args.save_file);
|
||||
meta_session_init (opt_client_id, opt_save_file);
|
||||
}
|
||||
/* Free memory possibly allocated by the argument parsing which are
|
||||
* no longer needed.
|
||||
*/
|
||||
g_free (meta_args.save_file);
|
||||
g_free (meta_args.display_name);
|
||||
g_free (meta_args.client_id);
|
||||
|
||||
if (meta_args.no_force_fullscreen)
|
||||
meta_prefs_set_force_fullscreen (FALSE);
|
||||
|
||||
if (meta_args.no_tab_popup)
|
||||
{
|
||||
meta_prefs_override_no_tab_popup (TRUE);
|
||||
}
|
||||
g_free (opt_save_file);
|
||||
g_free (opt_display_name);
|
||||
g_free (opt_client_id);
|
||||
|
||||
if (!meta_display_open ())
|
||||
meta_exit (META_EXIT_ERROR);
|
||||
@ -708,36 +558,15 @@ main (int argc, char **argv)
|
||||
|
||||
meta_finalize ();
|
||||
|
||||
if (meta_restart_after_quit)
|
||||
{
|
||||
GError *err;
|
||||
|
||||
err = NULL;
|
||||
if (!g_spawn_async (NULL,
|
||||
argv,
|
||||
NULL,
|
||||
G_SPAWN_SEARCH_PATH,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
&err))
|
||||
{
|
||||
meta_fatal (_("Failed to restart: %s\n"),
|
||||
err->message);
|
||||
g_error_free (err); /* not reached anyhow */
|
||||
meta_exit_code = META_EXIT_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
return meta_exit_code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Stops Mutter. This tells the event loop to stop processing; it is rather
|
||||
* dangerous to use this rather than meta_restart() because this will leave
|
||||
* the user with no window manager. We generally do this only if, for example,
|
||||
* the session manager asks us to; we assume the session manager knows what
|
||||
* it's talking about.
|
||||
* Stops Mutter. This tells the event loop to stop processing; it is
|
||||
* rather dangerous to use this because this will leave the user with
|
||||
* no window manager. We generally do this only if, for example, the
|
||||
* session manager asks us to; we assume the session manager knows
|
||||
* what it's talking about.
|
||||
*
|
||||
* \param code The success or failure code to return to the calling process.
|
||||
*/
|
||||
@ -750,19 +579,6 @@ meta_quit (MetaExitCode code)
|
||||
g_main_loop_quit (meta_main_loop);
|
||||
}
|
||||
|
||||
/**
|
||||
* Restarts Mutter. In practice, this tells the event loop to stop
|
||||
* processing, having first set the meta_restart_after_quit flag which
|
||||
* tells Mutter to spawn an identical copy of itself before quitting.
|
||||
* This happens on receipt of a _MUTTER_RESTART_MESSAGE client event.
|
||||
*/
|
||||
void
|
||||
meta_restart (void)
|
||||
{
|
||||
meta_restart_after_quit = TRUE;
|
||||
meta_quit (META_EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Called on pref changes. (One of several functions of its kind and purpose.)
|
||||
*
|
||||
|
99
src/core/mutter.c
Normal file
99
src/core/mutter.c
Normal file
@ -0,0 +1,99 @@
|
||||
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
||||
|
||||
/*
|
||||
* Copyright 2011 Red Hat, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
* 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <meta/main.h>
|
||||
#include <meta/util.h>
|
||||
#ifdef HAVE_INTROSPECTION
|
||||
#include "meta-plugin-manager.h"
|
||||
#endif
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
static gboolean
|
||||
print_version (const gchar *option_name,
|
||||
const gchar *value,
|
||||
gpointer data,
|
||||
GError **error)
|
||||
{
|
||||
const int latest_year = 2011;
|
||||
|
||||
g_print (_("mutter %s\n"
|
||||
"Copyright (C) 2001-%d Havoc Pennington, Red Hat, Inc., and others\n"
|
||||
"This is free software; see the source for copying conditions.\n"
|
||||
"There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"),
|
||||
VERSION, latest_year);
|
||||
exit (0);
|
||||
}
|
||||
|
||||
static gchar *mutter_plugins;
|
||||
|
||||
GOptionEntry mutter_options[] = {
|
||||
{
|
||||
"version", 0, G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_CALLBACK,
|
||||
print_version,
|
||||
N_("Print version"),
|
||||
NULL
|
||||
},
|
||||
{
|
||||
"mutter-plugins", 0, 0, G_OPTION_ARG_STRING,
|
||||
&mutter_plugins,
|
||||
N_("Comma-separated list of compositor plugins"),
|
||||
"PLUGINS"
|
||||
},
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
GOptionContext *ctx;
|
||||
GError *error = NULL;
|
||||
|
||||
ctx = meta_get_option_context ();
|
||||
g_option_context_add_main_entries (ctx, mutter_options, GETTEXT_PACKAGE);
|
||||
if (!g_option_context_parse (ctx, &argc, &argv, &error))
|
||||
{
|
||||
g_printerr ("mutter: %s\n", error->message);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
if (mutter_plugins)
|
||||
{
|
||||
MetaPluginManager *mgr;
|
||||
char **plugins = g_strsplit (mutter_plugins, ",", -1);
|
||||
char **plugin;
|
||||
|
||||
mgr = meta_plugin_manager_get_default ();
|
||||
for (plugin = plugins; *plugin; plugin++)
|
||||
{
|
||||
g_strstrip (*plugin);
|
||||
meta_plugin_manager_load (mgr, *plugin);
|
||||
}
|
||||
g_strfreev (plugins);
|
||||
}
|
||||
|
||||
meta_init ();
|
||||
return meta_run ();
|
||||
}
|
@ -28,8 +28,8 @@
|
||||
|
||||
#include "boxes-private.h"
|
||||
#include "place.h"
|
||||
#include "workspace.h"
|
||||
#include "prefs.h"
|
||||
#include <meta/workspace.h>
|
||||
#include <meta/prefs.h>
|
||||
#include <gdk/gdk.h>
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -25,7 +25,7 @@
|
||||
#define META_PLACE_H
|
||||
|
||||
#include "window-private.h"
|
||||
#include "frame-private.h"
|
||||
#include "frame.h"
|
||||
|
||||
void meta_window_place (MetaWindow *window,
|
||||
MetaFrameGeometry *fgeom,
|
||||
|
114
src/core/prefs.c
114
src/core/prefs.c
@ -24,10 +24,10 @@
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include "prefs.h"
|
||||
#include <meta/prefs.h>
|
||||
#include "ui.h"
|
||||
#include "util.h"
|
||||
#include "compositor/meta-plugin-manager.h"
|
||||
#include <meta/util.h>
|
||||
#include "meta-plugin-manager.h"
|
||||
#ifdef HAVE_GCONF
|
||||
#include <gconf/gconf-client.h>
|
||||
#endif
|
||||
@ -66,9 +66,8 @@
|
||||
#define KEY_WORKSPACE_NAME_DIRECTORY "/apps/metacity/workspace_names"
|
||||
#define KEY_WORKSPACE_NAME_PREFIX "/apps/metacity/workspace_names/name_"
|
||||
|
||||
#define KEY_CLUTTER_PLUGINS "/apps/mutter/general/clutter_plugins"
|
||||
|
||||
#define KEY_LIVE_HIDDEN_WINDOWS "/apps/mutter/general/live_hidden_windows"
|
||||
#define KEY_WORKSPACES_ONLY_ON_PRIMARY "/apps/mutter/general/workspaces_only_on_primary"
|
||||
|
||||
#define KEY_NO_TAB_POPUP "/apps/metacity/general/no_tab_popup"
|
||||
|
||||
@ -115,10 +114,8 @@ static char *terminal_command = NULL;
|
||||
|
||||
static char *workspace_names[MAX_REASONABLE_WORKSPACES] = { NULL, };
|
||||
|
||||
static gboolean clutter_plugins_overridden = FALSE;
|
||||
static GSList *clutter_plugins = NULL;
|
||||
|
||||
static gboolean live_hidden_windows = FALSE;
|
||||
static gboolean workspaces_only_on_primary = FALSE;
|
||||
|
||||
static gboolean no_tab_popup = FALSE;
|
||||
|
||||
@ -426,6 +423,11 @@ static MetaBoolPreference preferences_bool[] =
|
||||
&live_hidden_windows,
|
||||
FALSE,
|
||||
},
|
||||
{ "/apps/mutter/general/workspaces_only_on_primary",
|
||||
META_PREF_WORKSPACES_ONLY_ON_PRIMARY,
|
||||
&workspaces_only_on_primary,
|
||||
FALSE,
|
||||
},
|
||||
{ "/apps/metacity/general/no_tab_popup",
|
||||
META_PREF_NO_TAB_POPUP,
|
||||
&no_tab_popup,
|
||||
@ -1051,7 +1053,6 @@ meta_prefs_init (void)
|
||||
#ifdef HAVE_GCONF
|
||||
GError *err = NULL;
|
||||
gchar **gconf_dir_cursor;
|
||||
MetaPluginManager *plugin_manager;
|
||||
|
||||
if (default_client != NULL)
|
||||
return;
|
||||
@ -1070,19 +1071,6 @@ meta_prefs_init (void)
|
||||
cleanup_error (&err);
|
||||
}
|
||||
|
||||
/* The plugin list is special and needs to be handled first */
|
||||
|
||||
if (!clutter_plugins_overridden)
|
||||
clutter_plugins = gconf_client_get_list (default_client, KEY_CLUTTER_PLUGINS,
|
||||
GCONF_VALUE_STRING, &err);
|
||||
|
||||
cleanup_error (&err);
|
||||
|
||||
/* We now initialize plugins so that they can override any preference locations */
|
||||
|
||||
plugin_manager = meta_plugin_manager_get_default ();
|
||||
meta_plugin_manager_load (plugin_manager);
|
||||
|
||||
/* Pick up initial values. */
|
||||
|
||||
handle_preference_init_enum ();
|
||||
@ -1396,23 +1384,6 @@ change_notify (GConfClient *client,
|
||||
{
|
||||
queue_changed (META_PREF_KEYBINDINGS);
|
||||
}
|
||||
else if (g_str_equal (key, KEY_CLUTTER_PLUGINS) && !clutter_plugins_overridden)
|
||||
{
|
||||
GError *err = NULL;
|
||||
GSList *l;
|
||||
|
||||
l = gconf_client_get_list (default_client, KEY_CLUTTER_PLUGINS,
|
||||
GCONF_VALUE_STRING, &err);
|
||||
|
||||
if (!l)
|
||||
{
|
||||
cleanup_error (&err);
|
||||
goto out;
|
||||
}
|
||||
|
||||
clutter_plugins = l;
|
||||
queue_changed (META_PREF_CLUTTER_PLUGINS);
|
||||
}
|
||||
else
|
||||
{
|
||||
meta_topic (META_DEBUG_PREFS, "Key %s doesn't mean anything to Mutter\n",
|
||||
@ -2006,12 +1977,12 @@ meta_preference_to_string (MetaPreference pref)
|
||||
case META_PREF_FORCE_FULLSCREEN:
|
||||
return "FORCE_FULLSCREEN";
|
||||
|
||||
case META_PREF_CLUTTER_PLUGINS:
|
||||
return "CLUTTER_PLUGINS";
|
||||
|
||||
case META_PREF_LIVE_HIDDEN_WINDOWS:
|
||||
return "LIVE_HIDDEN_WINDOWS";
|
||||
|
||||
case META_PREF_WORKSPACES_ONLY_ON_PRIMARY:
|
||||
return "WORKSPACES_ONLY_ON_PRIMARY";
|
||||
|
||||
case META_PREF_NO_TAB_POPUP:
|
||||
return "NO_TAB_POPUP";
|
||||
}
|
||||
@ -3000,52 +2971,6 @@ meta_prefs_get_force_fullscreen (void)
|
||||
return force_fullscreen;
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_prefs_get_clutter_plugins:
|
||||
*
|
||||
* Returns: (transfer none) (element-type utf8): Plugin names to load
|
||||
*/
|
||||
GSList *
|
||||
meta_prefs_get_clutter_plugins (void)
|
||||
{
|
||||
return clutter_plugins;
|
||||
}
|
||||
|
||||
void
|
||||
meta_prefs_set_clutter_plugins (GSList *list)
|
||||
{
|
||||
#ifdef HAVE_GCONF
|
||||
GError *err = NULL;
|
||||
|
||||
gconf_client_set_list (default_client,
|
||||
KEY_CLUTTER_PLUGINS,
|
||||
GCONF_VALUE_STRING,
|
||||
list,
|
||||
&err);
|
||||
|
||||
if (err)
|
||||
{
|
||||
meta_warning (_("Error setting clutter plugin list: %s\n"),
|
||||
err->message);
|
||||
g_error_free (err);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
meta_prefs_override_clutter_plugins (GSList *list)
|
||||
{
|
||||
GSList *l;
|
||||
|
||||
clutter_plugins_overridden = TRUE;
|
||||
clutter_plugins = NULL;
|
||||
|
||||
for (l = list; l; l = l->next)
|
||||
clutter_plugins = g_slist_prepend (clutter_plugins, g_strdup(l->data));
|
||||
|
||||
clutter_plugins = g_slist_reverse (clutter_plugins);
|
||||
}
|
||||
|
||||
gboolean
|
||||
meta_prefs_get_live_hidden_windows (void)
|
||||
{
|
||||
@ -3078,6 +3003,13 @@ meta_prefs_set_live_hidden_windows (gboolean whether)
|
||||
#endif
|
||||
}
|
||||
|
||||
gboolean
|
||||
meta_prefs_get_workspaces_only_on_primary (void)
|
||||
{
|
||||
return workspaces_only_on_primary;
|
||||
}
|
||||
|
||||
|
||||
gboolean
|
||||
meta_prefs_get_no_tab_popup (void)
|
||||
{
|
||||
@ -3106,12 +3038,6 @@ meta_prefs_set_no_tab_popup (gboolean whether)
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
meta_prefs_override_no_tab_popup (gboolean whether)
|
||||
{
|
||||
no_tab_popup = whether;
|
||||
}
|
||||
|
||||
#ifndef HAVE_GCONF
|
||||
static void
|
||||
init_button_layout(void)
|
||||
|
@ -34,7 +34,7 @@
|
||||
#define META_SCREEN_PRIVATE_H
|
||||
|
||||
#include "display-private.h"
|
||||
#include "screen.h"
|
||||
#include <meta/screen.h>
|
||||
#include <X11/Xutil.h>
|
||||
#include "stack-tracker.h"
|
||||
#include "ui.h"
|
||||
@ -99,6 +99,7 @@ struct _MetaScreen
|
||||
guint32 wm_sn_timestamp;
|
||||
|
||||
MetaMonitorInfo *monitor_infos;
|
||||
int primary_monitor_index;
|
||||
int n_monitor_infos;
|
||||
|
||||
/* Cache the current monitor */
|
||||
@ -141,6 +142,7 @@ struct _MetaScreenClass
|
||||
|
||||
void (*restacked) (MetaScreen *);
|
||||
void (*workareas_changed) (MetaScreen *);
|
||||
void (*monitors_changed) (MetaScreen *);
|
||||
};
|
||||
|
||||
MetaScreen* meta_screen_new (MetaDisplay *display,
|
||||
|
@ -28,16 +28,17 @@
|
||||
|
||||
#include <config.h>
|
||||
#include "screen-private.h"
|
||||
#include "util.h"
|
||||
#include "errors.h"
|
||||
#include <meta/main.h>
|
||||
#include <meta/util.h>
|
||||
#include <meta/errors.h>
|
||||
#include "window-private.h"
|
||||
#include "frame-private.h"
|
||||
#include "prefs.h"
|
||||
#include "frame.h"
|
||||
#include <meta/prefs.h>
|
||||
#include "workspace-private.h"
|
||||
#include "keybindings-private.h"
|
||||
#include "stack.h"
|
||||
#include "xprops.h"
|
||||
#include "compositor.h"
|
||||
#include <meta/compositor.h>
|
||||
#include "mutter-marshal.h"
|
||||
#include "mutter-enum-types.h"
|
||||
|
||||
@ -84,8 +85,11 @@ enum
|
||||
WORKSPACE_ADDED,
|
||||
WORKSPACE_REMOVED,
|
||||
WORKSPACE_SWITCHED,
|
||||
WINDOW_ENTERED_MONITOR,
|
||||
WINDOW_LEFT_MONITOR,
|
||||
STARTUP_SEQUENCE_CHANGED,
|
||||
WORKAREAS_CHANGED,
|
||||
MONITORS_CHANGED,
|
||||
|
||||
LAST_SIGNAL
|
||||
};
|
||||
@ -200,6 +204,28 @@ meta_screen_class_init (MetaScreenClass *klass)
|
||||
G_TYPE_INT,
|
||||
MUTTER_TYPE_MOTION_DIRECTION);
|
||||
|
||||
screen_signals[WINDOW_ENTERED_MONITOR] =
|
||||
g_signal_new ("window-entered-monitor",
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
0,
|
||||
NULL, NULL,
|
||||
_mutter_marshal_VOID__INT_OBJECT,
|
||||
G_TYPE_NONE, 2,
|
||||
G_TYPE_INT,
|
||||
META_TYPE_WINDOW);
|
||||
|
||||
screen_signals[WINDOW_LEFT_MONITOR] =
|
||||
g_signal_new ("window-left-monitor",
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
0,
|
||||
NULL, NULL,
|
||||
_mutter_marshal_VOID__INT_OBJECT,
|
||||
G_TYPE_NONE, 2,
|
||||
G_TYPE_INT,
|
||||
META_TYPE_WINDOW);
|
||||
|
||||
screen_signals[STARTUP_SEQUENCE_CHANGED] =
|
||||
g_signal_new ("startup-sequence-changed",
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
@ -227,6 +253,15 @@ meta_screen_class_init (MetaScreenClass *klass)
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
screen_signals[MONITORS_CHANGED] =
|
||||
g_signal_new ("monitors-changed",
|
||||
G_TYPE_FROM_CLASS (object_class),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (MetaScreenClass, monitors_changed),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_N_WORKSPACES,
|
||||
pspec);
|
||||
@ -277,7 +312,7 @@ set_supported_hint (MetaScreen *screen)
|
||||
Atom atoms[] = {
|
||||
#define EWMH_ATOMS_ONLY
|
||||
#define item(x) screen->display->atom_##x,
|
||||
#include "atomnames.h"
|
||||
#include <meta/atomnames.h>
|
||||
#undef item
|
||||
#undef EWMH_ATOMS_ONLY
|
||||
};
|
||||
@ -314,6 +349,43 @@ set_wm_icon_size_hint (MetaScreen *screen)
|
||||
#undef N_VALS
|
||||
}
|
||||
|
||||
/* The list of monitors reported by the windowing system might include
|
||||
* mirrored monitors with identical bounds. Since mirrored monitors
|
||||
* shouldn't be treated as separate monitors for most purposes, we
|
||||
* filter them out here. (We ignore the possibility of partially
|
||||
* overlapping monitors because they are rare and it's hard to come
|
||||
* up with any sensible interpretation.)
|
||||
*/
|
||||
static void
|
||||
filter_mirrored_monitors (MetaScreen *screen)
|
||||
{
|
||||
int i, j;
|
||||
|
||||
/* Currently always true and simplifies things */
|
||||
g_assert (screen->primary_monitor_index == 0);
|
||||
|
||||
for (i = 1; i < screen->n_monitor_infos; i++)
|
||||
{
|
||||
/* In case we've filtered previous monitors */
|
||||
screen->monitor_infos[i].number = i;
|
||||
|
||||
for (j = 0; j < i; j++)
|
||||
{
|
||||
if (meta_rectangle_equal (&screen->monitor_infos[i].rect,
|
||||
&screen->monitor_infos[j].rect))
|
||||
{
|
||||
memmove (&screen->monitor_infos[i],
|
||||
&screen->monitor_infos[i + 1],
|
||||
(screen->n_monitor_infos - i - 1) * sizeof (MetaMonitorInfo));
|
||||
screen->n_monitor_infos--;
|
||||
i--;
|
||||
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
reload_monitor_infos (MetaScreen *screen)
|
||||
{
|
||||
@ -342,6 +414,18 @@ reload_monitor_infos (MetaScreen *screen)
|
||||
screen->n_monitor_infos = 0;
|
||||
screen->last_monitor_index = 0;
|
||||
|
||||
/* Xinerama doesn't have a concept of primary monitor, however XRandR
|
||||
* does. However, the XRandR xinerama compat code always sorts the
|
||||
* primary output first, so we rely on that here. We could use the
|
||||
* native XRandR calls instead of xinerama, but that would be
|
||||
* slightly problematic for _NET_WM_FULLSCREEN_MONITORS support, as
|
||||
* that is defined in terms of xinerama monitor indexes.
|
||||
* So, since we don't need anything in xrandr except the primary
|
||||
* we can keep using xinerama and use the first monitor as the
|
||||
* primary.
|
||||
*/
|
||||
screen->primary_monitor_index = 0;
|
||||
|
||||
screen->display->monitor_cache_invalidated = TRUE;
|
||||
|
||||
if (g_getenv ("MUTTER_DEBUG_XINERAMA"))
|
||||
@ -491,6 +575,8 @@ reload_monitor_infos (MetaScreen *screen)
|
||||
screen->monitor_infos[0].rect = screen->rect;
|
||||
}
|
||||
|
||||
filter_mirrored_monitors (screen);
|
||||
|
||||
g_assert (screen->n_monitor_infos > 0);
|
||||
g_assert (screen->monitor_infos != NULL);
|
||||
}
|
||||
@ -2130,6 +2216,22 @@ meta_screen_get_n_monitors (MetaScreen *screen)
|
||||
return screen->n_monitor_infos;
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_screen_get_primary_monitor:
|
||||
* @screen: a #MetaScreen
|
||||
*
|
||||
* Gets the index of the primary monitor on this @screen.
|
||||
*
|
||||
* Return value: a monitor index
|
||||
*/
|
||||
int
|
||||
meta_screen_get_primary_monitor (MetaScreen *screen)
|
||||
{
|
||||
g_return_val_if_fail (META_IS_SCREEN (screen), 0);
|
||||
|
||||
return screen->primary_monitor_index;
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_screen_get_monitor_geometry:
|
||||
* @screen: a #MetaScreen
|
||||
@ -2778,10 +2880,27 @@ void
|
||||
meta_screen_resize (MetaScreen *screen,
|
||||
int width,
|
||||
int height)
|
||||
{
|
||||
{
|
||||
GSList *windows, *tmp;
|
||||
|
||||
screen->rect.width = width;
|
||||
screen->rect.height = height;
|
||||
|
||||
/* Clear monitor for all windows on this screen, as it will become
|
||||
* invalid. */
|
||||
windows = meta_display_list_windows (screen->display,
|
||||
META_LIST_INCLUDE_OVERRIDE_REDIRECT);
|
||||
for (tmp = windows; tmp != NULL; tmp = tmp->next)
|
||||
{
|
||||
MetaWindow *window = tmp->data;
|
||||
|
||||
if (window->screen == screen)
|
||||
{
|
||||
g_signal_emit_by_name (screen, "window-left-monitor", window->monitor->number, window);
|
||||
window->monitor = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
reload_monitor_infos (screen);
|
||||
set_desktop_geometry_hint (screen);
|
||||
|
||||
@ -2791,6 +2910,21 @@ meta_screen_resize (MetaScreen *screen,
|
||||
|
||||
/* Queue a resize on all the windows */
|
||||
meta_screen_foreach_window (screen, meta_screen_resize_func, 0);
|
||||
|
||||
/* Fix up monitor for all windows on this screen */
|
||||
windows = meta_display_list_windows (screen->display,
|
||||
META_LIST_INCLUDE_OVERRIDE_REDIRECT);
|
||||
for (tmp = windows; tmp != NULL; tmp = tmp->next)
|
||||
{
|
||||
MetaWindow *window = tmp->data;
|
||||
|
||||
if (window->screen == screen)
|
||||
meta_window_update_monitor (window);
|
||||
}
|
||||
|
||||
g_slist_free (windows);
|
||||
|
||||
g_signal_emit (screen, screen_signals[MONITORS_CHANGED], 0, index);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -39,12 +39,6 @@ meta_session_init (const char *client_id,
|
||||
meta_topic (META_DEBUG_SM, "Compiled without session management support\n");
|
||||
}
|
||||
|
||||
void
|
||||
meta_session_shutdown (void)
|
||||
{
|
||||
/* nothing */
|
||||
}
|
||||
|
||||
const MetaWindowSessionInfo*
|
||||
meta_window_lookup_saved_state (MetaWindow *window)
|
||||
{
|
||||
@ -69,10 +63,10 @@ meta_window_release_saved_state (const MetaWindowSessionInfo *info)
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include "main.h"
|
||||
#include "util.h"
|
||||
#include <meta/main.h>
|
||||
#include <meta/util.h>
|
||||
#include "display-private.h"
|
||||
#include "workspace.h"
|
||||
#include <meta/workspace.h>
|
||||
|
||||
static void ice_io_error_handler (IceConn connection);
|
||||
|
||||
@ -307,7 +301,12 @@ meta_session_init (const char *previous_client_id,
|
||||
SmProp prop1, prop2, prop3, prop4, prop5, prop6, *props[6];
|
||||
SmPropValue prop1val, prop2val, prop3val, prop4val, prop5val, prop6val;
|
||||
char pid[32];
|
||||
char hint = SmRestartImmediately;
|
||||
/* Historically, this was SmRestartImmediately, which made sense
|
||||
* for a stateless window manager, but we don't really control
|
||||
* what embedders do, and it's all around better if gnome-session
|
||||
* handles this.
|
||||
*/
|
||||
char hint = SmRestartIfRunning;
|
||||
char priority = 20; /* low to run before other apps */
|
||||
|
||||
prop1.name = SmProgram;
|
||||
@ -371,31 +370,6 @@ meta_session_init (const char *previous_client_id,
|
||||
g_free (saved_client_id);
|
||||
}
|
||||
|
||||
void
|
||||
meta_session_shutdown (void)
|
||||
{
|
||||
/* Change our restart mode to IfRunning */
|
||||
|
||||
SmProp prop1;
|
||||
SmPropValue prop1val;
|
||||
SmProp *props[1];
|
||||
char hint = SmRestartIfRunning;
|
||||
|
||||
if (session_connection == NULL)
|
||||
return;
|
||||
|
||||
prop1.name = SmRestartStyleHint;
|
||||
prop1.type = SmCARD8;
|
||||
prop1.num_vals = 1;
|
||||
prop1.vals = &prop1val;
|
||||
prop1val.value = &hint;
|
||||
prop1val.length = 1;
|
||||
|
||||
props[0] = &prop1;
|
||||
|
||||
SmcSetProperties (session_connection, 1, props);
|
||||
}
|
||||
|
||||
static void
|
||||
disconnect (void)
|
||||
{
|
||||
@ -544,9 +518,16 @@ save_yourself_callback (SmcConn smc_conn,
|
||||
static void
|
||||
die_callback (SmcConn smc_conn, SmPointer client_data)
|
||||
{
|
||||
meta_topic (META_DEBUG_SM, "Exiting at request of session manager\n");
|
||||
meta_topic (META_DEBUG_SM, "Disconnecting from session manager");
|
||||
disconnect ();
|
||||
meta_quit (META_EXIT_SUCCESS);
|
||||
/* We don't actually exit here - we will simply go away with the X
|
||||
* server on logout, when we lose the X connection and libx11 kills
|
||||
* us. It looks like *crap* on logout if the user sees their
|
||||
* windows lose the decorations, etc.
|
||||
*
|
||||
* Anything that wants us to go away outside of session management
|
||||
* can use kill().
|
||||
*/
|
||||
}
|
||||
|
||||
static void
|
||||
@ -952,7 +933,7 @@ save_state (void)
|
||||
g_free (title);
|
||||
|
||||
/* Sticky */
|
||||
if (window->on_all_workspaces)
|
||||
if (window->on_all_workspaces_requested)
|
||||
fputs (" <sticky/>\n", outfile);
|
||||
|
||||
/* Minimized */
|
||||
@ -1823,7 +1804,7 @@ warn_about_lame_clients_and_finish_interact (gboolean shutdown)
|
||||
"and will have to be restarted manually next time "
|
||||
"you log in."),
|
||||
"240",
|
||||
meta_screen_get_screen_number (meta_get_display()->active_screen),
|
||||
meta_get_display()->active_screen->screen_name,
|
||||
NULL, NULL,
|
||||
None,
|
||||
columns,
|
||||
|
@ -23,12 +23,12 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "frame-private.h"
|
||||
#include "frame.h"
|
||||
#include "screen-private.h"
|
||||
#include "stack-tracker.h"
|
||||
#include "util.h"
|
||||
#include <meta/util.h>
|
||||
|
||||
#include "compositor.h"
|
||||
#include <meta/compositor.h>
|
||||
|
||||
/* The complexity here comes from resolving two competing factors:
|
||||
*
|
||||
|
@ -36,7 +36,7 @@
|
||||
#ifndef META_STACK_TRACKER_H
|
||||
#define META_STACK_TRACKER_H
|
||||
|
||||
#include "screen.h"
|
||||
#include <meta/screen.h>
|
||||
|
||||
typedef struct _MetaStackTracker MetaStackTracker;
|
||||
|
||||
|
@ -29,11 +29,11 @@
|
||||
#include <config.h>
|
||||
#include "stack.h"
|
||||
#include "window-private.h"
|
||||
#include "errors.h"
|
||||
#include "frame-private.h"
|
||||
#include "group.h"
|
||||
#include "prefs.h"
|
||||
#include "workspace.h"
|
||||
#include <meta/errors.h>
|
||||
#include "frame.h"
|
||||
#include <meta/group.h>
|
||||
#include <meta/prefs.h>
|
||||
#include <meta/workspace.h>
|
||||
|
||||
#include <X11/Xatom.h>
|
||||
|
||||
|
@ -26,9 +26,9 @@
|
||||
#define _POSIX_C_SOURCE 200112L /* for fdopen() */
|
||||
|
||||
#include <config.h>
|
||||
#include "common.h"
|
||||
#include "util.h"
|
||||
#include "main.h"
|
||||
#include <meta/common.h>
|
||||
#include <meta/util.h>
|
||||
#include <meta/main.h>
|
||||
|
||||
#include <clutter/clutter.h> /* For clutter_threads_add_repaint_func() */
|
||||
|
||||
@ -588,7 +588,7 @@ GPid
|
||||
meta_show_dialog (const char *type,
|
||||
const char *message,
|
||||
const char *timeout,
|
||||
const gint screen_number,
|
||||
const char *display,
|
||||
const char *ok_text,
|
||||
const char *cancel_text,
|
||||
const int transient_for,
|
||||
@ -596,7 +596,6 @@ meta_show_dialog (const char *type,
|
||||
GSList *entries)
|
||||
{
|
||||
GError *error = NULL;
|
||||
char *screen_number_text = g_strdup_printf("%d", screen_number);
|
||||
GSList *tmp;
|
||||
int i=0;
|
||||
GPid child_pid;
|
||||
@ -607,8 +606,8 @@ meta_show_dialog (const char *type,
|
||||
|
||||
argvl[i++] = "zenity";
|
||||
argvl[i++] = type;
|
||||
argvl[i++] = "--screen";
|
||||
argvl[i++] = screen_number_text;
|
||||
argvl[i++] = "--display";
|
||||
argvl[i++] = display;
|
||||
argvl[i++] = "--class";
|
||||
argvl[i++] = "mutter-dialog";
|
||||
argvl[i++] = "--title";
|
||||
@ -673,7 +672,6 @@ meta_show_dialog (const char *type,
|
||||
unsetenv ("WINDOWID");
|
||||
|
||||
g_free (argvl);
|
||||
g_free (screen_number_text);
|
||||
|
||||
if (error)
|
||||
{
|
||||
|
@ -35,10 +35,10 @@
|
||||
#define META_WINDOW_PRIVATE_H
|
||||
|
||||
#include <config.h>
|
||||
#include "compositor.h"
|
||||
#include "window.h"
|
||||
#include <meta/compositor.h>
|
||||
#include <meta/window.h>
|
||||
#include "screen-private.h"
|
||||
#include "util.h"
|
||||
#include <meta/util.h>
|
||||
#include "stack.h"
|
||||
#include "iconcache.h"
|
||||
#include <X11/Xutil.h>
|
||||
@ -67,6 +67,7 @@ struct _MetaWindow
|
||||
|
||||
MetaDisplay *display;
|
||||
MetaScreen *screen;
|
||||
const MetaMonitorInfo *monitor;
|
||||
MetaWorkspace *workspace;
|
||||
Window xwindow;
|
||||
/* may be NULL! not all windows get decorated */
|
||||
@ -160,6 +161,11 @@ struct _MetaWindow
|
||||
*/
|
||||
guint on_all_workspaces : 1;
|
||||
|
||||
/* This is true if the client requested sticky, and implies on_all_workspaces == TRUE,
|
||||
* however on_all_workspaces can be set TRUE for other internal reasons too, such as
|
||||
* being override_redirect or being on the non-primary monitor. */
|
||||
guint on_all_workspaces_requested : 1;
|
||||
|
||||
/* Minimize is the state controlled by the minimize button */
|
||||
guint minimized : 1;
|
||||
guint tab_unminimized : 1;
|
||||
@ -247,11 +253,9 @@ struct _MetaWindow
|
||||
/* EWHH demands attention flag */
|
||||
guint wm_state_demands_attention : 1;
|
||||
|
||||
/* this flag tracks receipt of focus_in focus_out and
|
||||
* determines whether we draw the focus
|
||||
*/
|
||||
/* this flag tracks receipt of focus_in focus_out */
|
||||
guint has_focus : 1;
|
||||
|
||||
|
||||
/* Have we placed this window? */
|
||||
guint placed : 1;
|
||||
|
||||
@ -383,6 +387,9 @@ struct _MetaWindow
|
||||
MetaGroup *group;
|
||||
|
||||
GObject *compositor_private;
|
||||
|
||||
/* Focused window that is (directly or indirectly) attached to this one */
|
||||
MetaWindow *attached_focus_window;
|
||||
};
|
||||
|
||||
struct _MetaWindowClass
|
||||
@ -625,5 +632,10 @@ void meta_window_update_icon_now (MetaWindow *window);
|
||||
|
||||
void meta_window_update_role (MetaWindow *window);
|
||||
void meta_window_update_net_wm_type (MetaWindow *window);
|
||||
void meta_window_update_monitor (MetaWindow *window);
|
||||
void meta_window_update_on_all_workspaces (MetaWindow *window);
|
||||
|
||||
void meta_window_propagate_focus_appearance (MetaWindow *window,
|
||||
gboolean focused);
|
||||
|
||||
#endif
|
||||
|
@ -40,10 +40,10 @@
|
||||
|
||||
#include <config.h>
|
||||
#include "window-props.h"
|
||||
#include "errors.h"
|
||||
#include <meta/errors.h>
|
||||
#include "xprops.h"
|
||||
#include "frame-private.h"
|
||||
#include "group.h"
|
||||
#include "frame.h"
|
||||
#include <meta/group.h>
|
||||
#include <X11/Xatom.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
@ -684,7 +684,7 @@ reload_net_wm_state (MetaWindow *window,
|
||||
else if (value->v.atom_list.atoms[i] == window->display->atom__NET_WM_STATE_DEMANDS_ATTENTION)
|
||||
window->wm_state_demands_attention = TRUE;
|
||||
else if (value->v.atom_list.atoms[i] == window->display->atom__NET_WM_STATE_STICKY)
|
||||
window->on_all_workspaces = TRUE;
|
||||
window->on_all_workspaces_requested = TRUE;
|
||||
|
||||
++i;
|
||||
}
|
||||
@ -693,6 +693,7 @@ reload_net_wm_state (MetaWindow *window,
|
||||
window->desc);
|
||||
|
||||
meta_window_recalc_window_type (window);
|
||||
meta_window_recalc_features (window);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -1465,6 +1466,9 @@ reload_transient_for (MetaWindow *window,
|
||||
MetaPropValue *value,
|
||||
gboolean initial)
|
||||
{
|
||||
if (window->has_focus && window->xtransient_for != None)
|
||||
meta_window_propagate_focus_appearance (window, FALSE);
|
||||
|
||||
window->xtransient_for = None;
|
||||
|
||||
if (value->type != META_PROP_VALUE_INVALID)
|
||||
@ -1508,6 +1512,9 @@ reload_transient_for (MetaWindow *window,
|
||||
|
||||
if (!window->constructing && !window->override_redirect)
|
||||
meta_window_queue (window, META_QUEUE_MOVE_RESIZE);
|
||||
|
||||
if (window->has_focus && window->xtransient_for != None)
|
||||
meta_window_propagate_focus_appearance (window, TRUE);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user