Jasper St. Pierre
27bec68c67
wayland: Add support for show_window_menu
2014-03-14 10:22:13 -04:00
Jasper St. Pierre
8ce4407a9f
x11: Add support for a new _GTK_SHOW_WINDOW_MENU request
...
To show the window menu from a client-side decoration.
2014-03-14 10:22:13 -04:00
Jasper St. Pierre
cebb6b2779
window: Remove unused and unnecessary parameters from meta_window_window_menu
2014-03-14 10:22:11 -04:00
Jasper St. Pierre
d7771a30ee
Convert window menus to a compositor implementation
2014-03-13 19:36:33 -04:00
Jasper St. Pierre
10fb5e527f
window: Export a bunch of state flags as accessor methods
...
This is necessary to reimplement window menus in gnome-shell.
2014-03-13 19:33:28 -04:00
Jasper St. Pierre
7116786ad3
Add a META_MAXIMIZE_BOTH
...
Which has the value of META_MAXIMIZE_VERTICAL |
META_MAXIMIZE_HORIZONTAL.
This is an obvious code cleanup.
2014-03-13 18:33:17 -04:00
Jasper St. Pierre
d294fa45d1
wayland: Add support for set_surface_type
2014-03-13 17:14:28 -04:00
Jasper St. Pierre
e278d65f05
constraints
2014-03-13 17:14:28 -04:00
Jasper St. Pierre
42408c1c38
hack to get things working for demo
...
have to figure out something better to put here
2014-03-13 17:14:28 -04:00
Jasper St. Pierre
9ac086a613
Replace mutter-launch with logind integration
...
This uses David Herrmann's new logind sessions interface to retrieve
fds for input devices, rather than using a custom setuid helper to do
the management. This vastly simplifies the interface.
This requires systemd v210, at least.
https://bugzilla.gnome.org/show_bug.cgi?id=724604
2014-03-13 17:14:28 -04:00
Jasper St. Pierre
de06346766
meta-weston-launch: Pause Clutter during VT switches
2014-03-13 17:14:28 -04:00
Jasper St. Pierre
c22d6ad69c
meta-weston-launch: Remove the "VT-switched lock"
...
We'll replace it by pausing the Clutter master clock.
2014-03-13 17:14:28 -04:00
Jasper St. Pierre
64be6cf4f0
weston-launch: Pass the DRM device to Cogl
...
Open the device from weston-launch, and pass it to Cogl/Clutter.
This is a preliminary cleanup for our login1 integration.
2014-03-13 17:14:28 -04:00
Jasper St. Pierre
a9d8107c3d
window: Replace meta_window_type_changed with meta_window_set_type
...
Which does the equality checking for us.
2014-03-13 17:14:28 -04:00
Jasper St. Pierre
a5d2c51392
window: Move recalc_type to window-x11.c
...
It's only used by the X11 codepath.
2014-03-13 17:14:28 -04:00
Jasper St. Pierre
d1ea17e6a4
meta-weston-launch: Adapt to Clutter's new evdev open callback
2014-03-13 12:47:11 -04:00
Jasper St. Pierre
b37ad66e9d
xdg-shell: Update for new state change mechanism
...
We're still not properly going through the request system. This
will require a dense investigation of the code, but it will happen
soon...
2014-03-12 23:42:55 -04:00
Matthias Clasen
c1f15348a5
Revert "weston-launch: Pass the DRM device to Cogl"
...
This reverts commit 857561baed
.
This broke the build, and was pushed prematurely.
2014-03-12 14:48:46 -04:00
Jasper St. Pierre
857561baed
weston-launch: Pass the DRM device to Cogl
...
Open the device from weston-launch, and pass it to Cogl/Clutter.
This is a preliminary cleanup for our login1 integration.
2014-03-11 18:01:21 -04:00
Jasper St. Pierre
a44cc9ef47
wayland: Fix build
2014-03-11 18:01:17 -04:00
Jasper St. Pierre
d47b7ba038
Add meta_activate_session
...
This will be used on startup to switch to the newly activated session.
2014-03-11 17:25:40 -04:00
Jasper St. Pierre
f21312e2fd
meta-weston-launch: Redraw and update the cursor when switching back
2014-03-11 17:25:40 -04:00
Jasper St. Pierre
394af33607
weston-launch: Allow activating our own VT by passing a negative value
...
This will be used to implement activate_session.
2014-03-11 17:25:40 -04:00
Jasper St. Pierre
7314cdac94
weston-launch: Always use sd_session_get_vt
2014-03-11 17:25:40 -04:00
Jasper St. Pierre
81025e37ea
weston-launch: Stat the path before opening it
2014-03-11 17:25:39 -04:00
Jasper St. Pierre
1bb9f1e333
weston-launch: Remove unused prototypes
2014-03-11 17:25:39 -04:00
Jasper St. Pierre
b11c75c1c9
weston-launch: Rearrange code slightly
...
We need to initialize the main loops before our callback is called, so
this makes it make a slight bit of more sense.
2014-03-11 17:25:39 -04:00
Jasper St. Pierre
757b626aee
wayland: Add a few comments, rename some strings
2014-03-11 17:25:02 -04:00
Jasper St. Pierre
fb3df5243f
main: Add a --display-server option
...
This is an explicit option to launch mutter as a display server,
rather than relying on weston-launch.
2014-03-11 16:33:42 -04:00
Jasper St. Pierre
e34792d9f0
wayland: Remove needless indirection
2014-03-11 16:00:43 -04:00
Jasper St. Pierre
f397c32192
wayland: Make set_selection private
...
It's unused outside of us.
2014-03-11 15:42:37 -04:00
Jasper St. Pierre
f79314d7b5
wayland: Fix destroying data sources
...
The resource is not embedded in the source, it's separate. We need
to get the user data here to not crash.
2014-03-11 15:30:17 -04:00
Jasper St. Pierre
55c61259d8
wayland: Use g_slice_new0
...
And fix a leak.
2014-03-11 15:30:17 -04:00
Jasper St. Pierre
5298cf0a3a
wayland: Pull in a fix for a FIXME from Weston
2014-03-11 15:30:17 -04:00
Jasper St. Pierre
f1dc1a0cbc
wayland: Fix drag grabs
...
We need to have the seat here. This makes weston-dnd not crash when
clicking on an item.
2014-03-11 15:30:16 -04:00
Owen W. Taylor
2cf80bc647
Fix identification of CSD windows when checking whether to force fullscreen
...
We try to exempt CSD windows from being forced fullscreen if they are
undecorated and the size of the screen; however, we also catch almost
all windows that *do* need to be forced fullscreen in this check, since
they also have decorations turned off.
Identify actual CSD windows by checking whether _GTK_FRAME_EXTENTS is set -
GTK+ will always set this on CSD windows even if they have no invisible
borders or shadows at the current time.
We explicitly turn off the legacy-fullscreen check for native wayland windows
so we don't start legacy-fullscreening them if the new
meta_window_is_client_decorated() is later made more accurate.
https://bugzilla.gnome.org/show_bug.cgi?id=723029
2014-03-11 13:02:19 -04:00
Owen W. Taylor
40c15f6e2a
Fix meta_window_titlebar_is_onscreen() for titlebar-less windows
...
Make the code correspond to the comment - the titlebar can't be
offscreen if there's no titlebar.
https://bugzilla.gnome.org/show_bug.cgi?id=723580
2014-03-11 13:02:19 -04:00
Jasper St. Pierre
a8849621c9
window: Always save the user_rect when resizing Wayland windows
...
The user_rect represents the unconstrainted window size, and lots
of code in mutter assumes it can resize to the user_rect at any
time. If we wait for an attach to ACK and save the user rect, we'll
see lots of flickering as code is resizing to the old user_rect
at any time.
2014-03-11 12:29:11 -04:00
Jasper St. Pierre
49c0be11d6
display: Rework event spewing
...
Make it a compile-time flag rather than a run-time flag, because
practically any time you're going to be debugging event spewing,
you're going to have to recompile anyway. Remove the WITH_VERBOSE_MODE
checks, too.
2014-03-11 10:24:13 -04:00
Jasper St. Pierre
9df8e831be
xwayland: Make sure to clear an existing surface if we have one
...
This fixes an assert fail when redecorating an X11 client.
2014-03-11 10:24:13 -04:00
Jasper St. Pierre
84c6b2a3fa
wayland: Remove an extra reset
...
We already reset the double-buffered state when we commit it, so this
is just superfluous.
2014-03-11 10:24:13 -04:00
Jasper St. Pierre
06cd669ccb
wayland: Fix bad copy-paste error in unset_fullscreen
...
This was causing memory corruption and a bad crasher with simple-egl.
2014-03-10 16:45:05 -04:00
Jasper St. Pierre
81eb7d9537
Add META_GRAB_OP_WAYLAND_CLIENT
...
Which is used for Wayland popup grabs.
The issue here is that we don't want the code that raises or focuses
windows based on mouse ops to run while a client has a grab.
We still keep the "old" grab infrastructure in place for now, but
ideally we'd replace it eventually with a better grab-op infrastructure.
2014-03-10 15:11:03 -04:00
Jasper St. Pierre
dd8d8e436d
wayland: Remove special code for modal grabs
...
Since we never pass any Clutter events to Wayland, it's not needed.
2014-03-10 15:10:44 -04:00
Jasper St. Pierre
d6b6b363ad
seat: Add support for smooth scrolling
2014-03-10 11:36:36 -04:00
Jasper St. Pierre
254e2e993c
seat: Redo scroll handling
...
To make way for smooth scrolling
2014-03-10 11:36:36 -04:00
Jasper St. Pierre
c595a9c29f
seat: Reduce indentation
2014-03-10 11:36:36 -04:00
Rui Matos
dfc7f7222b
wayland-keyboard: Remove unused modifier indexes
...
This was copied from weston where they're used for compositor
keybindings. Mutter has its own keybindings code which doesn't need
this.
https://bugzilla.gnome.org/show_bug.cgi?id=722847
2014-03-07 15:00:04 +01:00
Rui Matos
ef278eb547
meta-cursor-tracker: Initialize our position from MetaWaylandPointer's
...
Clutter's input device initial position defaults to (-1, -1) on most
backends but for the evdev backend we changed it to be inside the
stage to prevent the pointer from wandering outside the stage until it
first enters, after which our constraining callback won't let it go
out.
This makes us be in sync with the real position from the start.
2014-03-07 14:54:51 +01:00
Rui Matos
38e26e5cc3
keybindings: Plug a GSettings instance leak
2014-03-06 19:22:39 +01:00