@@ -1326,7 +1326,8 @@ impl Connection {
1326
1326
/// Stop listening to a special event
1327
1327
#[ deprecated( note = "use `unregister_for_special_event` instead" ) ]
1328
1328
#[ cfg( any( feature = "xinput" , feature = "present" ) ) ]
1329
- pub fn unregister_for_special_xge ( & self , se : SpecialEvent ) {
1329
+ #[ allow( deprecated) ]
1330
+ pub fn unregister_for_special_xge ( & self , se : SpecialEventId ) {
1330
1331
unsafe {
1331
1332
xcb_unregister_for_special_event ( self . c , se. raw ) ;
1332
1333
}
@@ -1335,7 +1336,8 @@ impl Connection {
1335
1336
/// Returns the next event from a special queue, blocking until one arrives
1336
1337
#[ deprecated( note = "Broken API: use `wait_for_special_event2` instead" ) ]
1337
1338
#[ cfg( any( feature = "xinput" , feature = "present" ) ) ]
1338
- pub fn wait_for_special_event ( & self , se : SpecialEvent ) -> Result < Event > {
1339
+ #[ allow( deprecated) ]
1340
+ pub fn wait_for_special_event ( & self , se : SpecialEventId ) -> Result < Event > {
1339
1341
unsafe {
1340
1342
let ev = xcb_wait_for_special_event ( self . c , se. raw ) ;
1341
1343
self . handle_wait_for_event ( ev)
@@ -1345,7 +1347,8 @@ impl Connection {
1345
1347
/// Returns the next event from a special queue
1346
1348
#[ deprecated( note = "Broken API: use `poll_for_special_event2` instead" ) ]
1347
1349
#[ cfg( any( feature = "xinput" , feature = "present" ) ) ]
1348
- pub fn poll_for_special_event ( & self , se : SpecialEvent ) -> Result < Option < Event > > {
1350
+ #[ allow( deprecated) ]
1351
+ pub fn poll_for_special_event ( & self , se : SpecialEventId ) -> Result < Option < Event > > {
1349
1352
unsafe {
1350
1353
let ev = xcb_poll_for_special_event ( self . c , se. raw ) ;
1351
1354
self . handle_poll_for_event ( ev)
0 commit comments