Jasper St. Pierre
852589897e
Move send_icccm_message to window-x11
2014-03-20 16:22:15 -04:00
Jasper St. Pierre
46b4d6c0f0
Move request_take_focus to window-x11
...
This will let us kill off send_icccm_message
2014-03-20 16:06:24 -04:00
Jasper St. Pierre
ab2224686a
events: Clean up trailing whitespace
2014-03-20 15:54:16 -04:00
Jasper St. Pierre
24b08d1a36
Move event handling to a new file
...
display.c is getting a bit crowded. Move most of the handling
out to another file, events.c.
The long-term goal is to have generic event handling here, with
backend-specific handling for the types of windows and such.
2014-03-20 15:46:32 -04:00
Jasper St. Pierre
0808adefaf
Move focus to be a vfunc
2014-03-20 15:20:15 -04:00
Jasper St. Pierre
14f424cd02
Move ping to be a vfunc
2014-03-20 15:20:15 -04:00
Jasper St. Pierre
9debd2fb0d
Move delete / kill to be a vfunc
2014-03-20 15:07:44 -04:00
Rui Matos
76dc0ca681
wayland: Exempt CLICKING grab ops when syncing wayland input focus
...
If we have a CLICKING grab op we still need to send events to xwayland
so that we get them back for gtk+ to process thus we can't steer
wayland input focus away from it.
https://bugzilla.gnome.org/show_bug.cgi?id=726123
2014-03-20 17:08:53 +01:00
Rui Matos
1b29113150
wayland: Set/unset wayland focus on mutter grab/ungrab operations
...
This ensures that we send the proper leave and enter events to wayland
clients.
Particularly, this solves a bug in SSD xwayland windows where clicking
and dragging on the title bar to move the window only works on the odd
turn (unless the pointer moves away from the title bar between
tries). This happens because xwayland gets a button press but doesn't
see the release so when it gets the next button press it discards it
because its pointer button tracking logic says that the button is
already pressed. Sending the proper wayland pointer leave event fixes
it since wayland clients must forget about button state at that point.
https://bugzilla.gnome.org/show_bug.cgi?id=726123
2014-03-20 17:08:53 +01:00
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 f940292cfe5a80290a5dae8a62e05fbcbab32a7f.
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