Jasper St. Pierre
15c59f9919
keybindings: Split out check for filter_keybinding
...
This is a small code cleanup for clarity.
2014-03-20 11:03:54 -04:00
Jasper St. Pierre
a53e094fcd
window: Move move_resize_internal logic to protocol-specific directories
2014-03-20 11:02:50 -04:00
Jasper St. Pierre
a377a1a110
window: Move client-type-specific managing / unmanaging to a vfunc
2014-03-20 10:51:32 -04:00
Jasper St. Pierre
74a1e00e30
window: MetaWindow is now abstract
2014-03-20 10:50:27 -04:00
Jasper St. Pierre
1c41f71eef
window: Add a type for Wayland windows
2014-03-20 10:50:27 -04:00
Jasper St. Pierre
63350c52cc
window: Remove code for static gravity resizes
...
It was never turned on for all the years it's been there.
2014-03-20 10:50:27 -04:00
Jasper St. Pierre
a1427c7130
Revert "Move MetaGroup to be X11-specific"
...
This reverts commit f940292cfe
.
Turns out MetaGroup was public API and was used by gnome-shell.
Ugh.
2014-03-19 09:12:48 -04:00
Jasper St. Pierre
5fa5ace5e6
Move session to x11/
...
XSMP code is X11-specific, of course.
2014-03-18 22:04:36 -04:00
Jasper St. Pierre
044c06bff3
Don't include wayland/ by default either
2014-03-18 22:04:36 -04:00
Jasper St. Pierre
a3ccc4fd1c
Remove x11/ directory from default include path
2014-03-18 22:04:36 -04:00
Jasper St. Pierre
0a20f7458c
window: Remove support for _NET_WM_ICON_NAME
...
We don't seem to use it anywhere.
2014-03-18 22:04:36 -04:00
Jasper St. Pierre
9c94f8ae47
Move testasyncgetprop.c to x11/
2014-03-18 22:04:27 -04:00
Jasper St. Pierre
f940292cfe
Move MetaGroup to be X11-specific
2014-03-18 21:23:36 -04:00
Jasper St. Pierre
48a36356dd
window: Make window->desc a bit clearer
...
And remove the hack for the "broken GNU libc". It works fine on
my system here.
2014-03-18 21:23:34 -04:00
Jasper St. Pierre
f05983be42
window: Move type_atom to window-x11
2014-03-18 21:15:49 -04:00
Jasper St. Pierre
dfcefd3315
Remove meta_core_increment_event_serial
...
It's unused.
2014-03-18 21:12:37 -04:00
Jasper St. Pierre
3fe755e684
display: Fix a typo
2014-03-18 21:12:37 -04:00
Jasper St. Pierre
43a409dec4
window: Don't sync window geometry when we haven't shown it yet
2014-03-18 18:55:32 -04:00
Jasper St. Pierre
8b2b65246a
Assume the compositor always exists
...
At one point, it was supported to run mutter without a compositor,
but we don't allow that any longer. A lot of code already assumes
display->compositor exists and doesn't check for a NULL pointer,
so just kill the rest of the checks.
2014-03-18 18:25:32 -04:00
Jasper St. Pierre
da48b18188
window: Fix build
...
A bad rebase on top of some other GObject cleanups I had made
this go sour.
2014-03-18 16:45:53 -04:00
Jasper St. Pierre
a5f1790828
window: Rename wm_hints_urgent to urgent
...
The flag and setter is now decoupled from the WM_HINTS state.
2014-03-18 15:44:11 -04:00
Jasper St. Pierre
6efcf2526d
window: Move urgency to a setter
2014-03-18 15:44:11 -04:00
Jasper St. Pierre
d6a27195d3
Move more fields to MetaWindowX11
2014-03-18 15:44:11 -04:00
Jasper St. Pierre
8f151842fb
Start moving X11 implementation to its own subdirectory
...
This is specifically about managing X11 windows, not necessarily
running as an X11 compositor. By that I mean that this code is
still used for XWayland windows, and event handling is still and
modesetting / monitor management is still in core/.
This is also a fairly conservative move. We don't move anything
like screen.c or bell.c in here, even though those are really
only for X11 clients.
2014-03-18 15:44:11 -04:00
Jasper St. Pierre
6f7023bc6b
Start splitting the X11-specific stuff of MetaWindow out into a subclass
...
This is fairly simple and basic for now, with just skip_taskbar /
skip_pager, but eventually a lot of "WM policy" like this, including
move-resize, will be in subclasses for each individual surface.
2014-03-18 15:44:11 -04:00
Jasper St. Pierre
63b158e4da
window: Split out recalc of skip_taskbar / skip_pager
...
This will be our first attempt for the MetaWindowX11Private
2014-03-18 15:44:11 -04:00
Jasper St. Pierre
3de58189c0
window: Remove an unused bit
2014-03-18 13:18:52 -04:00
Jasper St. Pierre
5270c469a3
window: Remove meta_window_set_gravity as "public" API
2014-03-18 11:24:24 -04:00
Jasper St. Pierre
7504f16e59
Replace wm_state_modal usage with META_WINDOW_TYPE_DIALOG
2014-03-18 11:24:24 -04:00
Jasper St. Pierre
cdb7947dd1
window: Remove meta_window_is_modal
...
It relies on EWMH concepts. Wayland simply has a MODAL_DIALOG type.
2014-03-18 11:24:24 -04:00
Jasper St. Pierre
cdfc6f5b53
window: Remove vfunc slots for signals
...
These aren't used currently, and we're going to be adding
more vfuncs.
2014-03-18 11:24:24 -04:00
Jasper St. Pierre
fcb2ab41b2
window: Remove another bogus comment
...
It's not referring to anything!
2014-03-18 11:24:16 -04:00
Jasper St. Pierre
f5bd7c5f50
window: Remove bogus comment
...
These fields haven't been around for quite some time.
2014-03-18 11:24:16 -04:00
Jasper St. Pierre
cb549154aa
window: Move meta_window_configure_notify to window-x11
2014-03-18 11:24:16 -04:00
Jasper St. Pierre
ada9610e30
Start hacking out use of xtransient_for
...
It won't work under Wayland.
2014-03-18 10:25:54 -04:00
Jasper St. Pierre
f11bf44525
stack: Flatten and simplify the default focus window logic
2014-03-18 10:25:54 -04:00
Jasper St. Pierre
1f15c85c00
window: Make window_is_terminal private
2014-03-18 10:25:54 -04:00
Jasper St. Pierre
8b4c5459c0
window: Remove transient_for_as_xid
...
It's unused, and it exposes an X11-specific property to API.
2014-03-18 10:07:07 -04:00
Jasper St. Pierre
535685742a
window: Export is_title_onscreen and shove_title_onscreen as well
...
This was fixed in the master version of the commit, but I forgot to
squash it on the Wayland branch.
2014-03-17 11:18:26 -04:00
Jasper St. Pierre
3c6dd5bf6d
window: Export a bunch of state flags as accessor methods
...
This is necessary to reimplement window menus in gnome-shell.
2014-03-15 09:49:56 -04:00
Jasper St. Pierre
0f85986340
Add a META_MAXIMIZE_BOTH
...
Which has the value of META_MAXIMIZE_VERTICAL |
META_MAXIMIZE_HORIZONTAL.
This is an obvious code cleanup.
2014-03-15 09:49:56 -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
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
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
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
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