summarylogtreecommitdiffstats
path: root/0001_Remove_scale_atom_access_control.patch
blob: 446f6d7c4c453d1152ad958124653a8351c4327a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
diff --color --unified --recursive --text a/hw/xwayland/xwayland-screen.c b/hw/xwayland/xwayland-screen.c
--- a/hw/xwayland/xwayland-screen.c	2022-10-31 16:33:34.953299366 +0800
+++ b/hw/xwayland/xwayland-screen.c	2022-10-31 16:34:06.123298615 +0800
@@ -177,24 +177,6 @@
 }
 
 static void
-xwl_screen_validate_property_access(CallbackListPtr *pcbl,
-                                    void *userdata,
-                                    void *calldata)
-{
-    XacePropertyAccessRec *rec = calldata;
-    struct xwl_screen *xwl_screen = userdata;
-    ATOM name = (*rec->ppProp)->propertyName;
-
-    if (name == xwl_screen->global_output_scale_prop &&
-        rec->client->index != xwl_screen->wm_client_id) {
-        LogMessageVerb(X_WARNING, 0,
-                       "Client %x tried to illegaly set %s on the root window.\n",
-                       rec->client->index, NameForAtom(name));
-        rec->status = BadAccess;
-    }
-}
-
-static void
 xwl_property_callback(CallbackListPtr *pcbl, void *closure,
                       void *calldata)
 {
@@ -1084,8 +1066,6 @@
     AddCallback(&PropertyStateCallback, xwl_property_callback, pScreen);
     AddCallback(&RootWindowFinalizeCallback, xwl_root_window_finalized_callback, pScreen);
 
-    XaceRegisterCallback(XACE_PROPERTY_ACCESS, xwl_screen_validate_property_access, xwl_screen);
-
     xwl_screen_setup_custom_vector(xwl_screen);
 
     xwl_screen_roundtrip(xwl_screen);