@@ -1326,7 +1326,8 @@ impl Connection {
13261326 /// Stop listening to a special event
13271327 #[ deprecated( note = "use `unregister_for_special_event` instead" ) ]
13281328 #[ 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 ) {
13301331 unsafe {
13311332 xcb_unregister_for_special_event ( self . c , se. raw ) ;
13321333 }
@@ -1335,7 +1336,8 @@ impl Connection {
13351336 /// Returns the next event from a special queue, blocking until one arrives
13361337 #[ deprecated( note = "Broken API: use `wait_for_special_event2` instead" ) ]
13371338 #[ 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 > {
13391341 unsafe {
13401342 let ev = xcb_wait_for_special_event ( self . c , se. raw ) ;
13411343 self . handle_wait_for_event ( ev)
@@ -1345,7 +1347,8 @@ impl Connection {
13451347 /// Returns the next event from a special queue
13461348 #[ deprecated( note = "Broken API: use `poll_for_special_event2` instead" ) ]
13471349 #[ 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 > > {
13491352 unsafe {
13501353 let ev = xcb_poll_for_special_event ( self . c , se. raw ) ;
13511354 self . handle_poll_for_event ( ev)
0 commit comments